Update chroot_scripts/4-uninstall-rem-lists.sh

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-08-29 19:29:48 +02:00
parent 58e5daa286
commit 5e667cc38c

View File

@ -12,11 +12,9 @@ do
do
if [[ $pkg != "#"* ]]
then
echo $pkg >> /chroot_scripts/rem_list
apt-get purge --yes --option Dpkg::Options::="--force-confnew" --option Dpkg::Options::="--force-overwrite" $pkg || true
fi
done
done
apt-get purge --yes --option Dpkg::Options::="--force-confnew" --option Dpkg::Options::="--force-overwrite" $(cat /chroot_scripts/rem_list | tr "\n" " ") || true
apt-get autoremove --yes --option Dpkg::Options::="--force-confnew" --option Dpkg::Options::="--force-overwrite"