How To Install containernetworking-plugins on CentOS 8

containernetworking-plugins is CNI network plugins

Introduction

In this tutorial we learn how to install containernetworking-plugins on CentOS 8.

What is containernetworking-plugins

The CNI (Container Network Interface) project consists of a specification and libraries for writing plugins to configure network interfaces in Linux containers, along with a number of supported plugins. CNI concerns itself only with network connectivity of containers and removing allocated resources when the container is deleted.

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

Install containernetworking-plugins 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 containernetworking-plugins using dnf by running the following command:

sudo dnf -y install containernetworking-plugins

Install containernetworking-plugins 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 containernetworking-plugins using yum by running the following command:

sudo yum -y install containernetworking-plugins

How To Uninstall containernetworking-plugins on CentOS 8

To uninstall only the containernetworking-plugins package we can use the following command:

sudo dnf remove containernetworking-plugins

containernetworking-plugins Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/17
/usr/lib/.build-id/17/abc71a6dfa519de6412a5a6e51345f36dc2b41
/usr/lib/.build-id/20
/usr/lib/.build-id/20/b2342c7425e2611bb0d58a64bb5529f12f52c2
/usr/lib/.build-id/57
/usr/lib/.build-id/57/03ca34b3775eadd565fd927a3f831a5e2ddc91
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/8b9bcc8aa254777798e83cd4e80b90ce17890a
/usr/lib/.build-id/7e/e8dcbe5507bdcaf34f70c3167ffe9f6245f721
/usr/lib/.build-id/89
/usr/lib/.build-id/89/149029c509340df57a745363ab4cd35b83862a
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/259e0fd4729a75d32466026bfec7b47412d3a6
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/05f265c65a1bdded4c06d07bb1cf8210e39bfa
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/62e072df577dcde71b23046d6d43a09fedae35
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/5b040b08925368b1b73683898fa773a173f530
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/c11bc47c3a9952f758f4574987a2b2595047ee
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/7157df782dcfc8d1062d551e04aa71a6272817
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/e935f44ae75ea7d4501f7e034ea37ecddc3d79
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/2c253941e12a63433a5fb9037976982c0563a1
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/389c9c7dd7085ea748b5f8272ea3d51530e88b
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/746d5b1661cc5b915ede2892eb372adbdb17f3
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/97b0e41c32edb38df34c7a2976b80bb0e17c15
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/3ed5f2b79dc542b22a3380e9a570eee9e636d0
/usr/libexec/cni
/usr/libexec/cni/bandwidth
/usr/libexec/cni/bridge
/usr/libexec/cni/dhcp
/usr/libexec/cni/firewall
/usr/libexec/cni/flannel
/usr/libexec/cni/host-device
/usr/libexec/cni/host-local
/usr/libexec/cni/ipvlan
/usr/libexec/cni/loopback
/usr/libexec/cni/macvlan
/usr/libexec/cni/portmap
/usr/libexec/cni/ptp
/usr/libexec/cni/sample
/usr/libexec/cni/sbr
/usr/libexec/cni/static
/usr/libexec/cni/tuning
/usr/libexec/cni/vlan
/usr/libexec/cni/vrf
/usr/share/doc/containernetworking-plugins
/usr/share/doc/containernetworking-plugins/CONTRIBUTING.md
/usr/share/doc/containernetworking-plugins/OWNERS.md
/usr/share/doc/containernetworking-plugins/README.md
/usr/share/doc/containernetworking-plugins/RELEASING.md
/usr/share/licenses/containernetworking-plugins
/usr/share/licenses/containernetworking-plugins/LICENSE

References

Summary

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