Why is my Backup so HUGE?

Disclaimer: I am very new to Linux, and seem to know just enough to get myself in to big trouble :wink:.

I’ve just finished a fresh install of DietPi (v9.5.1) on my Native PC (x86_64) music playback computer (because I destroyed the previous installation through uninformed use of the DietPi Backup facility). This build involves compiling an older kernel (linux-5.19.17) with specific options to get superior sound quality from MPD, when playing 2-channel music.

Today I wanted to save my good, working OS environment to a backup, located on secondary local drive. Using DietPi-Backup, it finished successfully - though it took a looooong time to complete. The resulting backup is HUGE… at 21GB !!

Backups of the previously working system (that I clobbered) were about 5.5GB. This leads me to conclude there is much excess data in my current backup that is unnecessary -BUT- how can I identify what is safe to remove, before making a slimmed down replacement backup - sufficient to restore my system to its present full-functioning state.

One possibility: all the tools required for compiling the kernel are still resident on the system. This is an approx. list:

cpp cpp-10 dpkg-dev g++ g++-10 gcc gcc-10 libasan6 libatomic1 libcc1-0 libdpkg-perl libgcc-10-dev libgdbm6 libisl23 libitm1 liblsan0 libmpc3  libmpfr6 libperl5.32 libquadmath0 libstdc++-10-dev libtsan0 libubsan1 make patch perl perl-modules-5.32 libctf-nobfd0 binutils binutilscommon 
binutils-x86-64-linux-gnu initramfs-tools-core klibc-utils libasan6 libbinutils libcc1-0 libctf-nobfd0 libctf0 libdpkg-perl libgdbm-compat4  libgdbm6 libisl23 libitm1 libmpc3 libmpfr6 libperl5.32 libsigsegv2 m4 xz-utils zlib1g-dev

Please help me identify the extra stuff not required to run the MPD/network functions. Thanks in advance for wisdom & perspective :pray:

The steps would be to first evaluate your system where your data sizes are on your directory structure, then decide whether all data needs to be in your backup.
After this, you could search for unneded files and remove them.
You might also have less data in your backup by editing the backup configuration file.

For reference, you could first read through this docu/blog:

The next thing is to check whether you have some network mounts which you did not exclude via the dietpi-backup filter settings.
Therefore it would be helpful if you post the contents of /etc/fstab in this issue.

As a step to find your directory sizes you could start with ‘du -h - d 1 /’ to see the sizes of your directory structure beginning with /.
Remark: If you have network mounts, this might take a while.

Please post this result here resp. investigate further directory sizes below /.

Simply start with a

df -h

as a first step

1 Like

Gentlemen - thank you so much for your replies. As suggested…
/etc/fstab:

# You can use "dietpi-drive_manager" to setup mounts.
# NB: It overwrites and re-creates physical drive mount entries on use.
#----------------------------------------------------------------
# NETWORK
#----------------------------------------------------------------
//FREENAS/Media_2/Music/2-CH/LossLess /mnt/Musik cifs cred=/var/lib/dietpi/dietpi-drive_manager/mnt-Musik.cred,iocharset=utf8,uid=dietpi,gid=dietpi,file_mode=0770,dir_mode=0770,vers=3.1.1,nofail,noauto,x-systemd.automount

#----------------------------------------------------------------
# TMPFS
#----------------------------------------------------------------
tmpfs /tmp tmpfs size=7940M,noatime,lazytime,nodev,nosuid,mode=1777
tmpfs /var/log tmpfs size=50M,noatime,lazytime,nodev,nosuid

#----------------------------------------------------------------
# MISC: ecryptfs, vboxsf, glusterfs, mergerfs, bind, Btrfs subvolume
#----------------------------------------------------------------

#----------------------------------------------------------------
# SWAP SPACE
#----------------------------------------------------------------

#----------------------------------------------------------------
# PHYSICAL DRIVES
#----------------------------------------------------------------
UUID=83728969-54d5-4eb3-8d9c-064d4bcabe0d / ext4 noatime,lazytime,rw 0 1
UUID=495B-E84A /boot/efi vfat noatime,lazytime,rw 0 2
UUID=e440358f-1079-4a57-84a3-5b7144a815d4 /mnt/blitz-bkup ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount

sda1, sda2 is OS drive, sdb1 is dedicated to backups

root@DietPi:~# df -h
Filesystem                             Size  Used Avail Use% Mounted on
udev                                   7.7G     0  7.7G   0% /dev
tmpfs                                  1.6G   12M  1.6G   1% /run
/dev/sda2                              118G   22G   90G  20% /
tmpfs                                  7.8G     0  7.8G   0% /dev/shm
tmpfs                                  5.0M  8.0K  5.0M   1% /run/lock
tmpfs                                  7.8G     0  7.8G   0% /tmp
tmpfs                                   50M  8.0K   50M   1% /var/log
/dev/sda1                               63M   12M   52M  19% /boot/efi
//FREENAS/Media_2/Music/2-CH/LossLess   25T  9.5T   16T  39% /mnt/Musik
/dev/sdb1                               30G   22G  5.8G  80% /mnt/blitz-bkup
root@DietPi:~#

directory sizes:

root@DietPi:~# du -h -d 1 / --exclude /mnt/Musik --exclude /mnt/blitz-bkup
0       /sys
2.7M    /mnt
5.7G    /usr
4.0K    /opt
du: cannot access '/proc/16621/task/16621/fd/4': No such file or directory
du: cannot access '/proc/16621/task/16621/fdinfo/4': No such file or directory
du: cannot access '/proc/16621/fd/3': No such file or directory
du: cannot access '/proc/16621/fdinfo/3': No such file or directory
0       /proc
4.0K    /media
35M     /var
20K     /home
3.1M    /etc
0       /dev
10M     /run
342M    /boot
16K     /lost+found
0       /tmp
16G     /root
4.0K    /srv
22G     /
root@DietPi:~#

So it looks like somehow I’ve loaded up my DietPi system to be 22GB :thinking: When compiling my 5.19.17 kernel, it was done by creating a working directory /root/linux-5.19.17 - which indeed looks like it’s the heavyweight in the system:

image

I presume all the required tools to compile have been installed in this folder. Can I simply delete it and no harm will be done to the OS, or must the tools be removed using apt-get remove to cleanly scrub them from the system ?

You can just use apt remove, not apt-get remove.
With ‘apt list --installed’ you can list all installed packages to get an overview.

But removing the wrong packages can lead to a non working system. So a backup before is a good choice.

Following should show largest files/folder

du -aBM / --exclude /mnt/Musik --exclude /mnt/blitz-bkup | sort -n -r | head -n 20

Alright, largest folder:

root@DietPi:~# du -aBM / --exclude /mnt/Musik --exclude /mnt/blitz-bkup | sort -n -r | head -n 20
du: cannot access '/proc/27220/task/27220/fd/4': No such file or directory
du: cannot access '/proc/27220/task/27220/fdinfo/4': No such file or directory
du: cannot access '/proc/27220/fd/3': No such file or directory
du: cannot access '/proc/27220/fdinfo/3': No such file or directory
22409M  /
16185M  /root
15987M  /root/linux-5.19.17
10362M  /root/linux-5.19.17/drivers
5828M   /usr
5317M   /usr/lib
4514M   /usr/lib/modules
4120M   /usr/lib/modules/5.19.17-100HZv2
4115M   /usr/lib/modules/5.19.17-100HZv2/kernel
3173M   /usr/lib/modules/5.19.17-100HZv2/kernel/drivers
2946M   /root/linux-5.19.17/drivers/net
2702M   /root/linux-5.19.17/drivers/gpu
2700M   /root/linux-5.19.17/drivers/gpu/drm
1442M   /root/linux-5.19.17/net
1404M   /root/linux-5.19.17/drivers/net/ethernet
1274M   /root/linux-5.19.17/drivers/gpu/drm/amd
1213M   /root/linux-5.19.17/fs
1193M   /root/linux-5.19.17/drivers/net/wireless
946M    /usr/lib/modules/5.19.17-100HZv2/kernel/drivers/net
935M    /root/linux-5.19.17/drivers/media
root@DietPi:~#

…and (yikes) all installed packages:

root@DietPi:~# apt list --installed
Listing... Done
adduser/stable,now 3.134 all [installed,automatic]
alsa-utils/stable,now 1.2.8-1 amd64 [installed]
amd64-microcode/stable,now 3.20230808.1.1~deb12u1 amd64 [installed]
apt-utils/stable,now 2.6.1 amd64 [installed]
apt/stable,now 2.6.1 amd64 [installed]
avahi-daemon/stable,now 0.8-10 amd64 [installed]
base-files/stable,now 12.4+deb12u6 amd64 [installed,automatic]
base-passwd/stable,now 3.6.1 amd64 [installed,automatic]
bash-completion/stable,now 1:2.11-6 all [installed]
bash/stable,now 5.2.15-2+b7 amd64 [installed,automatic]
bc/stable,now 1.07.1-3+b1 amd64 [installed]
binutils-common/stable,now 2.40-2 amd64 [installed,automatic]
binutils-x86-64-linux-gnu/stable,now 2.40-2 amd64 [installed,automatic]
binutils/stable,now 2.40-2 amd64 [installed,automatic]
bison/stable,now 2:3.8.2+dfsg-1+b1 amd64 [installed]
bsdutils/stable,stable-security,now 1:2.38.1-5+deb12u1 amd64 [installed,automatic]
build-essential/stable,now 12.9 amd64 [installed]
bzip2/stable,now 1.0.8-5+b1 amd64 [installed]
ca-certificates/stable,now 20230311 all [installed]
cifs-utils/stable,now 2:7.0-2 amd64 [installed]
console-setup-linux/stable,now 1.221 all [installed,automatic]
console-setup/stable,now 1.221 all [installed]
coreutils/stable,now 9.1-1 amd64 [installed,automatic]
cpio/stable,now 2.13+dfsg-7.1 amd64 [installed]
cpp-12/stable,now 12.2.0-14 amd64 [installed,automatic]
cpp/stable,now 4:12.2.0-3 amd64 [installed,automatic]
cpufrequtils/stable,now 008-2 amd64 [installed]
cron-daemon-common/stable,now 3.0pl1-162 all [installed,automatic]
cron/stable,now 3.0pl1-162 amd64 [installed]
curl/stable,now 7.88.1-10+deb12u6 amd64 [installed]
dash/stable,now 0.5.12-2 amd64 [installed,automatic]
dbus-bin/stable,now 1.14.10-1~deb12u1 amd64 [installed,automatic]
dbus-daemon/stable,now 1.14.10-1~deb12u1 amd64 [installed,automatic]
dbus-session-bus-common/stable,now 1.14.10-1~deb12u1 all [installed,automatic]
dbus-system-bus-common/stable,now 1.14.10-1~deb12u1 all [installed,automatic]
dbus/stable,now 1.14.10-1~deb12u1 amd64 [installed,automatic]
debconf/stable,now 1.5.82 all [installed,automatic]
debian-archive-keyring/stable,now 2023.3+deb12u1 all [installed,automatic]
debianutils/stable,now 5.7-0.5~deb12u1 amd64 [installed,automatic]
diffutils/stable,now 1:3.8-4 amd64 [installed,automatic]
dmidecode/stable,now 3.4-1 amd64 [installed,automatic]
dmsetup/stable,now 2:1.02.185-2 amd64 [installed,automatic]
dosfstools/stable,now 4.2-1 amd64 [installed]
dpkg-dev/stable,now 1.21.22 all [installed,automatic]
dpkg/stable,now 1.21.22 amd64 [installed,automatic]
dropbear-bin/stable,now 2022.83-1+deb12u1 amd64 [installed,automatic]
dropbear/stable,now 2022.83-1+deb12u1 all [installed]
e2fsprogs/stable,now 1.47.0-2 amd64 [installed]
ethtool/stable,now 1:6.1-1 amd64 [installed]
fake-hwclock/stable,now 0.12+nmu1 all [installed]
fdisk/stable,stable-security,now 2.38.1-5+deb12u1 amd64 [installed]
findutils/stable,now 4.9.0-4 amd64 [installed,automatic]
firmware-atheros/stable,now 20230210-5 all [installed]
firmware-brcm80211/stable,now 20230210-5 all [installed]
firmware-iwlwifi/stable,now 20230210-5 all [installed]
firmware-linux-free/stable,now 20200122-1 all [installed]
firmware-misc-nonfree/stable,now 20230210-5 all [installed]
firmware-realtek/stable,now 20230210-5 all [installed]
flex/stable,now 2.6.4-8.2 amd64 [installed]
fontconfig-config/stable,now 2.14.1-4 amd64 [installed,automatic]
fontconfig/stable,now 2.14.1-4 amd64 [installed,automatic]
fonts-dejavu-core/stable,now 2.37-6 all [installed,automatic]
g++-12/stable,now 12.2.0-14 amd64 [installed,automatic]
g++/stable,now 4:12.2.0-3 amd64 [installed,automatic]
gcc-12-base/stable,now 12.2.0-14 amd64 [installed,automatic]
gcc-12/stable,now 12.2.0-14 amd64 [installed,automatic]
gcc/stable,now 4:12.2.0-3 amd64 [installed,automatic]
gdisk/stable,now 1.0.9-2.1 amd64 [installed]
gettext-base/stable,now 0.21-12 amd64 [installed,automatic]
gpg/stable,now 2.2.40-1.1 amd64 [installed]
gpgconf/stable,now 2.2.40-1.1 amd64 [installed,automatic]
gpgv/stable,now 2.2.40-1.1 amd64 [installed,automatic]
grep/stable,now 3.8-5 amd64 [installed,automatic]
grub-common/stable,stable-security,now 2.06-13+deb12u1 amd64 [installed,automatic]
grub-efi-amd64-bin/stable,stable-security,now 2.06-13+deb12u1 amd64 [installed,automatic]
grub-efi-amd64-signed/stable,stable-security,now 1+2.06+13+deb12u1 amd64 [installed]
grub-efi-amd64/stable,stable-security,now 2.06-13+deb12u1 amd64 [installed]
grub2-common/stable,stable-security,now 2.06-13+deb12u1 amd64 [installed,automatic]
gzip/stable,now 1.12-1 amd64 [installed,automatic]
hdparm/stable,now 9.65+ds-1 amd64 [installed]
hostname/stable,now 3.23+nmu1 amd64 [installed,automatic]
htop/stable,now 3.2.2-2 amd64 [installed]
ifupdown/stable,now 0.8.41 amd64 [installed]
init-system-helpers/stable,now 1.65.2 all [installed,automatic]
initramfs-tools-core/stable,now 0.142 all [installed,automatic]
initramfs-tools/stable,now 0.142 all [installed]
iproute2/stable,now 6.1.0-3 amd64 [installed,automatic]
iputils-ping/stable,now 3:20221126-1 amd64 [installed]
isc-dhcp-client/stable,now 4.4.3-P1-2 amd64 [installed]
iw/stable,now 5.19-1 amd64 [installed]
kbd/stable,now 2.5.1-1+b1 amd64 [installed,automatic]
keyboard-configuration/stable,now 1.221 all [installed,automatic]
klibc-utils/stable,now 2.0.12-1 amd64 [installed,automatic]
kmod/stable,now 30+20221128-1 amd64 [installed]
libacl1/stable,now 2.3.1-3 amd64 [installed,automatic]
libadplug-2.3.3-0/stable,now 2.3.3+dfsg-2 amd64 [installed,automatic]
libao-common/stable,now 1.2.2+20180113-1.1 all [installed,automatic]
libao4/stable,now 1.2.2+20180113-1.1 amd64 [installed,automatic]
libaom3/stable,now 3.6.0-1 amd64 [installed,automatic]
libapparmor1/stable,now 3.0.8-3 amd64 [installed,automatic]
libapt-pkg6.0/stable,now 2.6.1 amd64 [installed,automatic]
libarchive13/stable,stable-security,now 3.6.2-1+deb12u1 amd64 [installed,automatic]
libargon2-1/stable,now 0~20171227-0.3+deb12u1 amd64 [installed,automatic]
libasan8/stable,now 12.2.0-14 amd64 [installed,automatic]
libasound2-data/stable,now 1.2.8-1 all [installed,automatic]
libasound2/stable,now 1.2.8-1+b1 amd64 [installed,automatic]
libassuan0/stable,now 2.5.5-5 amd64 [installed,automatic]
libasyncns0/stable,now 0.8-6+b3 amd64 [installed,automatic]
libatomic1/stable,now 12.2.0-14 amd64 [installed,automatic]
libatopology2/stable,now 1.2.8-1+b1 amd64 [installed,automatic]
libattr1/stable,now 1:2.5.1-4 amd64 [installed,automatic]
libaudit-common/stable,now 1:3.0.9-1 all [installed,automatic]
libaudit1/stable,now 1:3.0.9-1 amd64 [installed,automatic]
libavahi-client3/stable,now 0.8-10 amd64 [installed,automatic]
libavahi-common-data/stable,now 0.8-10 amd64 [installed,automatic]
libavahi-common3/stable,now 0.8-10 amd64 [installed,automatic]
libavahi-core7/stable,now 0.8-10 amd64 [installed,automatic]
libavcodec59/stable,stable-security,now 7:5.1.5-0+deb12u1 amd64 [installed,automatic]
libavformat59/stable,stable-security,now 7:5.1.5-0+deb12u1 amd64 [installed,automatic]
libavutil57/stable,stable-security,now 7:5.1.5-0+deb12u1 amd64 [installed,automatic]
libbinio1v5/stable,now 1.5+dfsg-0.1 amd64 [installed,automatic]
libbinutils/stable,now 2.40-2 amd64 [installed,automatic]
libblkid1/stable,stable-security,now 2.38.1-5+deb12u1 amd64 [installed,automatic]
libbluray2/stable,now 1:1.3.4-1 amd64 [installed,automatic]
libbpf1/stable,now 1:1.1.0-1 amd64 [installed,automatic]
libbrotli1/stable,now 1.0.9-2+b6 amd64 [installed,automatic]
libbsd0/stable,now 0.11.7-2 amd64 [installed,automatic]
libbz2-1.0/stable,now 1.0.8-5+b1 amd64 [installed,automatic]
libc-bin/stable,stable-security,now 2.36-9+deb12u7 amd64 [installed,automatic]
libc-dev-bin/stable,stable-security,now 2.36-9+deb12u7 amd64 [installed,automatic]
libc-l10n/stable,stable-security,now 2.36-9+deb12u7 all [installed,automatic]
libc6-dev/stable,stable-security,now 2.36-9+deb12u7 amd64 [installed,automatic]
libc6/stable,stable-security,now 2.36-9+deb12u7 amd64 [installed,automatic]
libcairo-gobject2/stable,now 1.16.0-7 amd64 [installed,automatic]
libcairo2/stable,now 1.16.0-7 amd64 [installed,automatic]
libcap-ng0/stable,now 0.8.3-1+b3 amd64 [installed,automatic]
libcap2-bin/stable,now 1:2.66-4 amd64 [installed,automatic]
libcap2/stable,now 1:2.66-4 amd64 [installed,automatic]
libcbor0.8/stable,now 0.8.0-2+b1 amd64 [installed,automatic]
libcc1-0/stable,now 12.2.0-14 amd64 [installed,automatic]
libcdio-cdda2/stable,now 10.2+2.0.1-1 amd64 [installed,automatic]
libcdio-paranoia2/stable,now 10.2+2.0.1-1 amd64 [installed,automatic]
libcdio19/stable,now 2.1.0-4 amd64 [installed,automatic]
libchromaprint1/stable,now 1.5.1-2+b1 amd64 [installed,automatic]
libcjson1/stable,now 1.7.15-1+deb12u1 amd64 [installed,automatic]
libcodec2-1.0/stable,now 1.0.5-1 amd64 [installed,automatic]
libcom-err2/stable,now 1.47.0-2 amd64 [installed,automatic]
libcpufreq0/stable,now 008-2 amd64 [installed,automatic]
libcrypt-dev/stable,now 1:4.4.33-2 amd64 [installed,automatic]
libcrypt1/stable,now 1:4.4.33-2 amd64 [installed,automatic]
libcryptsetup12/stable,now 2:2.6.1-4~deb12u2 amd64 [installed,automatic]
libctf-nobfd0/stable,now 2.40-2 amd64 [installed,automatic]
libctf0/stable,now 2.40-2 amd64 [installed,automatic]
libcurl3-gnutls/stable,now 7.88.1-10+deb12u6 amd64 [installed,automatic]
libcurl4/stable,now 7.88.1-10+deb12u6 amd64 [installed,automatic]
libdaemon0/stable,now 0.14-7.1 amd64 [installed,automatic]
libdatrie1/stable,now 0.2.13-2+b1 amd64 [installed,automatic]
libdav1d6/stable,stable-security,now 1.0.0-2+deb12u1 amd64 [installed,automatic]
libdb5.3/stable,now 5.3.28+dfsg2-1 amd64 [installed,automatic]
libdbus-1-3/stable,now 1.14.10-1~deb12u1 amd64 [installed,automatic]
libdebconfclient0/stable,now 0.270 amd64 [installed,automatic]
libdecor-0-0/stable,now 0.1.1-2 amd64 [installed,automatic]
libdeflate0/stable,now 1.14-1 amd64 [installed,automatic]
libdevmapper1.02.1/stable,now 2:1.02.185-2 amd64 [installed,automatic]
libdpkg-perl/stable,now 1.21.22 all [installed,automatic]
libdrm-common/stable,now 2.4.114-1 all [installed,automatic]
libdrm2/stable,now 2.4.114-1+b1 amd64 [installed,automatic]
libdw1/stable,now 0.188-2.1 amd64 [installed]
libedit2/stable,now 3.1-20221030-2 amd64 [installed,automatic]
libefiboot1/stable,now 37-6 amd64 [installed,automatic]
libefivar1/stable,now 37-6 amd64 [installed,automatic]
libelf-dev/stable,now 0.188-2.1 amd64 [installed]
libelf1/stable,now 0.188-2.1 amd64 [installed,automatic]
libexpat1/stable,now 2.5.0-1 amd64 [installed,automatic]
libext2fs2/stable,now 1.47.0-2 amd64 [installed,automatic]
libfaad2/stable,now 2.10.1-1 amd64 [installed,automatic]
libfdisk1/stable,stable-security,now 2.38.1-5+deb12u1 amd64 [installed,automatic]
libffi8/stable,now 3.4.4-1 amd64 [installed,automatic]
libfftw3-single3/stable,now 3.3.10-1 amd64 [installed,automatic]
libfido2-1/stable,now 1.12.0-2+b1 amd64 [installed,automatic]
libflac12/stable,now 1.4.2+ds-2 amd64 [installed,automatic]
libfluidsynth3/stable,now 2.3.1-2 amd64 [installed,automatic]
libfmt9/stable,now 9.1.0+ds1-2 amd64 [installed,automatic]
libfontconfig1/stable,now 2.14.1-4 amd64 [installed,automatic]
libfreetype6/stable,now 2.12.1+dfsg-5+deb12u3 amd64 [installed,automatic]
libfribidi0/stable,now 1.0.8-2.1 amd64 [installed,automatic]
libfuse2/stable,now 2.9.9-6+b1 amd64 [installed,automatic]
libgbm1/stable,now 22.3.6-1+deb12u1 amd64 [installed,automatic]
libgcc-12-dev/stable,now 12.2.0-14 amd64 [installed,automatic]
libgcc-s1/stable,now 12.2.0-14 amd64 [installed,automatic]
libgcrypt20/stable,now 1.10.1-3 amd64 [installed,automatic]
libgdbm-compat4/stable,now 1.23-3 amd64 [installed,automatic]
libgdbm6/stable,now 1.23-3 amd64 [installed,automatic]
libgdk-pixbuf-2.0-0/stable,now 2.42.10+dfsg-1+deb12u1 amd64 [installed,automatic]
libgdk-pixbuf2.0-common/stable,now 2.42.10+dfsg-1+deb12u1 all [installed,automatic]
libglib2.0-0/stable,now 2.74.6-2+deb12u3 amd64 [installed,automatic]
libgme0/stable,now 0.6.3-6 amd64 [installed,automatic]
libgmp10/stable,now 2:6.2.1+dfsg1-1.1 amd64 [installed,automatic]
libgnutls30/stable,now 3.7.9-2+deb12u3 amd64 [installed,automatic]
libgomp1/stable,now 12.2.0-14 amd64 [installed,automatic]
libgpg-error0/stable,now 1.46-1 amd64 [installed,automatic]
libgprofng0/stable,now 2.40-2 amd64 [installed,automatic]
libgraphite2-3/stable,now 1.3.14-1 amd64 [installed,automatic]
libgsm1/stable,now 1.0.22-1 amd64 [installed,automatic]
libgssapi-krb5-2/stable,now 1.20.1-2+deb12u1 amd64 [installed,upgradable to: 1.20.1-2+deb12u2]
libharfbuzz0b/stable,now 6.0.0+dfsg-3 amd64 [installed,automatic]
libhogweed6/stable,now 3.8.1-2 amd64 [installed,automatic]
libhwy1/stable,now 1.0.3-3+deb12u1 amd64 [installed,automatic]
libicu72/stable,now 72.1-3 amd64 [installed,automatic]
libid3tag0/stable,now 0.15.1b-14 amd64 [installed,automatic]
libidn2-0/stable,now 2.3.3-1+b1 amd64 [installed,automatic]
libinstpatch-1.0-2/stable,now 1.1.6-1 amd64 [installed,automatic]
libip4tc2/stable,now 1.8.9-2 amd64 [installed,automatic]
libisl23/stable,now 0.25-1.1 amd64 [installed,automatic]
libiso9660-11/stable,now 2.1.0-4 amd64 [installed,automatic]
libitm1/stable,now 12.2.0-14 amd64 [installed,automatic]
libiw30/stable,now 30~pre9-14 amd64 [installed,automatic]
libixml10/stable,now 1:1.8.4-2 amd64 [installed,automatic]
libjack-jackd2-0/stable,now 1.9.21~dfsg-3 amd64 [installed,automatic]
libjansson4/stable,now 2.14-2 amd64 [installed,automatic]
libjbig0/stable,now 2.1-6.1 amd64 [installed,automatic]
libjpeg62-turbo/stable,now 1:2.1.5-2 amd64 [installed,automatic]
libjs-jquery/stable,now 3.6.1+dfsg+~3.5.14-1 all [installed,automatic]
libjs-sphinxdoc/stable,now 5.3.0-4 all [installed,automatic]
libjs-underscore/stable,now 1.13.4~dfsg+~1.11.4-3 all [installed,automatic]
libjson-c5/stable,now 0.16-2 amd64 [installed,automatic]
libjxl0.7/stable,now 0.7.0-10 amd64 [installed,automatic]
libk5crypto3/stable,now 1.20.1-2+deb12u1 amd64 [installed,upgradable to: 1.20.1-2+deb12u2]
libkeyutils1/stable,now 1.6.3-2 amd64 [installed,automatic]
libklibc/stable,now 2.0.12-1 amd64 [installed]
libkmod2/stable,now 30+20221128-1 amd64 [installed,automatic]
libkrb5-3/stable,now 1.20.1-2+deb12u1 amd64 [installed,upgradable to: 1.20.1-2+deb12u2]
libkrb5support0/stable,now 1.20.1-2+deb12u1 amd64 [installed,upgradable to: 1.20.1-2+deb12u2]
liblcms2-2/stable,now 2.14-2 amd64 [installed,automatic]
libldap-2.5-0/stable,now 2.5.13+dfsg-5 amd64 [installed,automatic]
libldb2/stable,stable-security,now 2:2.6.2+samba4.17.12+dfsg-0+deb12u1 amd64 [installed,automatic]
liblerc4/stable,now 4.0.0+ds-2 amd64 [installed,automatic]
liblmdb0/stable,now 0.9.24-1 amd64 [installed,automatic]
liblocale-gettext-perl/stable,now 1.07-5 amd64 [installed,automatic]
liblsan0/stable,now 12.2.0-14 amd64 [installed,automatic]
liblz4-1/stable,now 1.9.4-1 amd64 [installed,automatic]
liblzma5/stable,now 5.4.1-0.2 amd64 [installed,automatic]
libmad0/stable,now 0.15.1b-10.1+b1 amd64 [installed,automatic]
libmbedcrypto7/stable,now 2.28.3-1 amd64 [installed,automatic]
libmd0/stable,now 1.0.4-2 amd64 [installed,automatic]
libmfx1/stable,now 22.5.4-1 amd64 [installed,automatic]
libmikmod3/stable,now 3.3.11.1-7 amd64 [installed,automatic]
libmms0/stable,now 0.6.4-3 amd64 [installed,automatic]
libmnl0/stable,now 1.0.4-3 amd64 [installed,automatic]
libmodplug1/stable,now 1:0.8.9.0-3 amd64 [installed,automatic]
libmount1/stable,stable-security,now 2.38.1-5+deb12u1 amd64 [installed,automatic]
libmp3lame0/stable,now 3.100-6 amd64 [installed,automatic]
libmpc3/stable,now 1.3.1-1 amd64 [installed,automatic]
libmpcdec6/stable,now 2:0.1~r495-2 amd64 [installed,automatic]
libmpdclient2/stable,now 2.20-1+b1 amd64 [installed,automatic]
libmpfr6/stable,now 4.2.0-1 amd64 [installed,automatic]
libmpg123-0/stable,now 1.31.2-1 amd64 [installed,automatic]
libncurses-dev/stable,now 6.4-4 amd64 [installed,automatic]
libncurses5-dev/stable,now 6.4-4 amd64 [installed]
libncurses6/stable,now 6.4-4 amd64 [installed,automatic]
libncursesw6/stable,now 6.4-4 amd64 [installed,automatic]
libnettle8/stable,now 3.8.1-2 amd64 [installed,automatic]
libnewt0.52/stable,now 0.52.23-1+b1 amd64 [installed,automatic]
libnfs13/stable,now 4.0.0-1 amd64 [installed,automatic]
libnghttp2-14/stable,stable-security,now 1.52.0-1+deb12u1 amd64 [installed,automatic]
libnl-3-200/stable,now 3.7.0-0.2+b1 amd64 [installed,automatic]
libnl-genl-3-200/stable,now 3.7.0-0.2+b1 amd64 [installed,automatic]
libnl-route-3-200/stable,now 3.7.0-0.2+b1 amd64 [installed,automatic]
libnorm1/stable,now 1.5.9+dfsg-2 amd64 [installed,automatic]
libnsl-dev/stable,now 1.3.0-2 amd64 [installed,automatic]
libnsl2/stable,now 1.3.0-2 amd64 [installed,automatic]
libnuma1/stable,now 2.0.16-1 amd64 [installed,automatic]
libogg0/stable,now 1.3.5-3 amd64 [installed,automatic]
libopenal-data/stable,now 1:1.19.1-2 all [installed,automatic]
libopenal1/stable,now 1:1.19.1-2 amd64 [installed,automatic]
libopenjp2-7/stable,now 2.5.0-2 amd64 [installed,automatic]
libopenmpt0/stable,now 0.6.9-1 amd64 [installed,automatic]
libopus0/stable,now 1.3.1-3 amd64 [installed,automatic]
libp11-kit0/stable,now 0.24.1-2 amd64 [installed,automatic]
libpam-modules-bin/stable,now 1.5.2-6+deb12u1 amd64 [installed,automatic]
libpam-modules/stable,now 1.5.2-6+deb12u1 amd64 [installed,automatic]
libpam-runtime/stable,now 1.5.2-6+deb12u1 all [installed,automatic]
libpam0g/stable,now 1.5.2-6+deb12u1 amd64 [installed,automatic]
libpango-1.0-0/stable,now 1.50.12+ds-1 amd64 [installed,automatic]
libpangocairo-1.0-0/stable,now 1.50.12+ds-1 amd64 [installed,automatic]
libpangoft2-1.0-0/stable,now 1.50.12+ds-1 amd64 [installed,automatic]
libparted2/stable,now 3.5-3 amd64 [installed,automatic]
libpcre2-8-0/stable,now 10.42-1 amd64 [installed,automatic]
libpcsclite1/stable,now 1.9.9-2 amd64 [installed,automatic]
libperl5.36/stable,now 5.36.0-7+deb12u1 amd64 [installed,automatic]
libpgm-5.3-0/stable,now 5.3.128~dfsg-2 amd64 [installed,automatic]
libpipewire-0.3-0/stable,now 0.3.65-3+deb12u1 amd64 [installed,automatic]
libpixman-1-0/stable,now 0.42.2-1 amd64 [installed,automatic]
libpng16-16/stable,now 1.6.39-2 amd64 [installed,automatic]
libpopt0/stable,now 1.19+dfsg-1 amd64 [installed,automatic]
libproc2-0/stable,now 2:4.0.2-3 amd64 [installed,automatic]
libpsl5/stable,now 0.21.2-1 amd64 [installed,automatic]
libpulse0/stable,now 16.1+dfsg1-2+b1 amd64 [installed,automatic]
libpython3-stdlib/stable,now 3.11.2-1+b1 amd64 [installed,automatic]
libpython3.11-minimal/stable,now 3.11.2-6+deb12u2 amd64 [installed,automatic]
libpython3.11-stdlib/stable,now 3.11.2-6+deb12u2 amd64 [installed,automatic]
libquadmath0/stable,now 12.2.0-14 amd64 [installed,automatic]
librabbitmq4/stable,now 0.11.0-1+b1 amd64 [installed,automatic]
librav1e0/stable,now 0.5.1-6 amd64 [installed,automatic]
libreadline8/stable,now 8.2-1.3 amd64 [installed,automatic]
librist4/stable,now 0.2.7+dfsg-1 amd64 [installed,automatic]
librsvg2-2/stable,stable-security,now 2.54.7+dfsg-1~deb12u1 amd64 [installed,automatic]
librtmp1/stable,now 2.4+20151223.gitfa8646d.1-2+b2 amd64 [installed,automatic]
libsamplerate0/stable,now 0.2.2-3 amd64 [installed,automatic]
libsasl2-2/stable,now 2.1.28+dfsg-10 amd64 [installed,automatic]
libsasl2-modules-db/stable,now 2.1.28+dfsg-10 amd64 [installed,automatic]
libsdl2-2.0-0/stable,now 2.26.5+dfsg-1 amd64 [installed,automatic]
libseccomp2/stable,now 2.5.4-1+deb12u1 amd64 [installed,automatic]
libselinux1/stable,now 3.4-1+b6 amd64 [installed,automatic]
libsemanage-common/stable,now 3.4-1 all [installed,automatic]
libsemanage2/stable,now 3.4-1+b5 amd64 [installed,automatic]
libsepol2/stable,now 3.4-2.1 amd64 [installed,automatic]
libshine3/stable,now 3.1.1-2 amd64 [installed,automatic]
libshout3/stable,now 2.4.6-1+b1 amd64 [installed,automatic]
libsidplayfp6/stable,now 2.4.2-1 amd64 [installed,automatic]
libslang2/stable,now 2.3.3-3 amd64 [installed,automatic]
libsmartcols1/stable,stable-security,now 2.38.1-5+deb12u1 amd64 [installed,automatic]
libsmbclient/stable,stable-security,now 2:4.17.12+dfsg-0+deb12u1 amd64 [installed,automatic]
libsnappy1v5/stable,now 1.1.9-3 amd64 [installed,automatic]
libsndfile1/stable,now 1.2.0-1 amd64 [installed,automatic]
libsndio7.0/stable,now 1.9.0-0.3+b2 amd64 [installed,automatic]
libsodium23/stable,now 1.0.18-1 amd64 [installed,automatic]
libsoxr0/stable,now 0.1.3-4 amd64 [installed,automatic]
libspa-0.2-modules/stable,now 0.3.65-3+deb12u1 amd64 [installed,automatic]
libspeex1/stable,now 1.2.1-2 amd64 [installed,automatic]
libsqlite3-0/stable,now 3.40.1-2 amd64 [installed,automatic]
libsrt1.5-gnutls/stable,now 1.5.1-1 amd64 [installed,automatic]
libss2/stable,now 1.47.0-2 amd64 [installed,automatic]
libssh-gcrypt-4/stable,stable-security,now 0.10.6-0+deb12u1 amd64 [installed,automatic]
libssh2-1/stable,now 1.10.0-3+b1 amd64 [installed,automatic]
libssl-dev/stable,now 3.0.13-1~deb12u1 amd64 [installed]
libssl3/stable,now 3.0.13-1~deb12u1 amd64 [installed,automatic]
libstdc++-12-dev/stable,now 12.2.0-14 amd64 [installed,automatic]
libstdc++6/stable,now 12.2.0-14 amd64 [installed,automatic]
libsvtav1enc1/stable,now 1.4.1+dfsg-1 amd64 [installed,automatic]
libswresample4/stable,stable-security,now 7:5.1.5-0+deb12u1 amd64 [installed,automatic]
libsystemd-shared/stable,now 252.26-1~deb12u2 amd64 [installed,automatic]
libsystemd0/stable,now 252.26-1~deb12u2 amd64 [installed,automatic]
libtalloc2/stable,now 2.4.0-f2 amd64 [installed,automatic]
libtasn1-6/stable,now 4.19.0-2 amd64 [installed,automatic]
libtdb1/stable,now 1.4.8-2 amd64 [installed,automatic]
libtevent0/stable,now 0.14.1-1 amd64 [installed,automatic]
libthai-data/stable,now 0.1.29-1 all [installed,automatic]
libthai0/stable,now 0.1.29-1 amd64 [installed,automatic]
libtheora0/stable,now 1.1.1+dfsg.1-16.1+b1 amd64 [installed,automatic]
libtiff6/stable,stable-security,now 4.5.0-6+deb12u1 amd64 [installed,automatic]
libtinfo6/stable,now 6.4-4 amd64 [installed,automatic]
libtirpc-common/stable,now 1.3.3+ds-1 all [installed,automatic]
libtirpc-dev/stable,now 1.3.3+ds-1 amd64 [installed,automatic]
libtirpc3/stable,now 1.3.3+ds-1 amd64 [installed,automatic]
libtomcrypt1/stable,now 1.18.2-6 amd64 [installed,automatic]
libtommath1/stable,now 1.2.0-6+deb12u1 amd64 [installed,automatic]
libtsan2/stable,now 12.2.0-14 amd64 [installed,automatic]
libtwolame0/stable,now 0.4.0-2 amd64 [installed,automatic]
libubsan1/stable,now 12.2.0-14 amd64 [installed,automatic]
libudev1/stable,now 252.26-1~deb12u2 amd64 [installed,automatic]
libudfread0/stable,now 1.1.2-1 amd64 [installed,automatic]
libunistring2/stable,now 1.0-2 amd64 [installed,automatic]
libupnp13/stable,now 1:1.8.4-2 amd64 [installed,automatic]
liburing2/stable,now 2.3-3 amd64 [installed,automatic]
libusb-1.0-0/stable,now 2:1.0.26-1 amd64 [installed,automatic]
libuuid1/stable,stable-security,now 2.38.1-5+deb12u1 amd64 [installed,automatic]
libva-drm2/stable,now 2.17.0-1 amd64 [installed,automatic]
libva-x11-2/stable,now 2.17.0-1 amd64 [installed,automatic]
libva2/stable,now 2.17.0-1 amd64 [installed,automatic]
libvdpau1/stable,now 1.5-2 amd64 [installed,automatic]
libvorbis0a/stable,now 1.3.7-1 amd64 [installed,automatic]
libvorbisenc2/stable,now 1.3.7-1 amd64 [installed,automatic]
libvorbisfile3/stable,now 1.3.7-1 amd64 [installed,automatic]
libvpx7/stable-security,now 1.12.0-1+deb12u3 amd64 [installed,automatic]
libwavpack1/stable,now 5.6.0-1 amd64 [installed,automatic]
libwayland-client0/stable,now 1.21.0-1 amd64 [installed,automatic]
libwayland-cursor0/stable,now 1.21.0-1 amd64 [installed,automatic]
libwayland-egl1/stable,now 1.21.0-1 amd64 [installed,automatic]
libwayland-server0/stable,now 1.21.0-1 amd64 [installed,automatic]
libwbclient0/stable,stable-security,now 2:4.17.12+dfsg-0+deb12u1 amd64 [installed,automatic]
libwebp7/stable,stable-security,now 1.2.4-0.2+deb12u1 amd64 [installed,automatic]
libwebpmux3/stable,stable-security,now 1.2.4-0.2+deb12u1 amd64 [installed,automatic]
libwebrtc-audio-processing1/stable,now 0.3-1+b1 amd64 [installed,automatic]
libwildmidi2/stable,now 0.4.3-1 amd64 [installed,automatic]
libx11-6/stable,stable-security,now 2:1.8.4-2+deb12u2 amd64 [installed,automatic]
libx11-data/stable,stable-security,now 2:1.8.4-2+deb12u2 all [installed,automatic]
libx11-xcb1/stable,stable-security,now 2:1.8.4-2+deb12u2 amd64 [installed,automatic]
libx264-164/stable,now 2:0.164.3095+gitbaee400-3 amd64 [installed,automatic]
libx265-199/stable,now 3.5-2+b1 amd64 [installed,automatic]
libxau6/stable,now 1:1.0.9-1 amd64 [installed,automatic]
libxcb-dri3-0/stable,now 1.15-1 amd64 [installed,automatic]
libxcb-render0/stable,now 1.15-1 amd64 [installed,automatic]
libxcb-shm0/stable,now 1.15-1 amd64 [installed,automatic]
libxcb1/stable,now 1.15-1 amd64 [installed,automatic]
libxcursor1/stable,now 1:1.2.1-1 amd64 [installed,automatic]
libxdmcp6/stable,now 1:1.1.2-3 amd64 [installed,automatic]
libxext6/stable,now 2:1.3.4-1+b1 amd64 [installed,automatic]
libxfixes3/stable,now 1:6.0.0-2 amd64 [installed,automatic]
libxi6/stable,now 2:1.8-1+b1 amd64 [installed,automatic]
libxkbcommon0/stable,now 1.5.0-1 amd64 [installed,automatic]
libxml2/stable,now 2.9.14+dfsg-1.3~deb12u1 amd64 [installed,automatic]
libxrandr2/stable,now 2:1.5.2-2+b1 amd64 [installed,automatic]
libxrender1/stable,now 1:0.9.10-1.1 amd64 [installed,automatic]
libxss1/stable,now 1:1.2.3-1 amd64 [installed,automatic]
libxtables12/stable,now 1.8.9-2 amd64 [installed,automatic]
libxvidcore4/stable,now 2:1.3.7-1 amd64 [installed,automatic]
libxxhash0/stable,now 0.8.1-1 amd64 [installed,automatic]
libyajl2/stable,now 2.1.0-3+deb12u2 amd64 [installed,automatic]
libzmq5/stable,now 4.3.4-6 amd64 [installed,automatic]
libzstd1/stable,now 1.5.4+dfsg2-5 amd64 [installed,automatic]
libzvbi-common/stable,now 0.2.41-1 all [installed,automatic]
libzvbi0/stable,now 0.2.41-1 amd64 [installed,automatic]
libzzip-0-13/stable,now 0.13.72+dfsg.1-1.1 amd64 [installed,automatic]
linux-base/stable,now 4.9 all [installed]
linux-image-6.1.0-22-amd64/stable,now 6.1.94-1 amd64 [installed,automatic]
linux-image-amd64/stable,now 6.1.94-1 amd64 [installed]
linux-libc-dev/stable,now 6.1.94-1 amd64 [installed,automatic]
linux-source-6.1/stable,now 6.1.94-1 all [installed,automatic]
linux-source/stable,now 6.1.94-1 all [installed]
locales/stable,stable-security,now 2.36-9+deb12u7 all [installed]
login/stable,now 1:4.13+dfsg1-1+b1 amd64 [installed,automatic]
logsave/stable,now 1.47.0-2 amd64 [installed,automatic]
m4/stable,now 1.4.19-3 amd64 [installed,automatic]
make/stable,now 4.3-4.1 amd64 [installed,automatic]
mawk/stable,now 1.3.4.20200120-3.1 amd64 [installed]
media-types/stable,now 10.0.0 all [installed,automatic]
mokutil/stable,now 0.6.0-2 amd64 [installed,automatic]
mount/stable,stable-security,now 2.38.1-5+deb12u1 amd64 [installed,automatic]
mpd/stable,now 0.23.12-1+b1 amd64 [installed]
nano/stable,now 7.2-1+deb12u1 amd64 [installed]
ncurses-base/stable,now 6.4-4 all [installed,automatic]
ncurses-bin/stable,now 6.4-4 amd64 [installed,automatic]
ocl-icd-libopencl1/stable,now 2.3.1-1 amd64 [installed,automatic]
openssh-client/stable,now 1:9.2p1-2+deb12u2 amd64 [installed,upgradable to: 1:9.2p1-2+deb12u3]
openssl/stable,now 3.0.13-1~deb12u1 amd64 [installed,automatic]
os-prober/stable,now 1.81 amd64 [installed]
p7zip/stable,now 16.02+dfsg-8 amd64 [installed]
pahole/stable,now 1.24-4.1 amd64 [installed]
parted/stable,now 3.5-3 amd64 [installed]
passwd/stable,now 1:4.13+dfsg1-1+b1 amd64 [installed,automatic]
patch/stable,now 2.7.6-7 amd64 [installed,automatic]
perl-base/stable,now 5.36.0-7+deb12u1 amd64 [installed,automatic]
perl-modules-5.36/stable,now 5.36.0-7+deb12u1 all [installed,automatic]
perl/stable,now 5.36.0-7+deb12u1 amd64 [installed,automatic]
procps/stable,now 2:4.0.2-3 amd64 [installed]
psmisc/stable,now 23.6-1 amd64 [installed]
python3-minimal/stable,now 3.11.2-1+b1 amd64 [installed,automatic]
python3.11-minimal/stable,now 3.11.2-6+deb12u2 amd64 [installed,automatic]
python3.11/stable,now 3.11.2-6+deb12u2 amd64 [installed,automatic]
python3/stable,now 3.11.2-1+b1 amd64 [installed,automatic]
readline-common/stable,now 8.2-1.3 all [installed,automatic]
rpcsvc-proto/stable,now 1.4.3-1 amd64 [installed,automatic]
rsync/stable,now 3.2.7-1 amd64 [installed]
samba-common/stable,stable-security,now 2:4.17.12+dfsg-0+deb12u1 all [installed,automatic]
samba-libs/stable,stable-security,now 2:4.17.12+dfsg-0+deb12u1 amd64 [installed,automatic]
sed/stable,now 4.9-1 amd64 [installed,automatic]
sensible-utils/stable,now 0.0.17+nmu1 all [installed,automatic]
shared-mime-info/stable,now 2.2-1 amd64 [installed,automatic]
shim-helpers-amd64-signed/stable,now 1+15.7+1 amd64 [installed,automatic]
shim-signed-common/stable,now 1.39+15.7-1 all [installed,automatic]
shim-signed/stable,now 1.39+15.7-1 amd64 [installed]
shim-unsigned/stable,now 15.7-1 amd64 [installed,automatic]
smbclient/stable,stable-security,now 2:4.17.12+dfsg-0+deb12u1 amd64 [installed]
sudo/stable,now 1.9.13p3-1+deb12u1 amd64 [installed]
systemd-sysv/stable,now 252.26-1~deb12u2 amd64 [installed]
systemd-timesyncd/stable,now 252.26-1~deb12u2 amd64 [installed]
systemd/stable,now 252.26-1~deb12u2 amd64 [installed,automatic]
sysvinit-utils/stable,now 3.06-4 amd64 [installed,automatic]
tar/stable,now 1.34+dfsg-1.2+deb12u1 amd64 [installed,automatic]
timgm6mb-soundfont/stable,now 1.3-5 all [installed,automatic]
tzdata/stable,now 2024a-0+deb12u1 all [installed]
ucf/stable,now 3.0043+nmu1 all [installed,automatic]
udev/stable,now 252.26-1~deb12u2 amd64 [installed]
unzip/stable,now 6.0-28 amd64 [installed]
usbutils/stable,now 1:014-1+deb12u1 amd64 [installed]
usr-is-merged/stable,now 37~deb12u1 all [installed,automatic]
util-linux-extra/stable,stable-security,now 2.38.1-5+deb12u1 amd64 [installed,automatic]
util-linux/stable,stable-security,now 2.38.1-5+deb12u1 amd64 [installed,automatic]
wget/stable,now 1.21.3-1+b2 amd64 [installed]
whiptail/stable,now 0.52.23-1+b1 amd64 [installed]
wireless-regdb/stable,now 2022.06.06-1 all [installed]
wireless-tools/stable,now 30~pre9-14 amd64 [installed]
wpasupplicant/stable,now 2:2.10-12+deb12u1 amd64 [installed]
x11-common/stable,now 1:7.7+23 all [installed,automatic]
xkb-data/stable,now 2.35.1-1 all [installed,automatic]
xz-utils/stable,now 5.4.1-0.2 amd64 [installed,automatic]
zlib1g-dev/stable,now 1:1.2.13.dfsg-1 amd64 [installed,automatic]
zlib1g/stable,now 1:1.2.13.dfsg-1 amd64 [installed,automatic]
zstd/stable,now 1.5.4+dfsg2-5 amd64 [installed]
root@DietPi:~#

Regarding “a backup”… I do have the full 22GB fileset on my backup drive - which is only 30 GB total space - so that is somewhat of a safety. I have an approximate list of the additions to the system for purposes of compiling - it comes from the recipe document for building this system:

binutils-common
binutils-x86-64-linux-gnu
binutils
bison
cpp-12
cpp
dpkg-dev
g++-12
g++
gcc-12
gcc
initramfs-tools-core
klibc-utils
libasan8
libatomic1
libbinutils
libcc1-0
libctf-nobfd0
libctf0
libdpkg-perl
libgcc-12-dev
libgdbm-compat4
libgdbm6
libisl23
libitm1
liblsan0
libmpc3
libmpfr6
libperl5.36
libquadmath0
libsigsegv2
libstdc++-12-dev
libtsan1-6
libubsan1
m4
make
patch
perl
perl-modules-5.36
xz-utils
zlib1g-dev

If I apt remove this list, what amount of drive space will be released ?
Where (in what folder(s) are all the other “necessary” packages stored ?
Given that I created the /root/linux-5.19.17 working directory for purposes of compiling the “new” kernel, is it still needed for the system to run ?
I presume the output of the successful compile is placed in the standard libraries from which Linux executes - yes ?

Thanks :slightly_smiling_face:

As you can see, your new kernel directory is almost 16GB. Removing packages will not bring the benefit you wish for.

Hi Joulinar - yes the “huge” culprit is identified. Curious it is so large… the first time I built this kernel (a year ago) the entire system backup dataset was about 5.5GB - which would have included a similar working directory to do the compile work.

My question (since I don’t yet know the fundamental file structure of a Linux OS)… does the system now rely on this directory to run ? Can it be removed without killing the system ?

Asked another way, has the output of the compile process been “installed” into other standard directories, making this one superfluous ?

You can check the running kernel with ‘uname -a’.
It need to be located in /boot. Could you give an ‘ls -l /boot’ output to look at this?

I never did kernel development aso myself. Therefore I don’t know.

@StephanStS / @Joulinar thank you both for continuing help :slightly_smiling_face:

Running kernel:

root@DietPi:~# uname -a
Linux DietPi 5.19.17-100HZv2 #2 SMP Fri Jun 28 20:46:39 BST 2024 x86_64 GNU/Linux
root@DietPi:~#

and looking into /boot:

root@DietPi:~# ls -l /boot
total 323901
-rw-r--r-- 1 root root   4010190 Jun 28 20:53 System.map-5.19.17-100HZv2
-rw-r--r-- 1 root root   4009296 Jun 27 07:34 System.map-5.19.17-100HZv2.old
-rw-r--r-- 1 root root        83 Jun 21 04:59 System.map-6.1.0-22-amd64
-rw-r--r-- 1 root root    235220 Jun 28 20:53 config-5.19.17-100HZv2
-rw-r--r-- 1 root root    235231 Jun 27 07:34 config-5.19.17-100HZv2.old
-rw-r--r-- 1 root root    259504 Jun 21 04:59 config-6.1.0-22-amd64
drwxr-xr-x 4 root root      4096 Jul  7 18:44 dietpi
-rw-r--r-- 1 root root     18092 Jun  9 19:54 dietpi-LICENSE.txt
-rw-r--r-- 1 root root     16109 Jun  9 19:54 dietpi-README.md
-rw------- 1 root root      3950 Jun 10 16:00 dietpi-wifi.txt
-rw-r--r-- 1 root root     17869 Jun 28 20:58 dietpi.txt
drwxr-xr-x 3 root root       512 Jan  1  1970 efi
drwxr-xr-x 5 root root      4096 Jun 30 15:11 grub
-rw-r--r-- 1 root root 268859567 Jun 28 20:54 initrd.img-5.19.17-100HZv2
-rw-r--r-- 1 root root  31859384 Jun 30 15:09 initrd.img-6.1.0-22-amd64
-rw-r--r-- 1 root root   6962656 Jun 28 20:53 vmlinuz-5.19.17-100HZv2
-rw-r--r-- 1 root root   6963872 Jun 27 07:34 vmlinuz-5.19.17-100HZv2.old
-rw-r--r-- 1 root root   8173504 Jun 21 04:59 vmlinuz-6.1.0-22-amd64
root@DietPi:~#

The 5.19.17-100HZv2.old is from a compile run that had an incorrect option setting, and is completely superfluous to this system. Can this failed version be safely removed ?

it should be possible to remove .old files

Kernel 5.1.17 is running and not 6.1.0.
So I assume that also the 6.1.0 files could be deleted.

kernel 6.x should be purged (if not needed) using apt

However, installed kernel within /boot is not the problem. It is /root/linux-5.19.17 that has been used to compile the kernel.

2 Likes

Gentlemen - thank you again for answers, info and pointing me toward new facets of working with Linux.

Deleted /root/linux-5.19.17 with out any fanfare - now the HUGE-ness is mostly gone from my backups. Used apt purge linux-image-6.1.0-22-amd64 to clear out unwanted kernel, and manually deleted all traces of 5.19.17-100HZv2.old using WinSCP.

This should conclude business for this thread.

Again, thanks for Help and Support !

1 Like