Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment