Upgrading Debian to the next major version: Difference between revisions

From Andreida
(Created page with "==== 8 -> 9 (jessie -> stretch) ==== cat /etc/issue apt-get update apt-get upgrade apt-get dist-upgrade sed -i 's/jessie/stretch/g' /etc/apt/sources.list apt-get update...")
 
No edit summary
Line 1: Line 1:
==== 8 -> 9 (jessie -> stretch) ====
==== 10 -> 11 (buster -> bullseye) ====
cat /etc/issue
cat /etc/issue
apt-get update
apt-get update
apt-get upgrade
apt-get upgrade
apt-get dist-upgrade
apt-get dist-upgrade
sed -i 's/jessie/stretch/g' /etc/apt/sources.list
sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sed -i 's/bullseye\/updates/bullseye-security/g' /etc/apt/sources.list
apt-get update
apt-get update
apt-get upgrade
apt-get upgrade
Line 11: Line 12:
shutdown -r now
shutdown -r now
cat /etc/issue
cat /etc/issue

or something shorter but with less control:
apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sed -i 's/bullseye\/updates/bullseye-security/g' /etc/apt/sources.list
apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade && apt-get -y autoremove
shutdown -r now
cat /etc/issue



==== 9 -> 10 (stretch -> buster) ====
==== 9 -> 10 (stretch -> buster) ====
Line 25: Line 35:
cat /etc/issue
cat /etc/issue



==== 10 -> 11 (buster -> bullseye) ====

==== 8 -> 9 (jessie -> stretch) ====
cat /etc/issue
cat /etc/issue
apt-get update
apt-get update
apt-get upgrade
apt-get upgrade
apt-get dist-upgrade
apt-get dist-upgrade
sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sed -i 's/jessie/stretch/g' /etc/apt/sources.list
sed -i 's/bullseye\/updates/bullseye-security/g' /etc/apt/sources.list
apt-get update
apt-get update
apt-get upgrade
apt-get upgrade
apt-get dist-upgrade
apt-get dist-upgrade
apt-get -y autoremove
apt-get -y autoremove
shutdown -r now
cat /etc/issue

or something shorter but with less control:
apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sed -i 's/bullseye\/updates/bullseye-security/g' /etc/apt/sources.list
apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade && apt-get -y autoremove
shutdown -r now
shutdown -r now
cat /etc/issue
cat /etc/issue

Revision as of 14:41, 7 March 2024

10 -> 11 (buster -> bullseye)

cat /etc/issue
apt-get update
apt-get upgrade
apt-get dist-upgrade
sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sed -i 's/bullseye\/updates/bullseye-security/g' /etc/apt/sources.list
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get -y autoremove
shutdown -r now
cat /etc/issue

or something shorter but with less control:

apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
sed -i 's/buster/bullseye/g' /etc/apt/sources.list
sed -i 's/bullseye\/updates/bullseye-security/g' /etc/apt/sources.list
apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade && apt-get -y autoremove
shutdown -r now
cat /etc/issue


9 -> 10 (stretch -> buster)

cat /etc/issue
apt-get update
apt-get upgrade
apt-get dist-upgrade
sed -i 's/stretch/buster/g' /etc/apt/sources.list
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get -y autoremove
shutdown -r now
cat /etc/issue


8 -> 9 (jessie -> stretch)

cat /etc/issue
apt-get update
apt-get upgrade
apt-get dist-upgrade
sed -i 's/jessie/stretch/g' /etc/apt/sources.list
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get -y autoremove
shutdown -r now
cat /etc/issue