Find out library version
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Luau
--
Chapters
00:00 Find Out Library Version
00:27 Accepted Answer Score 25
00:56 Answer 2 Score 19
01:08 Answer 3 Score 2
01:56 Answer 4 Score 0
02:09 Thank you
--
Full question
https://superuser.com/questions/690306/f...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #ubuntu #version
#avk47
ACCEPTED ANSWER
Score 25
I would use dpkg -l | grep libnuma1
to get the version.
As an example, I have ran dpkg -l
on xterm and you can see that I'm running versoin 278-4 of xterm.
# dpkg -l | grep xterm
ii lxterminal 0.1.11-4 amd64 LXDE terminal emulator
ii xterm 278-4 amd64 X terminal emulator
ANSWER 2
Score 19
You should try
ldconfig -v | grep libnuma
ANSWER 3
Score 2
The file name or contents won't always keep track of the exact version, so you'd typically want to use the packaging system facilities. For Ubuntu, you can either go to packages.ubuntu.com, search for your file, and see what version of the package is in your version of Ubuntu.
Or from the command line, you can first search for the name of the associated package using dpkg -S /usr/lib/libnuma.so.1
, which probably returns libnuma1
as the package name. Then run apt-cache showpkg libnuma1
to find the package version. The apt-cache
output can be pretty long, but the version should be in the first few lines.
ANSWER 4
Score 0
You can use pkg-config
:
pkg-config --modversion <your lib name>
For example, in my PC,
pkg-config --modversion fmt
will output
9.1.0