Re: Any way to search executable name?
On Mon, Jul 12, 2004 at 10:08:02PM +0200, Andreas Janssen wrote:
> Hello
>
> * Tong* (<sun_tong_001@yahoo.com>) wrote:
>
> > Is there any way to search executable name for it package?
> >
> > For example, from efax.rc I know that it uses "paperconf" to determine
> > paper size. but apt-cache search can't find its package name...
>
> You can use dpkg -L to list the contents of an installed package. Maybe
> you want to do something like
>
> dpkg -L package | grep bin
>
> This should list at least all files that are stored in /bin, /sbin,
> usr/bin and /usr/sbin.
>
Hi,
you can search for a file name from installed packages
with "dpkg -S".
For example:
# dpkg -S paperconf
libpaperg: /usr/share/man/man8/paperconfig.8.gz
libpaperg: /usr/bin/paperconf
libpaperg: /usr/sbin/paperconfig
libpaperg: /usr/share/man/man1/paperconf.1.gz
Regards,
Mikael Magnusson
Reply to: