Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save joel113/7b36d41c87e70d006a2a4d082af8e084 to your computer and use it in GitHub Desktop.

Select an option

Save joel113/7b36d41c87e70d006a2a4d082af8e084 to your computer and use it in GitHub Desktop.
HOWTO: Upgrade Raspberry Pi OS from bullseye to bookworm
sudo apt-get update && sudo apt-get dist-upgrade
sudo sed -i -e 's/bullseye/bookworm/g' /etc/apt/sources.list
sudo sed -i -e 's/bullseye/bookworm/g' /etc/apt/sources.list.d/raspi.list
sudo apt update
sudo apt -y full-upgrade
sudo apt -y autoremove
sudo apt -y clean
sudo reboot
#
# remove old config files after doing sanity checks
sudo apt purge ?config-files
#
# Bonus steps
#
# install btop
sudo apt-get install btop
#
# update sshd for up to date secure by default config. use ssh-audit to verify
KexAlgorithms [email protected],curve25519-sha256,[email protected]
HostKeyAlgorithms [email protected],ssh-ed25519
Ciphers [email protected]
MACs [email protected],[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment