bundles/apt: run autoremove first, then clean cached packages

This commit is contained in:
Franzi 2024-05-12 19:36:31 +02:00
parent c806d7b890
commit a17833698d
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -6,10 +6,10 @@ apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y -q -o Dpkg::Options::=--force-confold dist-upgrade
DEBIAN_FRONTEND=noninteractive apt-get -y -q autoclean
DEBIAN_FRONTEND=noninteractive apt-get -y -q autoremove
DEBIAN_FRONTEND=noninteractive apt-get -y -q clean
% if clean_old_kernels:
existing=$(dpkg --get-selections | grep -E '^linux-(image|headers)-[0-9]' || true)