Skip to content

Instantly share code, notes, and snippets.

@MParvin
Created January 27, 2020 12:26
Show Gist options
  • Save MParvin/ecf5c9d2f2beb6a699ac2a05beb29c6d to your computer and use it in GitHub Desktop.
Save MParvin/ecf5c9d2f2beb6a699ac2a05beb29c6d to your computer and use it in GitHub Desktop.
Simple bash scripts
#!/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