Last active
January 20, 2024 10:30
-
-
Save munabedan/4154c970648dbff650158f30a14338e1 to your computer and use it in GitHub Desktop.
Bash function for apt updatde, upgrade, autoremove and clean
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
#run apt updatde, upgrade, autoremove and clean | |
apt-update() { | |
echo -e "\n\e[1;33mRunning apt-get update...\e[0m" | |
sudo apt-get update | |
echo -e "\n\e[1;33mRunning apt-get upgrade...\e[0m" | |
sudo apt-get -y upgrade | |
echo -e "\n\e[1;33mRunning apt-get autoremove...\e[0m" | |
sudo apt-get -y autoremove | |
echo -e "\n\e[1;33mRunning apt-get clean...\e[0m" | |
sudo apt-get -y clean | |
echo -e "\n\e[1;32mFinished updating and cleaning up.\e[0m\n" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment