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

  • 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

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
  • 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()

  • 1
    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 Powell Jul 4 '16 at 7:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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