Skip to content

Instantly share code, notes, and snippets.

@sitemapxml
Last active July 7, 2021 17:53
Show Gist options
  • Save sitemapxml/d19a43ba9fcbf83a1c639e18bd69d578 to your computer and use it in GitHub Desktop.
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.
#!/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