Created
October 25, 2022 12:39
-
-
Save sainf/4caa213a00fc4e81729d9412c9495db4 to your computer and use it in GitHub Desktop.
Ubuntu Update atp, snap and flatpak
This file contains hidden or 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 | |
if [ $(id -u) != 0 ]; then | |
printf "**********************************************\n" | |
printf "* Error: You must run this with sudo or root *\n" | |
printf "**********************************************\n" | |
exit 1 | |
fi | |
apt upgrade | |
printf "********\n" | |
printf "* Snap *\n" | |
printf "********\n" | |
snap refresh | |
printf "************\n" | |
printf "* Flatpack *\n" | |
printf "************\n" | |
flatpak update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment