Last active
November 17, 2017 12:22
-
-
Save leancode/16e64dc65bbc77fe3211e65439d981a5 to your computer and use it in GitHub Desktop.
Upgrade Debian 8 to Debian 9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt update | |
| sudo apt upgrade | |
| sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list | |
| sudo apt update | |
| sudo apt upgrade | |
| sudo apt dist-upgrade | |
| sudo apt autoremove | |
| sudo apt clean | |
| echo "now reboot ('reboot' or 'shutdown -r now')" | |
| echo "Once rebooted run 'cat /etc/debian_version' or 'lsb_release -a'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment