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 Comment to Command not found - openSUSE 11.1 preview
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
Powered by
Tags
10.3 11.0 11.1 apache bash beta bootchart codeweavers compiz drivers emerald emulation esx fat ass tomato man filesystems flash fonts gnome grub ibm kde kde4 kernel knoppix linux lotus notes lvm Microsoft nomad nvidia openoffice opensuse performance repositories review scripting security tech tutorial ubuntu user management VMWare windows wine workstationArchives
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- February 2008
- January 2008
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
Ben Kevan's Blog
- Connecting to Linux via RDP using NOMAD on openSUSE 11.1
- Red Hat (RHT) Profits Soar, is Novell (NOVL) Next?
- Dropping KDE 3.5 for openSUSE 11.2 isn’t really a bad thing
- 5 Days on openSUSE 11.1 was an early X-Mas present
- Unexpected Downtime
- Amarok 2.0 Final Released - Shipping with openSUSE 11.1
- PCLinuxOS 2009 Beta 2 - Review, Thoughts and Screenshots
- Opera 10.0 Alpha 1 on openSUSE 11.1 - Review
- Ding Dong the Emeralds Back Compiz
- 11.1 Build Service Repositories being Built
October 24, 2008