lamer question display installed pkgs

James Gray james.gray at dot.com.au
Sun Apr 27 22:17:25 UTC 2008


reader at newsguy.com wrote:
> Its been a good while since I used apt-get and apt-cache.  I once, yrs
> ago ran debian for a while.
> 
> I can't remember how to get a list of installed pkgs.  
> After browsing both man apt-get and apt-cache... I still didn't see a
> switch that shows installed pkgs.

In addition to Tim and Larry's comments, you can search for a specific 
package using familiar shell globbing as long as you enclose the glob in 
single quotes, or escaping them (to avoid the shell interpretting them). 
  For example, to find packages names with "ssh" in them:

dpkg -l '*ssh*'

Another great command is finding out which package a file came from (you 
need the full path...that's a common gotcha!):

dpkg -S /full/path/to/file

Have fun :)

Cheers,

James
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3253 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080428/c7d1fb34/attachment-0001.bin>


More information about the ubuntu-users mailing list