Created
January 30, 2026 00:01
-
-
Save fabianoflorentino/9fe405848f18c5d29c37623bee60b652 to your computer and use it in GitHub Desktop.
A simple script to update system and homebrew on linux redhat based
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/sh | |
| set -e pipefail | |
| # Update system packages | |
| { | |
| sudo yum update -y && sudo yum upgrade -y | |
| } > /dev/null 2>&1 && echo "System packages updated." | |
| # Pause for a moment to ensure all processes complete | |
| sleep 3 | |
| # Update Homebrew packages | |
| { | |
| brew update && brew upgrade | |
| } > /dev/null 2>&1 && echo "Homebrew packages updated." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment