live-iso-kde/chroot_scripts/4-uninstall-rem-lists.sh
Ward from fusion-voyager-3 e7873de2d6 Fix chroot_scripts_path
2024-08-01 16:56:33 +03:00

20 lines
351 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
echo $pkg >> /chroot_scripts/rem_list
done
done
apt-get purge --yes --option Dpkg::Options::="--force-confnew" $(cat /chroot_scripts/rem_list | tr "\n" " ") || true