live-iso-kde/chroot_scripts/4-uninstall-rem-lists.sh
Ward from fusion-voyager-3 e1ac172065 comment checker
2024-08-01 17:32:06 +03:00

23 lines
388 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" $(cat /chroot_scripts/rem_list | tr "\n" " ") || true