Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 431028

Summary: app-misc/command-not-found - In case a command could not be found this utility searches for packages containing this or a similar command (bash,zsh)
Product: Gentoo Linux Reporter: Alexandre <alexandre.guimaraes>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: UNCONFIRMED ---    
Severity: enhancement CC: lebarondemerde, lssndrbarbieri, martin
Priority: Normal Keywords: EBUILD, InOverlay
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/metti/command-not-found
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexandre 2012-08-12 00:55:53 UTC
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
Comment 1 Martin Väth 2012-08-12 10:12:51 UTC
Unfortunately, it searches only the ARCH database.

Anyway, for those interest, I added an ebuild to the mv overlay
(available by layman).
Comment 2 Alexandre 2012-08-12 20:34:52 UTC
Sadly I don't know how to code, otherwise I would try to make a port for gentoo.

Thanks for adding in your overlay! ;-)
Comment 3 Martin Väth 2012-08-13 17:53:51 UTC
(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).