excuse me gurus just a question can some body translate this to me line by line Code: Select all SVN="subversion" rpm -q $SVN >/dev/null 2>&1 # 'rpm' exits with a 0 if the package is in the system if [ "$?" -ne "0" ]; then yum -y install $SVN fi I tried in Mint with Code: Select all if [ "subversion" != "0" ]; then echo "No suitable SVN package installed. Grabbing one now . . ."; sleep 1 apt-get install -y subversion >/dev/null && echo "Got one." else echo -e "Dependencies met. Continuing on . . .\n"; sleep 1 fi
SVN="subversion" dpkg -L $SVN > /dev/null 2>&1 # 'dpkg' exits with a 0 if the package is in the system if [ "$?" -ne "0" ]; then apt-get install -y $SVN fi