Lionel’s blog

16 Mar, 2007

command-not-found package in Ubuntu

Posted by: lionel @ 13:03:06

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 ?

6 Responses to "command-not-found package in Ubuntu"

1 | Titom

March 16th, 2007 at 2:06 pm

Avatar

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

2 | Titom

March 16th, 2007 at 2:07 pm

Avatar

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

PS : English is better.

3 | lionel

March 16th, 2007 at 2:21 pm

Avatar

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

4 | Titom

March 16th, 2007 at 2:34 pm

Avatar

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

5 | nico

March 16th, 2007 at 2:48 pm

Avatar

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

6 | adi

December 3rd, 2007 at 6:15 am

Avatar

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

Comment Form

About

This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from.