How to find which package provides a file in Linux Mint?

How to find which package provides a file in Debian based releases, such as Linux Mint, Ubuntu?

asked Aug 15, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

You can use dpkg:

dpkg -S /path/to/the/file

Or for a command file such as ps2pdf:

dpkg -S `which ps2pdf`
answered Aug 15, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...