. $config
askyes "apt" "Remove and Install software via apt"

# remove stuff via apt:
rmpacks=`cat apt/remove-*|grep -v ^#`
chroot $newtree apt-get -y --force-yes  --ignore-hold --purge remove $rmpacks

# here we do more complicated stuff via apt:
for scr in apt/*.sh; do
    ./$scr
done

# add stuff via apt:
instpacks=`cat apt/install-*|grep -v ^#`
chroot $newtree apt-get -y --force-yes install $instpacks
