IMHO this functionality/package may be interesting to add (perhaps by default) in Gentoo environment. 'command-not-found' - In case a command could not be found this utility searches for packages containing this or a similar command (bash,zsh) Reproducible: Always
Unfortunately, it searches only the ARCH database. Anyway, for those interest, I added an ebuild to the mv overlay (available by layman).
Sadly I don't know how to code, otherwise I would try to make a port for gentoo. Thanks for adding in your overlay! ;-)
(In reply to comment #2) > Sadly I don't know how to code, otherwise I would try to make a port for > gentoo. It is not a question of coding: Since Gentoo is source-based (in contrast to Arch) the database needed for such a tool cannot exist. There are some attempts for some substitute http://www.portagefilelist.de/ If one really wants to get active in that direction, one should probably find a solution together with the maintainers of that website (e.g. that they make their database available for public download or something similar). I have neither the time nor the strong interest to do so. BTW: I fixed some minor coding issues of command-not-found in the ebuild. (E.g. /etc/profile.d/cnf.sh was in non-POSIX syntax, causing horrible problems if /bin/sh is symlinked to dash).
Resolved with app-portage/command-not-found, this optionally uses app-portage/pfl to query www.portagefilelist.de.