query using debian packaging manager
0 votos
September 24th, 2006 mysurface Posted in Admin, backquote, dpkg, grep, pipeline, which | Hits: 6670 |
I am here to show you two examples of using dpkg to query package info.
To know what deb package is installed, you can do this
dpkg -l
Usually we do this with grep, to filter only info that we are interested in, let say i want to know the packages consist of keyword gcc.
dpkg -l | grep gcc
If I want to know the binary files are from which deb package, i can do that, let say i want to know for gnome-help.
dpkg -S `which gnome-help`
which is to shows the full path for gnome-help and it uses back quote to pass the result to dpkg.
Output:
yelp: /usr/bin/gnome-help
Live Chat!









November 21st, 2006 at 10:07 am
[...] As contrast, if you wanna know the command(binaries) are from which package installed, check out this example. [...]
May 5th, 2007 at 9:58 am
[...] With that, we can actually check on certain command is from which package, where conventionally I usually do with dpkg -S. Compare to dpkg -S, command-not-found is much much more faster. [...]