query using debian packaging manager
September 24th, 2006 mysurface Posted in Admin, backquote, dpkg, grep, pipeline, which | Hits: 30553 | 4 Comments »
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







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. [...]
May 19th, 2011 at 1:27 am
Wow! This could be one particular of the most beneficial blogs We’ve ever arrive across on this subject. Actually Fantastic. I’m also an expert in this topic so I can understand your effort.
September 12th, 2011 at 7:29 am
Hey absolutely everyone, simply arriving to state that the article is incredibly unique, even though there happen to be several somewhat strange remarks.