1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/bash #set -x sdir=`dirname $(readlink -f "${BASH_SOURCE[0]}")` rootdir=`dirname $sdir` packfile=$1 echo "Testing packages in ${packfile}" PACKAGES=$(sed -f "${sdir}/remove-comments.sed" < "${packfile}") for i in ${PACKAGES} ; do if ! apt-cache show ${i} > /dev/null 2>&1 ; then echo missing ${i} else echo exists ${i} fi done