Command not found - openSUSE 11.1 preview

Thursday, October 23rd, 2008 | SuSE Linux, Techie

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.


Tags: ,


1 Comment to Command not found - openSUSE 11.1 preview

Pavol Rusnak
October 24, 2008

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 …

Leave a comment

Search

Polls

Do you think having RDP on a Linux Host important in the enterprise space?

View Results

Loading ... Loading ...

Powered by