Last active
July 7, 2021 17:53
-
-
Save sitemapxml/d19a43ba9fcbf83a1c639e18bd69d578 to your computer and use it in GitHub Desktop.
This is simple one-liner script used for updating repository lists, upgrading packages and removing old packages.
This file contains 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
#!/usr/bin/env sh | |
# This is simple one-liner script used for updating repository lists, upgrading packages and removing old packages. | |
# The script will reboot the server after finished. | |
# ################################################# | |
# Installation: | |
# wget https://gist.githubusercontent.com/sitemapxml/d19a43ba9fcbf83a1c639e18bd69d578/raw/9e7ba290b7f3d72db09a92c733a28e16b229149d/upgrade.sh | |
# chmod +x upgrade.sh | |
# mv upgrade.sh /usr/bin/upgrade | |
sudo apt update && sudo apt upgrade -y && sudo apt autoremove && sudo apt autoclean | |
echo "Restarting..." | |
sleep 1s | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment