Wednesday, August 22, 2007

Find any information about any package (Ubuntu 7.04)

To find out any information about any package installed on your Ubuntu machine, use the pkg-config command.
I had to find out the version installed on my machine so I did this:
pkg-config <NAME> --modversion

Here's what --help on pkg-config throws up:
$ pkg-config --help
Usage: pkg-config [OPTION...]
--version output version of pkg-config
--modversion output version for package
--atleast-pkgconfig-version=VERSION require given version of
pkg-config
--libs output all linker flags
--static output linker flags for
static linking
--short-errors print short errors
--libs-only-l output -l flags
--libs-only-other output other libs (e.g.
-pthread)
--libs-only-L output -L flags
--cflags output all pre-processor and
compiler flags
--cflags-only-I output -I flags
--cflags-only-other output cflags not covered by
the cflags-only-I option
--variable=VARIABLENAME get the value of a variable
--define-variable=VARIABLENAME=VARIABLEVALUE set the value of a variable
--exists return 0 if the module(s)
exist
--uninstalled return 0 if the uninstalled
version of one or more
module(s) or their
dependencies will be used
--atleast-version=VERSION return 0 if the module is at
least version VERSION
--exact-version=VERSION return 0 if the module is at
exactly version VERSION
--max-version=VERSION return 0 if the module is at
no newer than version VERSION
--list-all list all known packages
--debug show verbose debug information
--print-errors show verbose information
about missing or conflicting
packages
--silence-errors show verbose information
about missing or conflicting
packages
--errors-to-stdout print errors from
--print-errors to stdout not
stderr

Help options
-?, --help Show this help message
--usage Display brief usage message

Labels: , , , , , ,

0 Comments:

Post a Comment

<< Home