Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save PsyZeus/cd86332f4f4f18c3c2f27061ea407ca7 to your computer and use it in GitHub Desktop.

Select an option

Save PsyZeus/cd86332f4f4f18c3c2f27061ea407ca7 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 sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org
HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-ed25519
Ciphers chacha20-poly1305@openssh.com
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment