How to Install or Uninstall nng-utils Ubuntu 22.04

Updated: October 21, 2022

Lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery. The API frees the programmer from worrying about details like connection management, retries, and other common considerations, so that they can focus on the application instead of the plumbing. I will show you how to install nng-utils on Ubuntu 22.04 in this tutorial.

Prerequisites to install

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install nng-utils on Ubuntu 22.04

Install nng-utils Ubuntu 22.04

nng-utils is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install nng-utils using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to install nng-utils on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. You can now install nng-utils Ubuntu by executing this command in the terminal.

sudo apt-get -y install nng-utils

Install nng-utils 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. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get install aptitude

After installing aptitude, you can now install nng-utils by following these steps:

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

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install nng-utils Ubuntu by executing this command in the terminal.

sudo aptitude install nng-utils

Uninstall nng-utils on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a nng-utils.

If you installed nng-utils using APT or Aptitude, you could uninstall nng-utils on Ubuntu by executing this command

sudo apt remove --auto-remove nng-utils

If you want to uninstall nng-utils and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge nng-utils

Ending

In this tutorial, I showed you ways to install nng-utils on Ubuntu 22.04 and ways to uninstall nng-utils too. Please contact me if you require any assistance. I’d be delighted to respond.