[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: get package name from file name



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/07/11 13:17, Wolodja Wentland wrote:
> As always there are multiple to do this :)
> 
>     * dpkg -S /path/to/file
>     * apt-file search /path/to/file
>     * dlocate -S /path/to/file
> 
> I prefer to use either apt-file or dlocate. The former comes in quite handy as
> it also works for packages that are not installed and it supports regular
> expressions. If you are looking for an executable, but don't know the full
> path you can search for:
> 
>     $ apt-file search -x "bin/foo$"
> 
> which will find all files named "foo" that are in a bin/ directory somewhere.
> In particular this will not match "bin/foobar". dlocate on the other hand is a
> bit faster than "dpkg -S" and has other goodies too ... have a look.
> 
> have fun

Yeee, many ways to the same goal but dlocate or apt-file aren't present
in Debian by default like dpkg is :-)

- -- 

|_|0|_|                                          |
|_|_|0|         "Heghlu'Meh QaQ jajVam"          |
|0|0|0|         -------- kuLa ---------          |

gpg --keyserver pgp.mit.edu --recv-keys 0xC100B4CA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOFajwAAoJEOqHloDBALTKcHEIAIQNi9szfQeX5yLTji0JD+af
LcWnXh2Y7I/Q57d1S5FVM1c69n8PkIfBZD+zXmqy5Y3hzZvPBDv6b8RCz8EY3aQq
Ht1ViDI1A6A4WuZev3f2BmxS/XxajU8nJYLD11++coIADWNohaycq7LhKEPciBxh
JWG+hbC8L+vx13qRsgGGHl0oO15+ZigeKYykaBXe4kSxl/gZRgKFEQGZiHn2DQ6Y
0wZ2Arw0jtKrv6Zp6d0hDGQM7/9SG+dCLF32yXRzxRlTZ9m0tjNKD4EGVy/89Ogh
wZviLhKXdn89dBv4c1zGNI08n3uIm9yX3HXz8rVprspGP7JTKLe1RLrt25UJcQc=
=yWg6
-----END PGP SIGNATURE-----


Reply to: