How To Install dict-gazetteer2k on Ubuntu 18.04

In this tutorial we learn how to install dict-gazetteer2k on Ubuntu 18.04. dict-gazetteer2k is Placeholder package to install entire Gazetteer 2000

Introduction

In this tutorial we learn how to install dict-gazetteer2k on Ubuntu 18.04.

What is dict-gazetteer2k

dict-gazetteer2k is:

This package can be used to ensure that you always have the entire set of files comprising the 2000 Gazetteer installed. You might want to use this package if you want the entire gazetteer available. If you want only part of it on your server, you should not install this package.

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

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

sudo apt-get update

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

sudo apt-get -y install dict-gazetteer2k

Install dict-gazetteer2k Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dict-gazetteer2k

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

sudo aptitude -y install dict-gazetteer2k

How To Uninstall dict-gazetteer2k on Ubuntu 18.04

To uninstall only the dict-gazetteer2k package we can use the following command:

sudo apt-get remove dict-gazetteer2k

Uninstall dict-gazetteer2k And Its Dependencies

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

sudo apt-get -y autoremove dict-gazetteer2k

Remove dict-gazetteer2k Configurations and Data

To remove dict-gazetteer2k configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge dict-gazetteer2k

Remove dict-gazetteer2k configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dict-gazetteer2k

References

Summary

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