How To Install nn on Ubuntu 22.04

In this tutorial we learn how to install nn on Ubuntu 22.04. nn is Heavy-duty USENET news reader (curses-based client)

Introduction

In this tutorial we learn how to install nn on Ubuntu 22.04.

What is nn

nn is:

The motto of nn is its expanded name, which is “No News is good news, but nn is better”, and the nn newsreader is designed to let you minimize the amount of time you spend reading news (or, more realistically, to allow you to follow even more newsgroups :-).

Nn allows you to quickly select articles of interest and skip the rest. It also supports efficient article killing and selection of articles by author and subject.

This version of nn reads news from a news server via NNTP (the Network News Transfer Protocol), and can make use of your NNTP server’s NOV database, if configured. You must have a news server available - large sites usually provide a site-wide server. (For those familiar with ’nn’, this is a client-only version.)

There are three methods to install nn on Ubuntu 22.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 nn Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install nn

Install nn Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install nn using apt by running the following command:

sudo apt -y install nn

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

sudo aptitude -y install nn

How To Uninstall nn on Ubuntu 22.04

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

sudo apt-get remove nn

Uninstall nn And Its Dependencies

To uninstall nn and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove nn

Remove nn Configurations and Data

To remove nn configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge nn

Remove nn configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge nn

References

Summary

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