How To Install libgeo-postcode-perl on Kali Linux
Introduction
In this tutorial we learn how to install libgeo-postcode-perl
on Kali Linux.
What is libgeo-postcode-perl
libgeo-postcode-perl is:
Geo::Postcode will accept full or partial UK postcodes, validate them against the official spec, separate them into their significant parts, translate them into map references or co-ordinates and calculate distances between them.
The last two features require a postcode database to be supplied separately.
It does not check whether the supplied postcode exists: only whether it is well-formed according to British Standard 7666, which you can find here:
http://www.govtalk.gov.uk/gdsc/html/frames/PostCode.htm
Geo::Postcode will also work with partial codes, ie areas, districts and sectors. They won’t validate, but you can test them for legitimacy with a call to valid_fragment, and you can still turn them into grid references.
To work with US zipcodes, you need Geo::Postalcode instead.
There are three methods to install libgeo-postcode-perl
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libgeo-postcode-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libgeo-postcode-perl
using apt-get
by running the following command:
sudo apt-get -y install libgeo-postcode-perl
Install libgeo-postcode-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgeo-postcode-perl
using apt
by running the following command:
sudo apt -y install libgeo-postcode-perl
Install libgeo-postcode-perl Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libgeo-postcode-perl
using aptitude
by running the following command:
sudo aptitude -y install libgeo-postcode-perl
How To Uninstall libgeo-postcode-perl on Kali Linux
To uninstall only the libgeo-postcode-perl
package we can use the following command:
sudo apt-get remove libgeo-postcode-perl
Uninstall libgeo-postcode-perl And Its Dependencies
To uninstall libgeo-postcode-perl
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libgeo-postcode-perl
Remove libgeo-postcode-perl Configurations and Data
To remove libgeo-postcode-perl
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libgeo-postcode-perl
Remove libgeo-postcode-perl configuration, data, and all of its dependencies
We can use the following command to remove libgeo-postcode-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgeo-postcode-perl
Dependencies
libgeo-postcode-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libgeo-postcode-perl
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.