How To Install dict-gazetteer2k-counties on Ubuntu 18.04

In this tutorial we learn how to install dict-gazetteer2k-counties on Ubuntu 18.04. dict-gazetteer2k-counties is Counties Database for the 2000 US Gazetteer

Introduction

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

What is dict-gazetteer2k-counties

dict-gazetteer2k-counties is:

This is a database of (primarily) United States counties using information gathered in the 2000 census. Each entry contains:

  • Full name for the county
  • Type of entry (county, municipio, parish, borough, etc)
  • Total population and housing units
  • Total land and water area, in both mi^2 and km^2
  • State the county is within
  • Latitude and longitude of the county

There are three methods to install dict-gazetteer2k-counties 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-counties 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-counties using apt-get by running the following command:

sudo apt-get -y install dict-gazetteer2k-counties

Install dict-gazetteer2k-counties Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dict-gazetteer2k-counties

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

sudo aptitude -y install dict-gazetteer2k-counties

How To Uninstall dict-gazetteer2k-counties on Ubuntu 18.04

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

sudo apt-get remove dict-gazetteer2k-counties

Uninstall dict-gazetteer2k-counties And Its Dependencies

To uninstall dict-gazetteer2k-counties 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-counties

Remove dict-gazetteer2k-counties Configurations and Data

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

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

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

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

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

References

Summary

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