How To Install NetworkManager on Fedora 34

NetworkManager is Network connection manager and user applications

Introduction

In this tutorial we learn how to install NetworkManager on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install NetworkManager.

Install NetworkManager on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34

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

sudo dnf remove NetworkManager

NetworkManager Package Contents on Fedora 34

/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/sysconfig/network-scripts
/usr/bin/nm-online
/usr/bin/nmcli
/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/89d77c41cbf6c41fc8f8f83c2f60c1397c5cfe
/usr/lib/.build-id/81
/usr/lib/.build-id/81/c827ae3cd4c128755f1b041032615da30a57f5
/usr/lib/.build-id/95
/usr/lib/.build-id/95/870639d07e4aaf31ffc0bb17597a690631435b
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/84a738cb175b2011c4d3253b1c9ffd3310d78f
/usr/lib/.build-id/9b/fed1d29e59c9e48c0add1380bb76e0c0d0b52e
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/7d725e5eb7f91471389faf0a039bfd64b9b563
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/3735d8de2ac7e240b5d10357236efb5c2555df
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/4788b066d9850f33a5431f21511a4a7efdb512
/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.2-1.fc34
/usr/lib64/NetworkManager/1.30.2-1.fc34/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/dbus-1/system.d/nm-dispatcher.conf
/usr/share/dbus-1/system.d/nm-ifcfg-rh.conf
/usr/share/dbus-1/system.d/org.freedesktop.NetworkManager.conf
/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/sysconfig/network-scripts
/usr/bin/nm-online
/usr/bin/nmcli
/usr/lib/.build-id
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/6f5eb0e4fcf8e0cf826169e9125a1f10686600
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/1237f342290b7b00d4f5482998f6607d7094f3
/usr/lib/.build-id/51
/usr/lib/.build-id/51/0647a7d1d696a57ed0c61a52fcd137409130ef
/usr/lib/.build-id/64
/usr/lib/.build-id/64/44df4f50877e08dadc7a1567cd5610f1223592
/usr/lib/.build-id/83
/usr/lib/.build-id/83/31f375f71edf972d736908f97e38935505e258
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/ab4afd8896cb2633e652d30d05c489ecedc59d
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/1f2fbb96c1cb6bfd57a2aa0323a100eb842d78
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/d3a5cec20f8a52291ac9643945929fa80900bc
/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.6-1.fc34
/usr/lib64/NetworkManager/1.30.6-1.fc34/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/dbus-1/system.d/nm-dispatcher.conf
/usr/share/dbus-1/system.d/nm-ifcfg-rh.conf
/usr/share/dbus-1/system.d/org.freedesktop.NetworkManager.conf
/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 Fedora 34 using yum and dnf.