Results 1 to 2 of 2
If it was installed by RPM you can use this shell command (as root) to find out what version you have installed of any program on your box.
Example for ...
- 10-31-2006 #1Just Joined!
- Join Date
- Jun 2006
- Location
- (.)
- Posts
- 69
HOWTO: Find a version of something
If it was installed by RPM you can use this shell command (as root) to find out what version you have installed of any program on your box.
Example for squirrelmail:
rpm --query -a | grep squirrelmail
And some others:
rpm --query -a | grep exim
rpm --query -a | grep sendmail
To see the entire list:
rpm --query -a
This isn't 100% because some programs are inside other packages. Like the "net-tools" package contains things like "ifconfig, netstat, route" and others.
For that you could use a command like this:
rpm --query -ai | grep -B 10 -A 10 netstat
- 11-05-2006 #2Linux Newbie
- Join Date
- Oct 2004
- Posts
- 114
Some distro use PKG-CONFIG for information about installed versions of applications.
http://pkgconfig.freedesktop.org/
The location of ".pc" files are in:
/usr/lib/pkgconfig
..or...
/usr/local/lib/pkgconfig
Or other locations.
You can read the ".pc" files using ordinary text editor, or "cat *.pc" to list the content of the files.
cat *.pc > application_list.txt


Reply With Quote