live-iso-gnome/chroot_scripts/4-uninstall-rem-lists.sh

20 lines
367 B
Bash
Raw Normal View History

2024-08-01 14:23:17 +02:00
#! /bin/bash
set -e
export DEBIAN_FRONTEND="noninteractive"
touch /etc/chroot_scripts/rem_list
for rem_list in /etc/chroot_scripts/rem-lists/*.list
do
for pkg in $(cat $rem_list)
do
echo $pkg >> /etc/chroot_scripts/rem_list
done
done
2024-08-01 15:06:05 +02:00
apt-get purge --yes --option Dpkg::Options::="--force-confnew" $(cat /etc/chroot_scripts/rem_list | tr "\n" " ") || true
2024-08-01 14:23:17 +02:00