{"id":238,"date":"2009-01-05T13:05:22","date_gmt":"2009-01-05T17:05:22","guid":{"rendered":"http:\/\/www.timelordz.com\/blog\/?p=238"},"modified":"2009-01-16T14:43:21","modified_gmt":"2009-01-16T18:43:21","slug":"command-not-found-on-suse-110","status":"publish","type":"post","link":"https:\/\/www.timelordz.com\/blog\/2009\/01\/command-not-found-on-suse-110\/","title":{"rendered":"Command-not-found on Suse 11.0"},"content":{"rendered":"<p><strong>Installing Command-not-found<\/strong><\/p>\n<p><em>( <span style=\"color: #3366ff;\">NOTE:<\/span> 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 <a href=\"http:\/\/forums.opensuse.org\/programming-scripting\/403961-suse-11-0-command-not-found.html\" target=\"_blank\">here<\/a>. 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.)<\/em><\/p>\n<p>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.<\/p>\n<p>Goggling I found the site of the developer, Pavol Rusnak, who created command-not-found:<\/p>\n<p>http:\/\/stick.gk2.sk\/blog\/?p=4<\/p>\n<p>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:<\/p>\n<p><!--more--><\/p>\n<p>Steps to install command-not-found on Suse 11.0<\/p>\n<p>1) One click install of scout &amp; add the repo:<\/p>\n<p>http:\/\/software.opensuse.org\/ymp\/home:prusnak:scout\/openSUSE_11.0\/scout.ymp<\/p>\n<p>2) Now manually install scout-bin-suse110<\/p>\n<p><em>wget ftp:\/\/ftp5.gwdg.de\/pub\/opensuse\/repositories\/home:\/prusnak:\/scout\/data\/noarch\/scout-bin-suse110-2008.10.07-15.1.noarch.rpm<br \/>\n<\/em><\/p>\n<p>3) NOW you can install command-not-found<\/p>\n<p>http:\/\/software.opensuse.org\/ymp\/home:prusnak:scout\/openSUSE_11.0\/command-not-found.ymp<\/p>\n<p>(Of course you don&#8217;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 &#8211; I assure you all needed packages are there.)<\/p>\n<p>4) Add the following to \/etc\/bash.bashrc.local or ~\/.bashrc:<\/p>\n<pre>if [ -f \/etc\/bash_command_not_found ]; then\r\n  . \/etc\/bash_command_not_found\r\nfi<\/pre>\n<p>Tada! Now you can enjoy a more helpful Bash!<\/p>\n<p><strong>Additional:<\/strong><\/p>\n<p>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.<\/p>\n<p>http:\/\/en.opensuse.org\/Scout<\/p>\n<p>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<\/p>\n<p><strong>Test scout with:<\/strong><br \/>\n$scout bin -l<br \/>\n(See the video on scout at http:\/\/blip.tv\/file\/1078236 )<\/p>\n<p><strong>Testing command-not-found:<\/strong><br \/>\nRun it directly and ensure it works with something like this (assuming you do not have mdadm already installed):<\/p>\n<p>$\/usr\/bin\/python \/usr\/bin\/command-not-found mdadm suse110<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":3,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":247,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions\/247"}],"wp:attachment":[{"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.timelordz.com\/blog\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}