Skip to content

Download: Debian and Ubuntu

Regina Obe edited this page Jun 23, 2025 · 7 revisions

This wiki page is no longer mantained, please go to for latest information about the installation: https://github.com/pgRouting/pgrouting/wiki/Notes-on-Download,-Installation-and-building-pgRouting

More information can be found in: https://wiki.postgresql.org/wiki/Apt

Linux

pgRouting on Ubuntu can be installed using packages from a PostgreSQL repository:

Using a terminal window:

The distributions are called codename-pgdg. The codename can be obtained with:

$(lsb_release -cs)

Run the following to setup the distro

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main ${{ matrix.psql }}" > /etc/apt/sources.list.d/pgdg.list'
  • Import the repository key, update the package lists

sudo apt install wget ca-certificates
sudo curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
sudo apt update
  • Install pgrouting based on your postgres Installation: for this example is 17
sudo apt install postgresql-17-pgrouting

This will also install all required packages such as PostgreSQL and PostGIS if not installed yet.

  • To be up-to-date with changes and improvements
sudo apt update && sudo apt upgrade

Back to Downloads

Clone this wiki locally