Fedora's yum
package management tool has a nice option called whatprovides
, which lets you find what package has installed a specific binary or file. What is the equivalent command on Ubuntu?
For example, say I'd like to find what package provided /usr/bin/mysqladmin
. I know it should be something like mysql-server*
. I've read that apt-cache search blah
is a similar command, but running apt-cache search /usr/bin/mysqladmin
returns nothing. Is there a better command?