Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    114

    Smile

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •