Ways to Install or Uninstall nm-tray on Ubuntu 22.04

Updated: September 21, 2022

nm-tray is a simple NetworkManager front end with information icon residing in system tray (like e.g. nm-applet). It’s a pure Qt application. For interaction with NetworkManager it uses API provided by KF5::NetworkManagerQt -> plain DBus communication. I will show you how to install nm-tray on Ubuntu 22.04 in this tutorial.

Requirements to install

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install nm-tray on Ubuntu 22.04

Install nm-tray Ubuntu 22.04

nm-tray is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install nm-tray using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these instructions to install nm-tray on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get update

Step 2: Start installing the packages on Ubuntu 22.04. After updating the system, you can install nm-tray Ubuntu by executing this command in the terminal.

sudo apt-get -y install nm-tray

Install nm-tray using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt-get -y install aptitude

After installing it, you can now install nm-tray, just following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install nm-tray Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude -y install nm-tray

Uninstall nm-tray on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a nm-tray, can be easily uninstalled by anyone.

If you installed nm-tray using APT or Aptitude, you could uninstall nm-tray on Ubuntu by running this command

sudo apt remove --auto-remove nm-tray

If you want to uninstall nm-tray and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge nm-tray

Ending

In this guide, I showed you ways to install nm-tray on Ubuntu 22.04 and some ways to uninstall nm-tray too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.