Mine the Harvest

Command-not-found on Suse 11.0

by 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

5 comments for this entry:
  1. www.goldpreise.biz

    Hello webmaster I think your post

  2. Lixdeensemfvz

    http://www.timelordz.com – great domain name for blog like this)))
    ————————
    sponsor: http://dewat.ru/

  3. admin

    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

  4. occusnene

    Hello, I can’t understand how to add your blog ( http://www.timelordz.com ) in my rss reader
    ————————
    my blog: http://josephouzo.lised.ru/

  5. admin

    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

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...