How To Install libspatial4j-java on Debian 10
Introduction
In this tutorial we learn how to install libspatial4j-java on Debian 10.
What is libspatial4j-java
libspatial4j-java is:
Spatial4j is a general purpose spatial / geospatial Java library. It’s core capabilities are 3-fold: to provide common geospatially-aware shapes, to provide distance calculations and other math, and to read and write the shapes to strings.
There are three methods to install libspatial4j-java on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libspatial4j-java Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libspatial4j-java using apt-get by running the following command:
sudo apt-get -y install libspatial4j-java
Install libspatial4j-java Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libspatial4j-java using apt by running the following command:
sudo apt -y install libspatial4j-java
Install libspatial4j-java 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 libspatial4j-java using aptitude by running the following command:
sudo aptitude -y install libspatial4j-java
How To Uninstall libspatial4j-java on Debian 10
To uninstall only the libspatial4j-java package we can use the following command:
sudo apt-get remove libspatial4j-java
Uninstall libspatial4j-java And Its Dependencies
To uninstall libspatial4j-java and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libspatial4j-java
Remove libspatial4j-java Configurations and Data
To remove libspatial4j-java configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libspatial4j-java
Remove libspatial4j-java configuration, data, and all of its dependencies
We can use the following command to remove libspatial4j-java configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libspatial4j-java
Dependencies
libspatial4j-java have the following dependencies:
References
Summary
In this tutorial we learn how to install libspatial4j-java package on Debian 10 using different package management tools: apt, apt-get and aptitude.