Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I mis-type a command, the shell tries to find a package that provides it. How do I disable this feature?

Example:

[dave@dave cpp]$ sl
bash: sl: command not found...
Install package 'sl' to provide command 'sl'? [N/y] 

I'd like if if I weren't prompted to install the command.

share|improve this question
    
Wow, that seems annoying beyond reason! I know Ubuntu uses similar package suggestion, but at least it doesn't end in a prompt. Is this standard in Fedora Desktop? I run Fedora on a server and do not recognize it. – Daniel Andersson Sep 5 '13 at 15:04
up vote 7 down vote accepted

The problem is PackageKitCommandNotFound. Removing it

yum remove PackageKit-command-not-found

should do the trick, according to the mailing list.

share|improve this answer

After doing a

yum remove PackageKit-command-not-found

if you get the error,

bash: /usr/libexec/pk-command-not-found: No such file or directory

you will need to add the follow line to ~/.bashrc

unset command_not_found_handle
share|improve this answer
    
Or log out and back in again. It's worth noting that unsetting command_not_found_handle is sufficient even without removing the package. – mattdm Apr 19 at 21:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.