How To Install gnuais on Ubuntu 22.04

In this tutorial we learn how to install gnuais on Ubuntu 22.04. gnuais is AIS receiver which uses the discriminator output of VHF receivers

Introduction

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

What is gnuais

gnuais is:

A tool for demodulating and decoding Automatic Identification System messages using the line input of the sound card. AIS messages are transmitted by marine vessels and contain their position, velocity and other interesting information. The messages may be saved to a mysql-database, forwarded as NMEA packets or uploaded to an AIS web service.

There are three methods to install gnuais 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 gnuais Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install gnuais

Install gnuais Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gnuais

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

sudo aptitude -y install gnuais

How To Uninstall gnuais on Ubuntu 22.04

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

sudo apt-get remove gnuais

Uninstall gnuais And Its Dependencies

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

sudo apt-get -y autoremove gnuais

Remove gnuais Configurations and Data

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

sudo apt-get -y purge gnuais

Remove gnuais configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gnuais

References

Summary

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