8

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. captain . As openSUSE 11.1 this feature has been implemented. I first saw the feature in openSUSE Beta 3. acceptance insurance . 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_foundfi

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 evolutionbash: evolution: command not found

Sweet. Hot Shot Trucking . 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 the Author

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

Comments (8)

Trackback URL | Comments RSS Feed

  1. Pavol Rusnak says:

    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 …

  2. Alexwebmaster says:

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

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

  4. [...] 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. [...]

  5. amel says:

    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

  6. I am very interested in this article you have written. I would like to know if you have more information on this subject like this one. You have shown here that you have vast knowledge.

  7. I can’t recall the last time I enjoyed an informative article like I have yours. You’ve exceeded my high standards and expectations with your excellent writing skills. You must have higher standards than I do.

  8. Venita Leemow says:

    Sometimes I contemplate if folks truly take time to compose something original, or are they only just dishing out words to fill a site. This surely doesn’t fit that mold. Thank you for taking the time to write with awareness. From Time To Time I look at a page and question whether they even proofread it.Fantastic work with this article.

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.