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

20 lines
351 B
Bash
Raw Normal View History

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