title: BASH command_not_found_handle () -- does not suggest solution
body: <p>I am trying to get the <code>command_not_found_handle</code> working in my Scientific Linux. I installed the <code>command-not-found</code> package </p>
  
  <pre><code>`sudo yum install PackageKit-command-not-found.x86_64` 
  </code></pre>
  
  <p>and now if I issue <code>type command_not_found_handle</code> I get:</p>
  
  <pre><code>[JmZ:/usr/lib]--&gt;type command_not_found_handle
  command_not_found_handle is a function
  command_not_found_handle ()
  {
      runcnf=1;
      retval=127;
      [ ! -S /var/run/dbus/system_bus_socket ] &amp;&amp; runcnf=0;
      [ ! -x /usr/sbin/packagekitd ] &amp;&amp; runcnf=0;
      if [ $runcnf -eq 1 ]; then
          /usr/libexec/pk-command-not-found $1;
          retval=$?;
      else
          echo "bash: $1: command not found";
      fi;
      return $retval
  }
  </code></pre>
  
  <p>which I did not see before installing the package.  If I now issue a command for some program (e.g., gcl) that is not installed, I just get the following:</p>
  
  <pre><code>[JmZ:/usr/lib]--&gt;gcl
  Command not found.
  </code></pre>
  
  <p>whereas if I do something similar in my Ubuntu, I get:</p>
  
  <pre><code>JmZ@ubuntu:~$ gcl
  The program 'gcl' is currently not installed.  You can install it by typing:
  sudo apt-get install gcl
  </code></pre>
  
  <p>I would like to get similar functionality in Scientific Linux.  How do I set this up?</p>
  
  <p>Thanks.</p>