Created
January 27, 2020 12:26
-
-
Save MParvin/ecf5c9d2f2beb6a699ac2a05beb29c6d to your computer and use it in GitHub Desktop.
Simple bash scripts
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 | |
# First upgrade current packages | |
apt update | grep upgradable && apt upgrade -y | |
# Change debian repository to 10 (Buster) | |
sed -i 's/stretch/buster/gm' /etc/apt/sources.list | |
# Upgrade packages with Debian 10 repository | |
apt update && apt upgrade -y | |
# Upgrade distribution | |
apt dist-upgrade -y | |
# Show new debian version | |
lsb_release -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment