What package is that file in ?
Posted by jharr on October 4th, 2007
Email This Post
$ sudo apt-get install apt-file
$ sudo apt-file update
$ apt-file search autoexpect
expect-dev: usr/share/doc/expect-dev/examples/autoexpect.1.gz
expect-dev: usr/share/doc/expect-dev/examples/autoexpect.gz
expect-tcl8.3: usr/share/doc/expect-tcl8.3/examples/autoexpect
expect-tcl8.3: usr/share/doc/expect-tcl8.3/examples/autoexpect.1
manpages-ja: usr/share/man/ja/man1/autoexpect.1.gz
Apt-file comes in handy many times. One thing to note is that you don’t need to run ‘apt-file update’ very often (once every release upgrade) since the file names don’t change that much, just the file contents.
For the record, if you want to figure out which installed package a file belongs to, use ‘dpkg -S’. This doesn’t always work for config files, and files in /var, since those are generated after the package is extracted.
If you want to be notified the next time we write something please subscribe to our RSS feed.Thanks for Visiting!

May 31st, 2008 at 5:42 am
That’s handy, thanks