linutil icon indicating copy to clipboard operation
linutil copied to clipboard

[Feature suggestion]: A full system upgrade script for Debian

Open bungadrum opened this issue 1 year ago • 2 comments

Next year Debian 13 Trixie will roll out would it be possible to add a script that will do a full system upgrade from Debian 12 Bookworm to the latest one. Since Debian does not have any kinda GUI tool for a easy upgrade you have to manually do everything in the CLI. Having this script would make it easier for users to just run it, reboot the system when it's finished and they will be on the latest version. This will only be used once every few years when a new version rolls out, but it would make upgrading easier then using the terminal.

This would run in the background:

sudo apt update && sudo apt upgrade -y
sudo apt --purge autoremove
        
sudo cat /etc/apt/sources.list
sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources list
        
sudo apt update
sudo apt upgrade --without-new-pkgs -y
        
sudo apt full-upgrade -y
        
sudo reboot

sudo apt --purge autoremove -y

debian3

Not sure if theese are all the commands for doing a full system upgrade. Any additional stuff could be added like non free firmware:

sudo sed -i '/deb http:\/\/deb.debian.org\/debian\/ trixie main/ s/$/ contrib non-free-firmware/' /etc/apt/sources.list
sudo sed -i '/deb-src http:\/\/deb.debian.org\/debian\/ trixie main/ s/$/ contrib non-free-firmware/' /etc/apt/sources.list

bungadrum avatar Jul 18 '24 05:07 bungadrum

This could be useful for far more than just debian. Ubuntu and Fedora have similar processes which could be automated.

lj3954 avatar Sep 06 '24 00:09 lj3954

The advantage that Ubuntu has is that it redirects you with a GUI and does everything for you. while on Debian or anything that's based on it you have to do everything yourself. Thats the only reason I still hesitate to switch to it would be nice if there is a easy upgradable method for it I would ditch Ubuntu and never look back.

bungadrum avatar Sep 06 '24 04:09 bungadrum

This has been implemented already.

ghost avatar Sep 19 '24 15:09 ghost

/close

ghost avatar Sep 19 '24 15:09 ghost