Files
files-for-dockers/base-image-script/debian-buster_pt2.sh
2025-07-05 06:33:06 -07:00

21 lines
614 B
Bash

#!/bin/bash
# Copyright (c) 2025 fithwum
# All rights reserved
echo "[CHROOT] Configuring Debian system..."
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/10-assume_yes
apt-get update
apt-get upgrade
apt-get install --no-install-recommends software-properties-common bash wget curl nano locales
echo "[CHROOT] Removing unnecessary packages..."
apt-get remove --purge --allow-remove-essential pinentry-curses whiptail kmod iptables iproute2 dmidecode || true
echo "[CHROOT] Cleaning up..."
apt-get clean
apt-get install -f
find /var/lib/apt/lists/ -type f -delete
echo "[CHROOT] Done. Exiting."
exit