Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to know what version of pgrouting do I have?

My OS is ubuntu 12.04.

I want to know my pgrouting version because the 1.05 version has some issues with shooting start and the directed graphs and the last stable version wich has this algotihm is the 1.03

share|improve this question
How did you install pgrouting? From source(*.tar.gz or git clone) or ubuntu package(apt-get install *)? – sanak Sep 20 '12 at 13:49
From ubuntu package – José Alejandro Sep 24 '12 at 18:21
Can you give me the command you used to install it? – R.K. Sep 24 '12 at 18:33
sudo add-apt-repository ppa:georepublic/pgrouting sudo apt-get update sudo apt-get install gaul-devel \ postgresql-9.1-pgrouting \ postgresql-9.1-pgrouting-dd \ postgresql-9.1-pgrouting-tsp \ pgrouting-workshop – José Alejandro Sep 24 '12 at 19:57
What do you see in aptitude then?? ("/" to search) – Aname Sep 25 '12 at 9:16
up vote 2 down vote accepted

Did you install it through Ubuntu's package manager? You could try firing up your terminal and typing

apt-show-versions postgresql-9.1-pgrouting

That should return the version. You might have to install apt-show-versions

apt-get install apt-show-versions
share|improve this answer
didn't work. I'm using navteq as a geographic data source – José Alejandro Sep 24 '12 at 18:28
What error message did you get? – R.K. Sep 24 '12 at 18:28
osm2pgrouting not installed... because I don't have osm2pgrouting installed. – José Alejandro Sep 24 '12 at 18:30
Which package did you install then? – R.K. Sep 24 '12 at 18:32
when I tried with: apt-show-versions pgrouting got this: pgrouting not installed (even not available) – José Alejandro Sep 24 '12 at 20:00

Another option would be select * from pgr_version()

share|improve this answer
This is a much better option, as it works on any OS. Worth mentioning that pgr_version is a function with hard-coded values, that also returns git versions. – John Barça Jul 4 at 7:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.