Command-not-found on Suse 11.0
by admin on Jan.05, 2009, under Linux
Installing Command-not-found
( NOTE: Big thanks to Pavol Rusnak for helping me to get this working. He really did a great job of supporting this package, both working with me via direct email and on the Suse Forums. This was a perfect example of how successful the open source model is and how professional and helpful members in the community can be. You can see the Suse forum thread here. There was a minor bug in one of the conf files which Mr. Rusnak isolated and corrected, after which I was able to get this working no problem. You should have no problems getting this to work in Suse 11 following the instructions below.)
Suse 11.1 includes command-not-found, however 11.0 does not. This is a very handy tool and I wanted to get it working in 11.0, as I do not wish to upgrade to 11.1 at this time.
Goggling I found the site of the developer, Pavol Rusnak, who created command-not-found:
http://stick.gk2.sk/blog/?p=4
However, if you try to install command-not-found using the one click install at http://software.opensuse.org/search/ it will fail. The repo that is set up for some reason fails to locate a dependency which is, it appears, present in the repo. Also strange is the dependency scout-bin-suse110 will also not show up if you search for it, you have find it in the repo and install it manually. Hardly a big deal, but the steps are then:
Steps to install command-not-found on Suse 11.0
1) One click install of scout & add the repo:
http://software.opensuse.org/ymp/home:prusnak:scout/openSUSE_11.0/scout.ymp
2) Now manually install scout-bin-suse110
wget ftp://ftp5.gwdg.de/pub/opensuse/repositories/home:/prusnak:/scout/data/noarch/scout-bin-suse110-2008.10.07-15.1.noarch.rpm
3) NOW you can install command-not-found
http://software.opensuse.org/ymp/home:prusnak:scout/openSUSE_11.0/command-not-found.ymp
(Of course you don’t have to use one click install, you can just wget the RPMs, If you have any difficultly with zypper or the one click install not finding any of the above, just search the ftp directories – I assure you all needed packages are there.)
4) Add the following to /etc/bash.bashrc.local or ~/.bashrc:
if [ -f /etc/bash_command_not_found ]; then . /etc/bash_command_not_found fi
Tada! Now you can enjoy a more helpful Bash!
Additional:
The page for scout says that python-satsolver is required for command-not-found. This is only for Suse 11.1, 11.0 does not require it.
http://en.opensuse.org/Scout
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/systemsmanagement:/zlm/openSUSE_11.0/i586/python-satsolver-0.13.0-20.1.i586.rpm
Test scout with:
$scout bin -l
(See the video on scout at http://blip.tv/file/1078236 )
Testing command-not-found:
Run it directly and ensure it works with something like this (assuming you do not have mdadm already installed):
$/usr/bin/python /usr/bin/command-not-found mdadm suse110
Leave a Reply
You must be logged in to post a comment.
February 2nd, 2009 on 8:07 am
Hello webmaster I think your post
February 15th, 2009 on 10:54 am
http://www.timelordz.com – great domain name for blog like this)))
————————
sponsor: http://dewat.ru/
February 15th, 2009 on 11:55 am
Thanks man! I love Sci Fi and have be a Doctor Who fan since when I was a kid watching Tom Baker in the 1980s.
Thanks for stopping by!
Cheers,
Pete
February 15th, 2009 on 4:51 pm
Hello, I can’t understand how to add your blog ( http://www.timelordz.com ) in my rss reader
————————
my blog: http://josephouzo.lised.ru/
February 15th, 2009 on 6:48 pm
Hi there,
Sorry you are having trouble with the RSS feed. Can you let me know what reader you are using and I will try to correct it for you. I certainly want it to work for everyone. I have tested it with a few readers, and so far it seems to work okay – but just let me know what you are using and I will look into it. Thanks for visiting my blog!
Cheers,
Pete