Package Details: command-not-found 0.6.2-2

Git Clone URL: https://aur.archlinux.org/command-not-found.git (read-only)
Package Base: command-not-found
Description: In case a command could not be found this utility searches for packages containing this or a similar command (bash,zsh).
Upstream URL: http://github.com/metti/command-not-found
Licenses: GPL
Submitter: msquared
Maintainer: oberon2007
Last Packager: oberon2007
Votes: 194
Popularity: 0.245243
First Submitted: 2011-09-10 22:42
Last Updated: 2019-04-29 19:21

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

jmontano commented on 2014-02-18 16:21

cnf-mirror MIRROR="http://mirror.hatcolorsoft.com" is not working therefore it can't do first sync and find any "not-found" command

donniezazen commented on 2014-01-10 05:37

Pardon me. I had to add following to .bashrc get it to work.

source /usr/share/doc/pkgfile/command-not-found.bash
[ -r /etc/profile.d/cnf.sh ] && . /etc/profile.d/cnf.sh

donniezazen commented on 2014-01-10 05:34

I have installed pkgfile and command-not-found. I have following in my .bashrc.

source /usr/share/doc/pkgfile/command-not-found.bash

I still get command not found. I have used this previously but it is not working on my current system. I have tried manually sourcing command-not-found.bash. Still no luck.

https://wiki.archlinux.org/index.php/Zsh#The_.22command_not_found.22_hook
https://wiki.archlinux.org/index.php/Pkgfile

Det commented on 2013-10-06 18:11

It's only sourced on login, hence it will not work on children shells.

Even the Wiki for Zsh suggests sourcing it from ~/.zshrc: https://wiki.archlinux.org/index.php/Zsh#The_.22command_not_found.22_hook

E: There's quite a good response in Ask Ubuntu: http://askubuntu.com/a/247769

Det commented on 2013-10-06 18:09

It's only sourced on login, hence it will not work on children shells.

Even the Wiki for Zsh suggests sourcing it from ~/.zshrc: https://wiki.archlinux.org/index.php/Zsh#The_.22command_not_found.22_hook

msquared commented on 2013-10-06 14:53

Actually /etc/profile itself sources /etc/profile.d/*.sh and bash itself sources /etc/profile ... seems something else is broken on your system or you changed this default behavior somehow.

danyf90 commented on 2013-10-06 14:06

i've solved the issue by adding the following line to my .bashrc file:
source /etc/profile.d/cnf.sh

danyf90 commented on 2013-09-12 19:02

EDIT:
it works in virtual console (ctrl+alt+f1) but it doesn't in Konsole or yakuake (i'm using kde)

danyf90 commented on 2013-09-10 11:05

it doesn't work for me.
cnf-lookup works properly but when i write a not recognized command i receive a simple command not found error message.

Det commented on 2013-04-16 22:34

For proper English the output could say "The command 'X' is provided by [...]" instead of "The command 'X' is been provided by [...]".

Also to make it work in subshells too you could use ${ZSH_NAME} and ${BASH} instead of ${SHELL} in '/etc/profile.d/cnf.sh' (see: http://stackoverflow.com/a/3327022).