ne> if (dpkg -l package-name | grep -c ii ) dpkg -i ./package.deb; Though I might again consider using 'apt-zip', a slight variation of the above should do what I need ... Thanks, Niels! -Kenneth