How To Install libgeo-point-perl on Ubuntu 18.04

In this tutorial we learn how to install libgeo-point-perl on Ubuntu 18.04. libgeo-point-perl is module to simplify handling geographic points

Introduction

In this tutorial we learn how to install libgeo-point-perl on Ubuntu 18.04.

What is libgeo-point-perl

libgeo-point-perl is:

One location on the globe, in any coordinate system. Geo::Point tries to hide the maths and the coordinate system in which the point is represented.

One of the most confusing things when handling geometrical data, is that sometimes latlong, sometimes xy are used: horizontal and vertical organization reversed. This package tries to hide this from your program by providing abstract accessors latlong(), longlat(), xy(), and yx().

This package provides the following modules:

  • Geo::Line - a sequence of connected points
  • Geo::Point - a point on the globe
  • Geo::Proj - simplified wrapper for Geo::Proj4
  • Geo::Shape - base class for 2-dimensional points on the earth surface
  • Geo::Space - A collection of various items
  • Geo::Surface - A surface description

There are three methods to install libgeo-point-perl 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 libgeo-point-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-point-perl using apt-get by running the following command:

sudo apt-get -y install libgeo-point-perl

Install libgeo-point-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libgeo-point-perl using apt by running the following command:

sudo apt -y install libgeo-point-perl

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

sudo aptitude -y install libgeo-point-perl

How To Uninstall libgeo-point-perl on Ubuntu 18.04

To uninstall only the libgeo-point-perl package we can use the following command:

sudo apt-get remove libgeo-point-perl

Uninstall libgeo-point-perl And Its Dependencies

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

sudo apt-get -y autoremove libgeo-point-perl

Remove libgeo-point-perl Configurations and Data

To remove libgeo-point-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libgeo-point-perl

Remove libgeo-point-perl configuration, data, and all of its dependencies

We can use the following command to remove libgeo-point-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libgeo-point-perl

References

Summary

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