Monday, April 29, 2024
22
rated 0 times [  22] [ 0]  / answers: 1 / hits: 40978  / 2 Years ago, fri, may 20, 2022, 11:31:52

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


More From » application-development

 Answers
5

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.


[#36945] Sunday, May 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eving

Total Points: 162
Total Questions: 102
Total Answers: 112

Location: Trinidad and Tobago
Member since Thu, Dec 1, 2022
1 Year ago
;