How To Install NetworkManager on CentOS 8

NetworkManager is Network connection manager and user applications

Introduction

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

What is NetworkManager

NetworkManager is a system service that manages network interfaces and connections based on user or automatic configuration. It supports Ethernet, Bridge, Bond, VLAN, Team, InfiniBand, Wi-Fi, mobile broadband (WWAN), PPPoE and other devices, and supports a variety of different VPN services.

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

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

sudo dnf -y install NetworkManager

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

sudo yum -y install NetworkManager

How To Uninstall NetworkManager on CentOS 8

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

sudo dnf remove NetworkManager

NetworkManager Package Contents on CentOS 8

/etc/NetworkManager
/etc/NetworkManager/NetworkManager.conf
/etc/NetworkManager/conf.d
/etc/NetworkManager/dispatcher.d
/etc/NetworkManager/dispatcher.d/no-wait.d
/etc/NetworkManager/dispatcher.d/pre-down.d
/etc/NetworkManager/dispatcher.d/pre-up.d
/etc/NetworkManager/dnsmasq-shared.d
/etc/NetworkManager/dnsmasq.d
/etc/NetworkManager/system-connections
/etc/dbus-1/system.d/nm-dispatcher.conf
/etc/dbus-1/system.d/nm-ifcfg-rh.conf
/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf
/etc/sysconfig/network-scripts
/usr/bin/nm-online
/usr/bin/nmcli
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/c31fa6040c4830dfd5ad9f006a3dd3bf17b4fa
/usr/lib/.build-id/08
/usr/lib/.build-id/08/b6312ed03c80169862062122ca0728ee748d06
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/f6b595e30fcd26c9c69a0a382977fe79d9a1d3
/usr/lib/.build-id/20
/usr/lib/.build-id/20/b18b71aac0f8d37f48cb346982c64743d3af06
/usr/lib/.build-id/28
/usr/lib/.build-id/28/21e25ad7f59b701baf1b0bb8627565370d90e8
/usr/lib/.build-id/40
/usr/lib/.build-id/40/226c309fd42b2aeec0fb8eda2bf51916acbec1
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/dff71fafe3459f4353d15c5ea0482c152d0607
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/76858a280e75efc7f363929901a0a01ecc3de9
/usr/lib/NetworkManager
/usr/lib/NetworkManager/VPN
/usr/lib/NetworkManager/conf.d
/usr/lib/NetworkManager/dispatcher.d
/usr/lib/NetworkManager/dispatcher.d/no-wait.d
/usr/lib/NetworkManager/dispatcher.d/pre-down.d
/usr/lib/NetworkManager/dispatcher.d/pre-up.d
/usr/lib/NetworkManager/system-connections
/usr/lib/firewalld/zones/nm-shared.xml
/usr/lib/systemd/system/NetworkManager-dispatcher.service
/usr/lib/systemd/system/NetworkManager-wait-online.service
/usr/lib/systemd/system/NetworkManager.service
/usr/lib/udev/rules.d/84-nm-drivers.rules
/usr/lib/udev/rules.d/85-nm-unmanaged.rules
/usr/lib/udev/rules.d/90-nm-thunderbolt.rules
/usr/lib64/NetworkManager
/usr/lib64/NetworkManager/1.30.0-7.el8
/usr/lib64/NetworkManager/1.30.0-7.el8/libnm-settings-plugin-ifcfg-rh.so
/usr/libexec/nm-dhcp-helper
/usr/libexec/nm-dispatcher
/usr/libexec/nm-iface-helper
/usr/libexec/nm-ifdown
/usr/libexec/nm-ifup
/usr/libexec/nm-initrd-generator
/usr/sbin/NetworkManager
/usr/sbin/ifdown
/usr/sbin/ifup
/usr/share/bash-completion/completions/nmcli
/usr/share/dbus-1/system-services/org.freedesktop.nm_dispatcher.service
/usr/share/doc/NetworkManager
/usr/share/doc/NetworkManager/AUTHORS
/usr/share/doc/NetworkManager/CONTRIBUTING
/usr/share/doc/NetworkManager/NEWS
/usr/share/doc/NetworkManager/README
/usr/share/doc/NetworkManager/TODO
/usr/share/doc/NetworkManager/examples
/usr/share/doc/NetworkManager/examples/server.conf
/usr/share/licenses/NetworkManager
/usr/share/licenses/NetworkManager/COPYING
/usr/share/licenses/NetworkManager/COPYING.GFDL
/usr/share/licenses/NetworkManager/COPYING.LGPL
/usr/share/man/man1/nm-online.1.gz
/usr/share/man/man1/nmcli.1.gz
/usr/share/man/man5/NetworkManager.conf.5.gz
/usr/share/man/man5/nm-settings-dbus.5.gz
/usr/share/man/man5/nm-settings-ifcfg-rh.5.gz
/usr/share/man/man5/nm-settings-keyfile.5.gz
/usr/share/man/man5/nm-settings-nmcli.5.gz
/usr/share/man/man5/nm-settings.5.gz
/usr/share/man/man5/nm-system-settings.conf.5.gz
/usr/share/man/man7/nmcli-examples.7.gz
/usr/share/man/man8/NetworkManager.8.gz
/usr/share/man/man8/nm-initrd-generator.8.gz
/usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
/var/lib/NetworkManager
/etc/NetworkManager
/etc/NetworkManager/NetworkManager.conf
/etc/NetworkManager/conf.d
/etc/NetworkManager/dispatcher.d
/etc/NetworkManager/dispatcher.d/no-wait.d
/etc/NetworkManager/dispatcher.d/pre-down.d
/etc/NetworkManager/dispatcher.d/pre-up.d
/etc/NetworkManager/dnsmasq-shared.d
/etc/NetworkManager/dnsmasq.d
/etc/NetworkManager/system-connections
/etc/dbus-1/system.d/nm-dispatcher.conf
/etc/dbus-1/system.d/nm-ifcfg-rh.conf
/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf
/etc/sysconfig/network-scripts
/usr/bin/nm-online
/usr/bin/nmcli
/usr/lib/.build-id
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/124e60ec154bc79a7e8a698a8b170d9707470b
/usr/lib/.build-id/96
/usr/lib/.build-id/96/c57ef38f1354c868fc1ace62cc834e90a5212e
/usr/lib/.build-id/98
/usr/lib/.build-id/98/46f47e42914bff77e63934d3f0a7d9d01225fc
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/7323e4eb8e9a4792b5f59730aba185cc0f7647
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/eceee5dfcaaab4cde7a7a6710b9b2b54450f7d
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/f04e5b86211caafa05f83f0f2653af0d347a0f
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/12d21805f1b9786e9c5639936574e9d7c51721
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/eddd5194c3dc5087083c7359d48b0965242f05
/usr/lib/NetworkManager
/usr/lib/NetworkManager/VPN
/usr/lib/NetworkManager/conf.d
/usr/lib/NetworkManager/dispatcher.d
/usr/lib/NetworkManager/dispatcher.d/no-wait.d
/usr/lib/NetworkManager/dispatcher.d/pre-down.d
/usr/lib/NetworkManager/dispatcher.d/pre-up.d
/usr/lib/NetworkManager/system-connections
/usr/lib/firewalld/zones/nm-shared.xml
/usr/lib/systemd/system/NetworkManager-dispatcher.service
/usr/lib/systemd/system/NetworkManager-wait-online.service
/usr/lib/systemd/system/NetworkManager.service
/usr/lib/udev/rules.d/84-nm-drivers.rules
/usr/lib/udev/rules.d/85-nm-unmanaged.rules
/usr/lib/udev/rules.d/90-nm-thunderbolt.rules
/usr/lib64/NetworkManager
/usr/lib64/NetworkManager/1.30.0-9.el8_4
/usr/lib64/NetworkManager/1.30.0-9.el8_4/libnm-settings-plugin-ifcfg-rh.so
/usr/libexec/nm-dhcp-helper
/usr/libexec/nm-dispatcher
/usr/libexec/nm-iface-helper
/usr/libexec/nm-ifdown
/usr/libexec/nm-ifup
/usr/libexec/nm-initrd-generator
/usr/sbin/NetworkManager
/usr/sbin/ifdown
/usr/sbin/ifup
/usr/share/bash-completion/completions/nmcli
/usr/share/dbus-1/system-services/org.freedesktop.nm_dispatcher.service
/usr/share/doc/NetworkManager
/usr/share/doc/NetworkManager/AUTHORS
/usr/share/doc/NetworkManager/CONTRIBUTING
/usr/share/doc/NetworkManager/NEWS
/usr/share/doc/NetworkManager/README
/usr/share/doc/NetworkManager/TODO
/usr/share/doc/NetworkManager/examples
/usr/share/doc/NetworkManager/examples/server.conf
/usr/share/licenses/NetworkManager
/usr/share/licenses/NetworkManager/COPYING
/usr/share/licenses/NetworkManager/COPYING.GFDL
/usr/share/licenses/NetworkManager/COPYING.LGPL
/usr/share/man/man1/nm-online.1.gz
/usr/share/man/man1/nmcli.1.gz
/usr/share/man/man5/NetworkManager.conf.5.gz
/usr/share/man/man5/nm-settings-dbus.5.gz
/usr/share/man/man5/nm-settings-ifcfg-rh.5.gz
/usr/share/man/man5/nm-settings-keyfile.5.gz
/usr/share/man/man5/nm-settings-nmcli.5.gz
/usr/share/man/man5/nm-settings.5.gz
/usr/share/man/man5/nm-system-settings.conf.5.gz
/usr/share/man/man7/nmcli-examples.7.gz
/usr/share/man/man8/NetworkManager.8.gz
/usr/share/man/man8/nm-initrd-generator.8.gz
/usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
/var/lib/NetworkManager

References

Summary

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