Given the name of a binary (or any other program). How to find out which package provides this binary?
Note: Assuming one uses apt
/dpkg
for package managing.
Edit
Additional to the correct answer below, I'd like to add some further information: In the question above I was assuming that the corresponding package was installed. If this is not the case, there is a package called apt-file
which could do the job anyway.
Searching for the mysqldump
tool could be done with
$ apt-file --regexp search .*mysqldump$
Resulting in:
mariadb-client-10.0: /usr/bin/mysqldump
mysql-client-5.5: /usr/bin/mysqldump
This solution was found here but I thought it could be of use to mention it here.