Skip to content

Instantly share code, notes, and snippets.

@fabianoflorentino
Created January 30, 2026 00:01
Show Gist options
  • Select an option

  • Save fabianoflorentino/9fe405848f18c5d29c37623bee60b652 to your computer and use it in GitHub Desktop.

Select an option

Save fabianoflorentino/9fe405848f18c5d29c37623bee60b652 to your computer and use it in GitHub Desktop.
A simple script to update system and homebrew on linux redhat based
#!/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