45 private links
#debian 7->8
apt-get update
apt-get upgrade
sed -i.$(date +%y%m%d-%H%M%S).bak 's/wheezy/jessie/' /etc/apt/sources.list
apt-get update
apt-get upgrade
apt-get dist-upgrade
reboot
#debian 8->9
apt update
apt full-upgrade
sed -i.$(date +%y%m%d-%H%M%S).bak 's/jessie/stretch/' /etc/apt/sources.list
apt update
apt full-upgrade
reboot
#debian 9->10
apt update
apt full-upgrade
sed -i.$(date +%y%m%d-%H%M%S).bak 's/stretch/buster/' /etc/apt/sources.list
apt update
apt full-upgrade
reboot
#debian 10-> 11
apt update
apt upgrade
sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/*.list
sudo sed -i 's#/debian-security bullseye/updates# bullseye-security#g' /etc/apt/sources.list
apt update
apt full-upgrade
apt autoremove
reboot
#debian 11-> 12
apt update
apt upgrade
sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list
sudo sed -i 's#/debian-security bullseye-updates# bookworm-security#g' /etc/apt/sources.list
apt update
apt upgrade --without-new-pkgs
apt full-upgrade
apt autoremove
reboot
Qui a dit que Linux c'était dur ?