Package Details: command-not-found 0.6.2-1

Git Clone URL: (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:
Licenses: GPL
Submitter: msquared
Maintainer: oberon2007
Last Packager: oberon2007
Votes: 194
Popularity: 0.927285
First Submitted: 2011-09-10 22:42
Last Updated: 2017-11-07 20:12

Latest Comments

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

msquared commented on 2012-05-13 21:20

Never thought that anyone would use dash as a logon shell :-)

Nevertheless I have two solutions:



mv /etc/profile.d/ /usr/local/etc/profile.d/
and put some similar coding into /etc/profile.d/ that just sources the other one for zsh or bash exclusively

Not sure whether dash has a command_not_found_handle at all ...

Patches welcome :-)

Freso commented on 2012-05-13 13:30

I love this script when I use it with zsh. It's really great. :)

However, when using dash as the login shell, I get the following error:
-dash: 3: /etc/profile.d/ Syntax error: "(" unexpected (expecting ";;")

I looked over the script, but couldn't think of a way off-hand to eliminate this error. :/

msquared commented on 2012-04-10 19:30

fixed ... thanks!

dlin commented on 2012-04-10 14:45

can not build

/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp: In function ‘void cnf::print_trace(int)’:
/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp:53:35: error: ‘getpid’ was not declared in this scope
/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp:55:54: error: ‘readlink’ was not declared in this scope
/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp:56:26: error: ‘fork’ was not declared in this scope
/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp:58:18: error: ‘dup2’ was not declared in this scope
/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp:61:39: error: ‘execlp’ was not declared in this scope
make[2]: *** [CMakeFiles/cnf.dir/guard.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/cnf.dir/all] Error 2
make: *** [all] Error 2

msquared commented on 2011-12-10 18:57

- Next version will clone via https.

- For the chroot thing: At the moment I do not have such a chroot available. Could you imagine a mechanism to reliable detect the 32bit chroot situation?

dlin commented on 2011-12-07 04:40

I try to build this on arch32-light, but get the following result.
How could I change it?

Or, could you change the script to detect if this is under chroot 32 or not?

Loading catalog community-staging-x86_64.tdb ...
Loading catalog kde-unstable-x86_64.tdb ...
Loading catalog multilib-testing-x86_64.tdb ...
Loading catalog core-x86_64.tdb ...
Loading catalog multilib-x86_64.tdb ...
Loading catalog gnome-unstable-x86_64.tdb ...
Loading catalog testing-x86_64.tdb ...
Loading catalog staging-x86_64.tdb ...
Loading catalog community-x86_64.tdb ...
Loading catalog extra-x86_64.tdb ...
Loading catalog community-testing-x86_64.tdb ..

dlin commented on 2011-12-07 04:37

Could you change git to https? It let firewall happier

karol_007 commented on 2011-09-11 17:32

Works for me now:
[karol@black ~]$ abiword
The command 'abiword' is been provided by the following packages:
abiword (2.8.6-5) [ abiword ]

msquared commented on 2011-09-11 17:28

I switched the backend implementation to tdb. It should work now on i686 and x86_64.

karol_007 commented on 2011-09-11 00:05

I'm using 32-bits.