I\'m working on a Ubuntu system and currently this is what I\'m doing:
if ! which command > /dev/null; then echo -e \"Command not found! Install? (y/n)
$name="rsync" [ `which $name` ] $$ echo "$name : installed" || sudo apt-get install -y $name