How To Install gnats on Ubuntu 18.04

In this tutorial we learn how to install gnats on Ubuntu 18.04. gnats is problem report management system - central database

Introduction

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

What is gnats

gnats is:

GNATS is a bug-tracking tool designed for use at a central “Support Site”. Users who experience problems use electronic mail to communicate these problems to “maintainers” at that Support Site.

GNATS offers many of the same features offered by more generalized databases, including editing, querying, and basic reporting. You can access the submitting, editing, and querying functions of GNATS through provided utilities or from within GNU Emacs.

The “gnats” package has the full installation for the central database server. For client systems, use the “gnats-user” package which has just the user tools.

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

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

sudo apt-get update

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

sudo apt-get -y install gnats

Install gnats Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gnats

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

sudo aptitude -y install gnats

How To Uninstall gnats on Ubuntu 18.04

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

sudo apt-get remove gnats

Uninstall gnats And Its Dependencies

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

sudo apt-get -y autoremove gnats

Remove gnats Configurations and Data

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

sudo apt-get -y purge gnats

Remove gnats configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gnats

References

Summary

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