How to install the most common open-source GIS applications on Ubuntu

Since my home computer refused to boot up, I decided to format my hard drive and install Ubuntu 16.04. In addition to Google Chrome and Sublime Text, the only other applications I needed were all my favorite open-source GIS software. So this is how I spent most of the Saturday morning:

PostgreSQL & PostGIS

PostgreSQL is a powerful object-relational database management system. But why should be used instead of other relational (or non-relational) DBS? Because PostGIS (and CARTO) is built on top of postgres. As explained here, you just need to type the following line on the command line to install postgres last version (9.5):

If you are a beginner, maybe it would be useful to install pgadmin III, a very nice postgres UI:

Finally, after connecting to postgres and creating a database, you can add PostGIS extension using these lines:


QGIS is my favorite desktop GIS software. What I like the most about QGIS is its plugins ecosystem and active community. In fact, last April I gave a QGIS introduction workshop with GeoInquietos Madrid. In order to install QGIS on Ubuntu, you need to first open your source.list using a text editor (in my case gedit):

And add the following line to the ubuntugis repository as explained here:

deb xenial main

After that type:



After watching Erik map 20 squares during the last mapathon, I realized the necessity of mastering JOSM. The OSM iD is more user friendly, but if you want to take one step further, JOSM is your platform. Again, as commented here, use this shortcut to add a new repository on your source.list:

Next, it is necessary to download and register the public key. That can also be done in a single line:

The final item is to refresh the sources.

Now you can install josm:


GDAL is the best library to work with spatial data. As mentioned in this blog post, there are many ways to install GDAL on Ubuntu. To get the latest GDAL/OGR version, add the PPA to your sources (this step could be avoided if we have installed QGIS using ubuntugis repository):

Then install the gdal-bin package:


Last but not least, CARTO. As you already know, CARTO is the most powerful web platform for analyzing and visualizing spatial data (and it just happens that I work there). Because installing CARTO is a more complex issue, I will redirect you to the documentation (and if you have problems, cartodb Google Group is really helpful). Maybe it is worth an entire blog post.

GIS Analyst. Working at @CARTO and @ongawa4d.

Leave a Reply

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *