How To Install osmium-tool on Debian 10
Introduction
In this tutorial we learn how to install osmium-tool
on Debian 10.
What is osmium-tool
osmium-tool is:
Osmium Tool is a multipurpose command line tool based on the Osmium library.
With the Osmium Tool you currently can:
- Get information about an OSM file
- Convert OSM files from one format into another (supports all XML and PBF formats)
- Merge and apply change files to an OSM file (with or without history)
- Extract data from OSM history files for a given point in time or a time range
The Osmium library has extensive support for all types of OSM entities: nodes, ways, relations, and changesets. It allows reading from and writing to OSM files in XML and PBF formats, including change files and full history files. Osmium can store OSM data in memory and on disk in various formats and using various indexes. Its easy to use handler interface allows you to quickly write data filtering and conversion functions. Osmium can create WKT, WKB, OGR, GEOS and GeoJSON geometries for easy conversion into many GIS formats and it can assemble multipolygons from ways and relations.
There are three methods to install osmium-tool
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 osmium-tool Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install osmium-tool
using apt-get
by running the following command:
sudo apt-get -y install osmium-tool
Install osmium-tool Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install osmium-tool
using apt
by running the following command:
sudo apt -y install osmium-tool
Install osmium-tool 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 osmium-tool
using aptitude
by running the following command:
sudo aptitude -y install osmium-tool
How To Uninstall osmium-tool on Debian 10
To uninstall only the osmium-tool
package we can use the following command:
sudo apt-get remove osmium-tool
Uninstall osmium-tool And Its Dependencies
To uninstall osmium-tool
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove osmium-tool
Remove osmium-tool Configurations and Data
To remove osmium-tool
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge osmium-tool
Remove osmium-tool configuration, data, and all of its dependencies
We can use the following command to remove osmium-tool
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge osmium-tool
Dependencies
osmium-tool have the following dependencies:
References
Summary
In this tutorial we learn how to install osmium-tool
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.