osmium command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
osmium: command not found
or when using sudo you get the following error message
sudo: osmium: command not found
Solutions to osmium: command not found
How To Fix osmium: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu osmium is provided by osmium-tool package.
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.
To fix this problem, we can install more using the command below.
sudo apt-get -y install osmium-tool
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install osmium-tool.
sudo apt -y install osmium-tool
Or if you have aptitude installed you can use the following command.
sudo aptitude install osmium-tool
Summary
In this tutorial we learn how to fix osmium command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.