How To Install python-pygeoif on Debian 9
Introduction
In this tutorial we learn how to install python-pygeoif
on Debian 9.
What is python-pygeoif
python-pygeoif is:
PyGeoIf provides a GeoJSON-like protocol for geo-spatial (GIS) vector data.
So when you want to write your own geospatial library with support for this protocol you may use pygeoif as a starting point and build your functionality on top of it
You may think of pygeoif as a ??shapely ultralight?? which lets you construct geometries and perform very basic operations like reading and writing geometries from/to WKT, constructing line strings out of points, polygons from linear rings, multi polygons from polygons, etc. It was inspired by shapely and implements the geometries in a way that when you are familiar with shapely you feel right at home with pygeoif.
There are three methods to install python-pygeoif
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python-pygeoif Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python-pygeoif
using apt-get
by running the following command:
sudo apt-get -y install python-pygeoif
Install python-pygeoif Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-pygeoif
using apt
by running the following command:
sudo apt -y install python-pygeoif
Install python-pygeoif 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python-pygeoif
using aptitude
by running the following command:
sudo aptitude -y install python-pygeoif
How To Uninstall python-pygeoif on Debian 9
To uninstall only the python-pygeoif
package we can use the following command:
sudo apt-get remove python-pygeoif
Uninstall python-pygeoif And Its Dependencies
To uninstall python-pygeoif
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-pygeoif
Remove python-pygeoif Configurations and Data
To remove python-pygeoif
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-pygeoif
Remove python-pygeoif configuration, data, and all of its dependencies
We can use the following command to remove python-pygeoif
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-pygeoif
Dependencies
python-pygeoif have the following dependencies:
References
Summary
In this tutorial we learn how to install python-pygeoif
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.