Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed the c++ boost development libraries using Ubuntu software centre. The problem is that it was quite a long time ago and I cannot remember where they are installed nor what version they were. Is there anything I can do from the command line that will tell me what version(s) I have installed on my system?? I know I can do things like

gcc -v

to get version of an application but is there a similar thing available for libraries? I am using ubuntu 12.04

share|improve this question
    
What's wrong with whereis boost? It returns /usr/include/boost. Most library headers are in /usr/include their binaries are normally in /usr/lib –  con-f-use Jul 10 '12 at 20:55
add comment

2 Answers

up vote 4 down vote accepted

You can quickly find what version or where a library is, even if you do not quite know the title, with dpkg, and, in your case, using boost as the query term:

dpkg -l '*boost*'

and then query dpkg again with this option for a full list of file locations now you know the name of the file:

dpkg -L <'name of lib'>

The name of the library may, for example, be libboost1.46-dev.

share|improve this answer
add comment

Use ldconfig -v to print libraries and current version number and grep to filter your results ldconfig -v | grep [name].

share|improve this answer
add comment

Your Answer

 
discard

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.