Find in which .deb package a file belongs to

If you want to find in which package a file is located, ‘apt-file’ is your friend:

  1. sudo apt-get install apt-file (we should install it first!)
  2. sudo apt-file update (we update its db)
  3. apt-file find myfilename

note: you can use –regexp | -x option to search using a regular expression pattern (apt-file -x find mypattern)

That’s it!

sources

Leave a Reply