How To Install network-manager on Ubuntu 20.04

In this tutorial we learn how to install network-manager on Ubuntu 20.04. network-manager is network management framework (daemon and userspace tools) network management framework (daemon and userspace tools)

Introduction

In this tutorial we learn how to install network-manager on Ubuntu 20.04.

What is network-manager

network-manager is:

NetworkManager is a system network service that manages your network devices and connections, attempting to keep active network connectivity when available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE devices, and provides VPN integration with a variety of different VPN services.

This package provides the userspace daemons and a command line interface to interact with NetworkManager.

Optional dependencies:

  • avahi-autoipd: Used for IPv4LL, a protocol for automatic Link-Local IP address configuration.
  • ppp: Required for establishing dial-up connections (e.g. via GSM).
  • dnsmasq-base/iptables: Required for creating Ad-hoc connections and connection sharing.
  • libteam-utils: Network Team driver allows multiple network interfaces to be teamed together and act like a single one. This process is called “ethernet bonding”, “channel teaming” or “link aggregation”. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, kubuntu-full, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: network-manager Architecture: amd64 Version: 1.22.10-1ubuntu1 Priority: optional Section: net Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Utopia Maintenance Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 7472 Depends: libaudit1 (>= 1:2.2.1), libbluetooth3 (>= 4.91), libc6 (>= 2.26), libcurl3-gnutls (>= 7.24.0), libglib2.0-0 (>= 2.43.2), libgnutls30 (>= 3.6.5), libjansson4 (>= 2.0.1), libmm-glib0 (>= 1.0.0), libndp0 (>= 1.2), libnewt0.52 (>= 0.52.21), libnm0 (= 1.22.10-1ubuntu1), libpolkit-agent-1-0 (>= 0.99), libpolkit-gobject-1-0 (>= 0.104), libpsl5 (>= 0.13.0), libreadline8 (>= 6.0), libselinux1 (>= 1.32), libsystemd0 (>= 221), libteamdctl0 (>= 1.9), libudev1 (>= 183), libuuid1 (>= 2.16), wpasupplicant, dbus, udev, adduser, libpam-systemd, policykit-1 Recommends: ppp, dnsmasq-base, iptables, modemmanager, network-manager-pptp, crda Suggests: avahi-autoipd, libteam-utils, isc-dhcp-client Breaks: ppp (>= 2.4.7-3~), ppp (« 2.4.7-2+~) Filename: pool/main/n/network-manager/network-manager_1.22.10-1ubuntu1_amd64.deb Size: 1853912 MD5sum: 9181b29d8e7d2ac491f1dc7c9b687be1 SHA1: cb1b2c25fceb25ea3312ed3e72514e67c20bf080 SHA256: 556660d6bfadf2960ac77db9411b0ae0320e1f3c65667c2e76bb5317502c222b Homepage: https://wiki.gnome.org/Projects/NetworkManager Description-en: network management framework (daemon and userspace tools) NetworkManager is a system network service that manages your network devices and connections, attempting to keep active network connectivity when available. It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE devices, and provides VPN integration with a variety of different VPN services.

This package provides the userspace daemons and a command line interface to interact with NetworkManager.

Optional dependencies:

  • avahi-autoipd: Used for IPv4LL, a protocol for automatic Link-Local IP address configuration.
  • ppp: Required for establishing dial-up connections (e.g. via GSM).
  • dnsmasq-base/iptables: Required for creating Ad-hoc connections and connection sharing.
  • libteam-utils: Network Team driver allows multiple network interfaces to be teamed together and act like a single one. This process is called “ethernet bonding”, “channel teaming” or “link aggregation”. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, kubuntu-full, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install network-manager on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install network-manager Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install network-manager using apt-get by running the following command:

sudo apt-get -y install network-manager

Install network-manager Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install network-manager using apt by running the following command:

sudo apt -y install network-manager

Install network-manager Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install network-manager using aptitude by running the following command:

sudo aptitude -y install network-manager

How To Uninstall network-manager on Ubuntu 20.04

To uninstall only the network-manager package we can use the following command:

sudo apt-get remove network-manager

Uninstall network-manager And Its Dependencies

To uninstall network-manager and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove network-manager

Remove network-manager Configurations and Data

To remove network-manager configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge network-manager

Remove network-manager configuration, data, and all of its dependencies

We can use the following command to remove network-manager configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge network-manager

References

Summary

In this tutorial we learn how to install network-manager package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.