Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geraldohomero/my-update
Update and upgrade scripts for daily use
https://github.com/geraldohomero/my-update
linux shell-script ubuntu update vitrinedev
Last synced: about 8 hours ago
JSON representation
Update and upgrade scripts for daily use
- Host: GitHub
- URL: https://github.com/geraldohomero/my-update
- Owner: geraldohomero
- Created: 2022-07-16T16:58:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-29T14:51:59.000Z (about 1 year ago)
- Last Synced: 2023-12-29T15:40:46.690Z (about 1 year ago)
- Topics: linux, shell-script, ubuntu, update, vitrinedev
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My daily update shellscript for Pop!_OS
```bash
#!/usr/bin/env bash
RED='\e[1;91m'
GREEN='\e[1;92m'
NO_COLOR='\e[0m'
#----## Internet?
if ! ping -c 1 8.8.8.8 -q &> /dev/null; then
echo -e "${RED}[ERROR] - No internet connection.${NO_COLOR}"
exit 1
else
echo -e "${GREEN}[INFO] - Internet connection verified.${NO_COLOR}"
fiupgrade_cleaning () {
echo -e "${GREEN}[INFO] - Upgrading and cleaning...${NO_COLOR}"
sleep 1
sudo apt autoclean
sudo apt clean
sudo apt update -m
sudo dpkg --configure -a
sudo apt install -f
sudo apt full-upgrade
sudo apt autoremove -y
#upgrades, repair and remove unused flatpaks
#flatpak repair --user
#flatpak remove --unused
flatpak update
}
#----# Execução do script
upgrade_cleaning```
### Run:`./update.sh`
***Create alias for the `./update`
>`nano ~/.bash_aliases` - You need to have `.bash_aliases` on your `home` directory or just copy and paste the following to your .bashrc
>`alias update='./update.sh'`