live-iso-gnome/chroot_scripts/4-uninstall-rem-lists.sh
Ward from fusion-voyager-3 1cae8252ee
2024-08-11 04:05:05 +03:00

23 lines
433 B
Bash
Executable File

#! /bin/bash
set -e
export DEBIAN_FRONTEND="noninteractive"
touch /chroot_scripts/rem_list
for rem_list in /chroot_scripts/rem-lists/*.list
do
for pkg in $(cat $rem_list)
do
if [[ $pkg != "#"* ]]
then
echo $pkg >> /chroot_scripts/rem_list
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