Last active
July 2, 2023 18:40
-
-
Save josephmidura/807770766aeb37b9cc3897e26f870210 to your computer and use it in GitHub Desktop.
This is the script I used in my post here: https://josephmidura.wordpress.com/2021/07/03/updating-homebrew-on-macos/
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
#!/bin/bash | |
# Light blue looks good with my current colorscheme | |
TEXTCOLOR='\033[1;34m' | |
# Update homebrew, and local base of available packages and versions | |
printf "${TEXTCOLOR}Updating homebrew and local base of available packages and | |
versions...\n" | |
brew update | |
# Install new versions of outdated packages | |
printf "${TEXTCOLOR}Upgrading outdated homebrew packages...\n" | |
brew upgrade | |
# Cache cleanup of unfinished downloads | |
printf "${TEXTCOLOR}Cleaning cache of unfinished downloads...\n" | |
brew cleanup | |
# Show problems if any | |
printf "${TEXTCOLOR}Checking for issues...\n" | |
brew doctor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment