All pastes #740199 Raw Edit

distchecker

public shellscript v1 · immutable
·published 2007-10-17 19:29 UTC
rendered paste body
if [ ${#1} -eq 0 ]; then        release="stable"else        release=$1fitmp=`tempfile`echo -e "/\\*\\*\\*/{\nN\ns/$release/FOUND/\n}" > $tmpecho "Packages not from $release or not the current ones from $release:"for i in `dpkg --get-selections|grep -v deinstall|grep install | sed s/install//g | xargs printf "%s\n"`; do        apt-cache policy $i | sed -f $tmp -|grep -q FOUND -        if [ "$?" -eq 1 ]; then                echo $i        fidone