How To Install dict-gazetteer2k-zips on Ubuntu 18.04

In this tutorial we learn how to install dict-gazetteer2k-zips on Ubuntu 18.04. dict-gazetteer2k-zips is ZIP and ZCTA database for the 2000 US Gazetteer

Introduction

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

What is dict-gazetteer2k-zips

dict-gazetteer2k-zips is:

This is a database of United States ZIP code information. It contains a single database built from two separate sources: the 1990 Census ZIP code information and the 2000 Census ZCTA (ZIP Code Tabulation Area) information. These two pieces of information together provide a nice picture of an area. The 1990 ZIP Code Information provides:

  • The name of location for each ZIP code (normally a city)
  • The other ZIP codes corresponding to the same location. The 2000 ZCTA information provides:
  • Total population and housing unit count in a given ZIP code
  • Total land and water area for the ZIP code
  • The state in which the ZIP code is located
  • The latitude and longitude of the ZIP code

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

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

Install dict-gazetteer2k-zips Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dict-gazetteer2k-zips

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

sudo aptitude -y install dict-gazetteer2k-zips

How To Uninstall dict-gazetteer2k-zips on Ubuntu 18.04

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

sudo apt-get remove dict-gazetteer2k-zips

Uninstall dict-gazetteer2k-zips And Its Dependencies

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

Remove dict-gazetteer2k-zips Configurations and Data

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

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

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

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

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

References

Summary

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