Just saw this on the Raspberry Pi Forums from ‘sprinkmeier’ but haven’t tried it yet.
If, like me, you need to run a command, but it’s not installed, and you haven’t a clue how to find the right apt-get package, this is for you!
There is a ‘command finder’ package that you can install that will interpret any command that you type in (and is missing) and tell you what package should be installed to enable it.
sudo apt-get install command-not-found
sudo update-command-not-found
Then logout and login again and try it:
pi@raspberrypi ~ $ uuencode The program 'uuencode' is currently not installed. To run 'uuencode' please ask your administrator to install the package 'sharutils'
If you are root, it will tell you how to do that:
root@raspberrypi ~ # uuencode The program 'uuencode' is currently not installed. You can install it by typing: apt-get install sharutils
There’s also a ‘guesser’ which will try and work out what package you mean if you don’t know the whole thing:
pi@raspberrypi ~ $ dhcp No command 'dhcp' found, did you mean: Command 'dicp' from package 'dish' (main) Command 'hcp' from package 'lam4-dev' (main) Command 'chcp' from package 'nilfs-tools' (main) Command 'dhcpd' from package 'isc-dhcp-server' (main) Command 'dccp' from package 'dcap' (main)
[…] recantha Just saw this on the Raspberry Pi Forums from ‘sprinkmeier’ but haven’t tried it yet. If, […]