Skip to content

Instantly share code, notes, and snippets.

@lctrcl
Last active November 9, 2020 13:46
Show Gist options
  • Save lctrcl/c37f7fcdb1488b075af12446d0ca4e79 to your computer and use it in GitHub Desktop.
Save lctrcl/c37f7fcdb1488b075af12446d0ca4e79 to your computer and use it in GitHub Desktop.

Different ways to update your software on OSX (MacOS)

AppStore/System updates

softwareupdate -i -a

Homebrew update, upgrade and cleanup

brew update && brew upgrade && brew cleanup

Homebrew - update packages that were build with --HEAD option

brew info --json=v1 --installed | jq '.[] | .name + " " + .installed[].version' | grep HEAD | sed 's/"//g' | awk '{print $1}' | xargs brew reinstall

Microsoft office updates

open -a /Library/Application\ Support/Microsoft/MAU2.0/Microsoft\ AutoUpdate.app

upgrade your metasploit (from git)

msfupdate

upgrade your pip packages

pip freeze --local | vipe | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U

recursively update git repos from current folder

find . -name .git -type d -exec realpath {} \; | sed 's/....$//' | xargs -P10 -I{} git -C {} pull | grep -v 'Already up-to-date'

find go package updates, rebuild already installed

go-package-store gorebuild

ruby

gem update

pull latest docker images

for i in $(docker images | sed 1d | awk '{print $1}'); do;
docker pull "$i"
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment