How To Install iproute on CentOS 8

iproute is Advanced IP routing and network device configuration tools Advanced IP routing and network device configuration tools

Introduction

In this tutorial we learn how to install iproute on CentOS 8.

What is iproute

The iproute package contains networking utilities (ip and rtmon, for example) which are designed to use the advanced networking capabilities of the Linux kernel. iproute 5.9.0 4.el8 x86_64 692 k iproute-5.9.0-4.el8.src.rpm baseos Advanced IP routing and network device configuration tools http GPLv2+ and Public Domain The iproute package contains networking utilities (ip and rtmon, for example) which are designed to use the advanced networking capabilities of the Linux kernel.

We can use yum or dnf to install iproute on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install iproute.

Install iproute on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install iproute using dnf by running the following command:

sudo dnf -y install iproute

Install iproute on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install iproute using yum by running the following command:

sudo yum -y install iproute

How To Uninstall iproute on CentOS 8

To uninstall only the iproute package we can use the following command:

sudo dnf remove iproute

iproute Package Contents on CentOS 8

/etc/iproute2
/etc/iproute2/bpf_pinning
/etc/iproute2/ematch_map
/etc/iproute2/group
/etc/iproute2/nl_protos
/etc/iproute2/rt_dsfield
/etc/iproute2/rt_protos
/etc/iproute2/rt_realms
/etc/iproute2/rt_scopes
/etc/iproute2/rt_tables
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/8ecceb5dcc7bb793cd967e4ca660957a9091f2
/usr/lib/.build-id/16
/usr/lib/.build-id/16/80f0cf59242364ed7b7139dd919f10a0fef287
/usr/lib/.build-id/37
/usr/lib/.build-id/37/803281c56eb2d34d1297b936aeca2473a0a6ed
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/a36c8554c4c6fce8105c109685c6a315749da8
/usr/lib/.build-id/57
/usr/lib/.build-id/57/c06f683054e0c5adea3538ada751044eddc3f2
/usr/lib/.build-id/68
/usr/lib/.build-id/68/f6e947d31f78c96853d5ce54ed0c7826166727
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/30b7f58b5954b1607d4deba0ab3fab9610aec2
/usr/lib/.build-id/94
/usr/lib/.build-id/94/1646b5d0a7ac431e6ad481fb5a54b5f118e673
/usr/lib/.build-id/99
/usr/lib/.build-id/99/6e4467fd3ce61ca9ea17a562bbd8c397410734
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/1f2b6a937176288f5aea9cca87884e6f49bda8
/usr/lib/.build-id/da
/usr/lib/.build-id/da/172a48898afcf02805bea03eb52adf8a1d9365
/usr/lib/.build-id/da/23d744d5417cc5cc81a8da3e45a5200ff31da6
/usr/lib/.build-id/df
/usr/lib/.build-id/df/ada5626bee02b83b16901eff449a6c9d26ef14
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/2ce4e0f3a956782139abc6996b9f2d94d8d690
/usr/sbin/arpd
/usr/sbin/bridge
/usr/sbin/ctstat
/usr/sbin/devlink
/usr/sbin/genl
/usr/sbin/ifcfg
/usr/sbin/ifstat
/usr/sbin/ip
/usr/sbin/lnstat
/usr/sbin/nstat
/usr/sbin/rdma
/usr/sbin/routef
/usr/sbin/routel
/usr/sbin/rtacct
/usr/sbin/rtmon
/usr/sbin/rtpr
/usr/sbin/rtstat
/usr/sbin/ss
/usr/sbin/tipc
/usr/share/bash-completion/completions/devlink
/usr/share/doc/iproute
/usr/share/doc/iproute/README
/usr/share/doc/iproute/README.devel
/usr/share/licenses/iproute
/usr/share/licenses/iproute/COPYING
/usr/share/man/man8/arpd.8.gz
/usr/share/man/man8/bridge.8.gz
/usr/share/man/man8/ctstat.8.gz
/usr/share/man/man8/devlink-dev.8.gz
/usr/share/man/man8/devlink-dpipe.8.gz
/usr/share/man/man8/devlink-health.8.gz
/usr/share/man/man8/devlink-monitor.8.gz
/usr/share/man/man8/devlink-port.8.gz
/usr/share/man/man8/devlink-region.8.gz
/usr/share/man/man8/devlink-resource.8.gz
/usr/share/man/man8/devlink-sb.8.gz
/usr/share/man/man8/devlink-trap.8.gz
/usr/share/man/man8/devlink.8.gz
/usr/share/man/man8/genl.8.gz
/usr/share/man/man8/ifcfg.8.gz
/usr/share/man/man8/ifstat.8.gz
/usr/share/man/man8/ip-address.8.gz
/usr/share/man/man8/ip-addrlabel.8.gz
/usr/share/man/man8/ip-fou.8.gz
/usr/share/man/man8/ip-gue.8.gz
/usr/share/man/man8/ip-l2tp.8.gz
/usr/share/man/man8/ip-link.8.gz
/usr/share/man/man8/ip-macsec.8.gz
/usr/share/man/man8/ip-maddress.8.gz
/usr/share/man/man8/ip-monitor.8.gz
/usr/share/man/man8/ip-mptcp.8.gz
/usr/share/man/man8/ip-mroute.8.gz
/usr/share/man/man8/ip-neighbour.8.gz
/usr/share/man/man8/ip-netconf.8.gz
/usr/share/man/man8/ip-netns.8.gz
/usr/share/man/man8/ip-nexthop.8.gz
/usr/share/man/man8/ip-ntable.8.gz
/usr/share/man/man8/ip-route.8.gz
/usr/share/man/man8/ip-rule.8.gz
/usr/share/man/man8/ip-sr.8.gz
/usr/share/man/man8/ip-tcp_metrics.8.gz
/usr/share/man/man8/ip-token.8.gz
/usr/share/man/man8/ip-tunnel.8.gz
/usr/share/man/man8/ip-vrf.8.gz
/usr/share/man/man8/ip-xfrm.8.gz
/usr/share/man/man8/ip.8.gz
/usr/share/man/man8/lnstat.8.gz
/usr/share/man/man8/nstat.8.gz
/usr/share/man/man8/rdma-dev.8.gz
/usr/share/man/man8/rdma-link.8.gz
/usr/share/man/man8/rdma-resource.8.gz
/usr/share/man/man8/rdma-statistic.8.gz
/usr/share/man/man8/rdma-system.8.gz
/usr/share/man/man8/rdma.8.gz
/usr/share/man/man8/routef.8.gz
/usr/share/man/man8/routel.8.gz
/usr/share/man/man8/rtacct.8.gz
/usr/share/man/man8/rtmon.8.gz
/usr/share/man/man8/rtpr.8.gz
/usr/share/man/man8/rtstat.8.gz
/usr/share/man/man8/ss.8.gz
/usr/share/man/man8/tipc-bearer.8.gz
/usr/share/man/man8/tipc-link.8.gz
/usr/share/man/man8/tipc-media.8.gz
/usr/share/man/man8/tipc-nametable.8.gz
/usr/share/man/man8/tipc-node.8.gz
/usr/share/man/man8/tipc-peer.8.gz
/usr/share/man/man8/tipc-socket.8.gz
/usr/share/man/man8/tipc.8.gz

References

Summary

In this tutorial we learn how to install iproute on CentOS 8 using yum and dnf.