Find debian (deb) or RPM package that provides (contains) specific executable or file

You know how to install deb packages with apt-get cmd. But sometimes you need to find the package provides a specific file or executable.

RedHat or CentOS users have this command by default via yum cmd.

yum whatprovides updatedb

This command outputs all packages provide updatedb file (in that case it is an executable). Continue reading