-
-
Notifications
You must be signed in to change notification settings - Fork 371
Download: Debian and Ubuntu
Vicky Vergara edited this page Mar 18, 2017
·
5 revisions
More information can be found in: https://wiki.postgresql.org/wiki/Apt
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)
Create /etc/apt/sources.list.d/pgdg.list
.
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
- Import the repository key, update the package lists
sudo apt install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
- Install pgrouting based on your postgres Installation: for this example is 9.3
sudo apt install postgresql-9.3-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-get update & sudo apt-get upgrade