“What package is that file in?”

There’s a really easy way to find out yourself. It’s called apt-file and it can search for a file in any package (installed or not). It’s really easy to use:

$ sudo apt-get install apt-file

$ sudo apt-file update

if you want to search for file autoexpect just type:

$ 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

———————

This article is mirrored from http://www.ubuntugeek.com/what-package-is-that-file-in.html
Thanks fly to the original author

Related posts:

  1. Prune KDE New File > Templates
  2. une-gconf-default gconf file missing error while updating
  3. mounting a samba share locally
  4. find on time basis
  5. Setting up SquirrelMail webmail
  6. Dividere un file con il relativo CUE
| Print This Post Print This Post | Email This Post Email This Post
RSS 2.0 | Trackback | Comment

Leave a Reply

XHTML: You can use these tags: b, cite, code, em, i, q cite="", strike, strong.