command-not-found package in Ubuntu

The package command-not-found is now part of the default Ubuntu Desktop installation. What does the command-not-found package do ? Let's take an example:

lionel@ouessant:~$ mutt
The program 'mutt' is currently not installed. You can install it by typing:
sudo apt-get install mutt
bash: mutt: command not found

When a command is not found in your computer, it search in a database in which package this command is and give you the command to install it.
Great isn't it ?

Printed from: http://www.porcheron.info/command-not-found-package-in-ubuntu/ .
© 2010.

6 Comments   »

  • Titom says:

    Oh yes. Trop bien. J'aurais plus besoin de faire appel à tes services maintenant. :-P

  • Titom says:

    Oh yes. too good. I won't need your help anymore now. :-P

    PS : English is better.

  • lionel says:

    Titom, what a pity that you were forced by your team mates to use zsh: it does not work with zsh ;-)

  • Titom says:

    So I will still need your help. Great. :-)

  • nico says:

    nicolasl@bumbo ~ $ sudo apt-get install command-not-found
    Lecture des listes de paquets... Fait
    [.....]
    Paramétrage de command-not-found (0.1.0) ...

    nicolasl@bumbo ~ $ mutt
    zsh: command not found: mutt

    arg ! :p

  • adi says:

    You need to source
    /etc/zsh_command_not_found for this feature to work with zsh

RSS feed for comments on this post , TrackBack URI

Leave a Reply