Remote Sensing tips and tricks

Installing GDAL on Ubuntu

GDAL is amazing. I use it everyday for various raster handling tasks, such as converting weird file formats to more useable ones, reprojecting and querying datasets.

Below is a quick guide to getting GDAL command line utilities up and running on Ubuntu.

First of all you will need to add the UbuntuGIS repository. Using a text editor, open the file /etc/apt/sources.list and add the following lines:

deb <codename> main 
    deb-src <codename> main

Next, you will need to update the list of available packages. Open a terminal and type the following:

sudo apt-get update

Once this has been done, it is possible to install any of the packages available through the UbuntuGIS repository. For a list of all available packages, see

Alternatively, as we know we want to install GDAL, simply type the following:

apt-cache search gdal

This will bring up a list of all packages that have ‘gdal’ in the description/title. So if we type:

sudo apt-get install gdal-bin

You should also install python bindings, which can be really useful for tools such as and

You’re ready to start using GDAL.

Spot an error raise a ticket