Created
July 2, 2016 17:26
-
-
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.
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
#!/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