Command not found – openSUSE 11.1 preview

Have you ever tried running an application, only to get “command not found”. Well, that sucks and you’ve probably asked yourself “well, ummm, what package is this application part of?”.

Well wonder no more. As openSUSE 11.1 this feature has been implemented. I first saw the feature in openSUSE Beta 3. I must note, that I did an upgrade from 11.0 to Beta 2, then to Beta 3 so my experiences may not be exactly like yours.

First, I installed the command-not-found package, which is on the factory repository.

sudo zypper in command-not-found

Next, I opened up Konsole (I run KDE) and typed evolution (GNOME Mail Client, which I do not have installed). Bummer, all I got was:

bash: evolution: command not found

It didn’t tell me what to install.

So I checked out the README for command-not-found which can be found i nthe following spot:

/usr/share/doc/packages/command-not-found/README

Note: This is for users of the BASH shell.
Awesome, it tells me I have to add:

if [ -f /etc/bash_command_not_found ]; then
. /etc/bash_command_not_found
fi

to

/etc/bash.bashrc

Which would give it to all users, but I decided I only wanted to activate it for myself, so I put the above in:

~/.bashrc

Killed my session, relaunched konsole and type evolution, now I get:

The program ‘evolution’ can be found in the following package:
* evolution [ path: /usr/bin/evolution, repository: zypp (OSS_11.1_Factory) ]
Try: sudo zypper install evolution
bash: evolution: command not found

Sweet. Awesome, about time.. however I don’t want to install it so I won’t run sudo zypper install evolution. However, I think “Try:” should be rephrased to:

Try installing with: sudo zypper install evolution

I haven’t checked to see how it’s immplemented in a new install of openSUSE 11.1 Beta 3, but I am hoping it’s activated by default for all users.

Great job openSUSE guys.


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

About ben.kevan

I am ben kevan.. Well yeah. .that's about it.

4 Comments

  • October 24, 2008 | Permalink |

    Hi! I’m the author of command-not-found feature and I’m glad you liked it! I will rephrase the text in the next release. openSUSE 11.1 from Beta 3 has this working out of the box so instructions in README are superflous. I will alter this text too …

  • Alexwebmaster
    March 3, 2009 | Permalink |

    Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru

  • March 16, 2009 | Permalink |

    nice! [IMG]http://rich-niche.info/cookie/img/smilies/happy.gif[/IMG]

  • amel
    April 8, 2009 | Permalink |

    salut, j’ai un probléme sous suse 11.1, le serveur asterisk ne marche pas
    lorsque je tape astersik -vvvc
    est ce que tu peux m’aider sil vous plais

One Trackback

  • April 1, 2009 | Permalink |

    [...] On some more SLED 11 specific topics I was dis-appointed to see that command-not-found wasn’t shipped installed be default like it was on openSUSE 11.1. However, it can be found on the repository and installed. To get it working you can read a previous blog I did about command-not-found here. [...]

Leave a comment

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Your email is never shared. Required fields are marked *