downloadosmtiles command not found

In this troubleshooting guide we learn how to fix downloadosmtiles command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

downloadosmtiles: command not found

or when using sudo you get the following error message

sudo: downloadosmtiles: command not found

Solutions to downloadosmtiles: command not found

How To Fix downloadosmtiles: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu downloadosmtiles is provided by libgeo-osm-tiles-perl package.

libgeo-osm-tiles-perl is:

Geo::OSM::Tiles provides functions for calculating the path to a map tile at OpenStreetMap out of geographic coordinates. The path of a tile at OSM has the form $zoom/$tilex/$tiley.png. The numbering scheme is documented in the OSM wiki at http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames .

The package also contains the downloadosmtiles script that allows one to conveniently download OSM map tiles from a given OSM permalink URL.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libgeo-osm-tiles-perl

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libgeo-osm-tiles-perl.

sudo apt -y install libgeo-osm-tiles-perl

Or if you have aptitude installed you can use the following command.

sudo aptitude install libgeo-osm-tiles-perl

Summary

In this tutorial we learn how to fix downloadosmtiles command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.