Skip to content

Instantly share code, notes, and snippets.

@brickzva
Created July 2, 2016 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brickzva/c03286c0d9d1b4188e2fe8df97317b18 to your computer and use it in GitHub Desktop.
Save brickzva/c03286c0d9d1b4188e2fe8df97317b18 to your computer and use it in GitHub Desktop.
Simple apt update, upgrade and autoclean routine for the lazy folks like me.
#!/bin/bash
##
## Insanely simiple way to run updates if you don't have automatic updates enabled
##
## 1. copy this to a file on to your favorite host \
## 2. chmod +x ./<yourfile_name> (makes the script executable)
## 3. run your new script by "./<yourfile_name>
## 4. you'll be prompted for you password (sudo), then off to the races..
##
echo "Time to update!"
echo "..."
echo "..."
sudo apt-get update
echo "..."
echo "Time to install the updates!"
echo "..."
echo "..."
sudo apt-get upgrade -y
echo "..."
echo "And now ... time to clean up!"
echo "..."
echo "..."
sudo apt-get autoremove -y
echo "..."
echo "All done!!!!"
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment