From 8d453b1e75276a8b8b232e555d6ca030928a3dba Mon Sep 17 00:00:00 2001 From: restitux Date: Sun, 19 Nov 2023 09:21:42 +0000 Subject: [PATCH] Created Debian Upgrade (markdown) --- restitux/Debian Upgrade.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 restitux/Debian Upgrade.md diff --git a/restitux/Debian Upgrade.md b/restitux/Debian Upgrade.md new file mode 100644 index 0000000..f78059a --- /dev/null +++ b/restitux/Debian Upgrade.md @@ -0,0 +1,18 @@ +# NOTE +Please refer to the official debian documentation for upgrading to the release in question. This page only serves and quick notes on the process. + +# Update Apt Sources +First, update your apt sources list to point to the new debian version. +1. Open `/etc/apt/sources.list` and any files in `/etc/apt/sources.list.d` +2. `s/CURRENT_VERISON/NEW_VERSION/` +3. Run `apt update` + +# Verify free disk space +Required disk space for the update can be printed by running `apt -o APT::Get::Trivial-Only=true full-upgrade`. + +# Run the update +1. Install updates for currently installed packages: `apt upgrade --without-new-pkgs` +2. Install all updates: `apt full-upgrade` +3. Reboot: `reboot` +4. Remove obsolete packages: `apt purge '?obsolete'` +5. Remove unnecessary packages: `apt autoremove` \ No newline at end of file