Skip to content

Instantly share code, notes, and snippets.

@AaronNGray
Last active June 8, 2018 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AaronNGray/eb582f8789f3a7c799800bd0faaa0925 to your computer and use it in GitHub Desktop.
Save AaronNGray/eb582f8789f3a7c799800bd0faaa0925 to your computer and use it in GitHub Desktop.
Raspbian 'Stretch' upgrade
cat >stretch.in <<EOF
Y
Y
Y
Q
EOF
cp /etc/apt/sources.list /etc/apt/sources.list.jessie
sed -e "s/jessie/stretch/g" /etc/apt/sources.list >/etc/apt/sources.list.stretch
cp /etc/apt/sources.list.stretch /etc/apt/sources.list
apt-get update
apt list --upgradable
apt-get upgrade <stretch.in
apt-get dist-upgrade
apt-get autoremove
rm stretch.in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment