Frequently I know the name of the command line program that I need but I don't know the name of the package that provides the program. How do I find the name of the package that contains the program that I need? On RPM based systems they have the whatprovides
option rpm -q --whatprovides /usr/X11R6/bin/xclock
which will find the correct package. Is there anything similar for Debian based systems?
Ubuntu – How to find the package that contains a given program on Ubuntu
aptaptitudepackage-managementUbuntu
Best Answer
If the package is installed, you want
dpkg -S /path/to/file
. If the package isn't installed, then use the apt-file utility (apt-file update; apt-file search /path/to/file
).