How To Install sn on Ubuntu 18.04

In this tutorial we learn how to install sn on Ubuntu 18.04. sn is Small NNTP server for leaf sites

Introduction

In this tutorial we learn how to install sn on Ubuntu 18.04.

What is sn

sn is:

sn is a small news system for small sites serving perhaps a few dozen newsgroups, and with a slow connection to the internet. It is similar to leafnode (ftp.troll.no, by Arnt Gulbrandsen). The target user is a home or SOHO with a single modem connection to the Internet, maybe running IP masq or similar, and serving a few workstations.

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

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

sudo apt-get update

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

sudo apt-get -y install sn

Install sn Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sn

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

sudo aptitude -y install sn

How To Uninstall sn on Ubuntu 18.04

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

sudo apt-get remove sn

Uninstall sn And Its Dependencies

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

sudo apt-get -y autoremove sn

Remove sn Configurations and Data

To remove sn configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge sn

Remove sn configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sn

References

Summary

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