query using debian packaging manager

September 24th, 2006 mysurface Posted in Admin, backquote, dpkg, grep, pipeline, which | Hits: 46949 | 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.


yelp: /usr/bin/gnome-help

4 Responses to “query using debian packaging manager”

  1. [...] As contrast, if you wanna know the command(binaries) are from which package installed, check out this example. [...]

  2. [...] 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. [...]

  3. 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.

  4. Hey absolutely everyone, simply arriving to state that the article is incredibly unique, even though there happen to be several somewhat strange remarks.

Leave a Reply