If the package command-not-found
is installed and a user tries to run a command which is not present on the system, a suggestion is printed with the name of the package which provides the executable. Is there a command with the same functionality but which takes the name of an executable as an argument?
Edit: I have read How to find out which (not installed) Debian package a file belongs to? but none of the suggestions present a command which gives an unambiguous result like command-not-found
.
package: filename
, but whatever you say. – muru Jul 16 '19 at 09:57apt-file search
requires and provides details which I don't care for, for instance you need to provide the path/usr/bin
to the command in question. – August Karlstrom Jul 16 '19 at 12:18