Verified Commit dfbee20a authored by anarcat's avatar anarcat
Browse files

try to batch step 8 so it can be all copy-paste at once

parent 30e880a3
Loading
Loading
Loading
Loading
+14 −13
Original line number Diff line number Diff line
@@ -156,19 +156,20 @@ See the "conflicts resolution" section below for how to handle
        export LC_ALL=C.UTF-8 &&
        sudo ttyrec -a -e screen /var/log/upgrade-bookworm.ttyrec

        apt-mark manual bind9-dnsutils puppet-agent
        apt purge $(dpkg -l | awk '/^rc/ { print $2 }') # purge removed packages
        apt autopurge -y
        apt purge $(deborphan --guess-dummy)
        while deborphan -n | grep -q . ; do apt purge $(deborphan -n); done
        apt autopurge -y
        apt clean
        # review and purge older kernel if the new one boots properly
        dpkg -l 'linux-image*'
        # review obsolete and odd packages
        apt purge '?obsolete'
        apt list "?narrow(?installed, ?not(?codename($(lsb_release -c -s | tail -1))))"
        printf "End of Step 8\a\n"
        apt-mark manual bind9-dnsutils puppet-agent &&
        : purge removed packages &&
        apt purge $(dpkg -l | awk '/^rc/ { print $2 }') &&
        apt autopurge &&
        apt purge $(deborphan --guess-dummy) &&
        while deborphan -n | grep -q . ; do apt purge $(deborphan -n); done ^^
        apt autopurge &&
        apt clean &&
        ; review and purge older kernel if the new one boots properly &&
        dpkg -l 'linux-image*' | less &&
        ; review obsolete and odd packages &&
        apt purge '?obsolete' && apt autopurge &&
        apt list "?narrow(?installed, ?not(?codename($(lsb_release -c -s | tail -1))))" &&
        printf "End of Step 8\a\n" &&
        shutdown -r +1 "bookworm upgrade step 8: testing reboots one final time"

[this guide to free up space]: http://www.debian.org/releases/buster/amd64/release-notes/ch-upgrading.en.html#sufficient-space