Also,
dpkg -S <pattern>
For instance:
Search for package belonging to an executable
$ dpkg -S `which netstat`
net-tools: /bin/netstat
Search for packages containing a filename with a matching pattern
$ dpkg -S netstat
net-tools: /usr/share/man/man8/netstat.8.gz
nessus-plugins: /usr/lib/nessus/plugins/netstat.nasl
net-tools: /usr/share/man/de_DE/man8/netstat.8.gz
net-tools: /usr/share/man/pt_BR/man8/netstat.8.gz
net-tools: /usr/share/man/fr_FR/man8/netstat.8.gz
net-tools: /bin/netstat
On Thu, Apr 19, 2001 at 11:48:33AM -0700, Rob Hudson wrote:
> Useful debian commands...
>
> List all: dpkg -l
> List files in a package: dpkg -L <filename>
> Search for a package to install: apt-cache search <keyword>
>
> > On 20010419.1142, larry a price said ...
> >
> >
> > Is there an easy way to get a list of all installed packages from apt
> > the only thing i came up with was
> >
> > bash$:locate *.deb
> >
> > and that doesn't necessarily show what's currently installed :p
> > i looked at the man page for apt-get and apt-cache
> > and this doesn't seem to be there is it in dselect pehaps?
> >
> > Larry Price | "We have seen the truth.
> > [EMAIL PROTECTED] | And the truth makes no sense." -chesterton
> > _______________________________________________________________