Skip to content
Snippets Groups Projects
Verified Commit 31710491 authored by anarcat's avatar anarcat
Browse files

do not run upgrade after removing pins

I just upgraded a workstation to bookworm by mistake like this. Oops.
parent e303264d
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,7 @@ See the "conflicts resolution" section below for how to handle
4. Perform any pending upgrade and clear out old pins:
apt update && apt -y upgrade &&
: Check for pinned, on hold, packages, and possibly disable &&
rm -f /etc/apt/preferences /etc/apt/preferences.d/* &&
rm -f /etc/apt/sources.list.d/backports.debian.org.list &&
......@@ -93,7 +94,6 @@ See the "conflicts resolution" section below for how to handle
rm -f /etc/apt/sources.list.d/proposed-updates.list &&
rm -f /etc/apt/sources.list.d/sid.list &&
rm -f /etc/apt/sources.list.d/testing.list &&
apt update && apt -y upgrade &&
: purge removed packages &&
apt purge $(dpkg -l | awk '/^rc/ { print $2 }') &&
apt autoremove -y --purge &&
......
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