From 249caecba92081b7490c7ad0a26298f91cdf0726 Mon Sep 17 00:00:00 2001 From: Peter Palfrader <peter@palfrader.org> Date: Mon, 8 Jul 2019 09:08:02 +0200 Subject: [PATCH] do more apt autoremoves on upgrade --- tsa/howto/upgrades/buster.mdwn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tsa/howto/upgrades/buster.mdwn b/tsa/howto/upgrades/buster.mdwn index b88145e0..eaabb88c 100644 --- a/tsa/howto/upgrades/buster.mdwn +++ b/tsa/howto/upgrades/buster.mdwn @@ -85,6 +85,7 @@ Procedure 7. Post-upgrade procedures: apt-mark manual git && + apt --purge autoremove && apt purge $(for i in apt-transport-https dh-python emacs24-nox gnupg-agent libbind9-140 libcryptsetup4 libdns-export162 libdns162 libevent-2.0-5 libevtlog0 libgdbm3 libicu57 libisc-export160 libisc160 libisccc140 libisccfg140 liblvm2app2.2 liblvm2cmd2.02 liblwres141 libmpfr4 libncurses5 libperl5.24 libprocps6 libpython3.5 libpython3.5-minimal libpython3.5-stdlib libruby2.3 libssl1.0.2 libunbound2 libunistring0 python3-distutils python3-lib2to3 python3.5 python3.5-minimal ruby-nokogiri ruby-pkg-config ruby-rgen ruby-safe-yaml ruby2.3 sgml-base xml-core git-core gcc-6-base:amd64 nagios-plugins-basic perl-modules-5.24 libsensors4:amd64 grub2 iproute libncursesw5 libustr-1.0-1; do dpkg -l "$i" 2>/dev/null | grep -q '^ii' && echo "$i"; done) && dpkg --purge libsensors4:amd64 syslog-ng-mod-json @@ -101,6 +102,7 @@ Procedure sudo ttyrec -e screen /var/log/upgrade-buster.ttyrec.3 # review and purge old packages, including kernels + apt --purge autoremove dsa-check-packages | tr -d , while deborphan -n | grep -q . ; do apt purge $(deborphan -n); done apt --purge autoremove -- GitLab