Last active
November 20, 2019 12:29
-
-
Save fridzema/dcd1baf3146ed68c6e9dac3148085941 to your computer and use it in GitHub Desktop.
update-all-oneline-unix-ubuntu-bash.sh
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 | |
export DEBIAN_FRONTEND=noninteractive | |
set -e | |
echo 'Fetch packages....' | |
sudo apt-get update -q | |
echo 'Perform upgrade....' | |
sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y upgrade | |
echo 'Perform dist-upgrade....' | |
sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y dist-upgrade | |
wget https://gist.githubusercontent.com/fridzema/6b80266a9993f907aed58f18fc658c64/raw/ubuntu-maintenance.sh | |
chmod +x ./ubuntu-maintenance.sh | |
sh ./ubuntu-maintenance.sh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment