Skip to content

Instantly share code, notes, and snippets.

@leviathan
Last active March 22, 2022 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leviathan/d936dedfa0334f7973ead4805bc07700 to your computer and use it in GitHub Desktop.
Save leviathan/d936dedfa0334f7973ead4805bc07700 to your computer and use it in GitHub Desktop.
Cheat sheet: homebrew

Show Terminal config variables

$ env
TERM_PROGRAM=Apple_Terminal
SHELL=/usr/local/bin/zsh
TERM=xterm-256color
TMPDIR=/var/folders/l4/kb9wf5dn5g31y8ctr6fj_f9c0000gn/T/
...

Show config:

foo@bar:~$ brew config            
HOMEBREW_VERSION: 2.1.11
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 37714b5ce1e4909d4d61de2af98343c7012f7cd9
Last commit: 13 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: f55e68792a93ae7507633e53db1336236523345d
Core tap last commit: 13 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit skylake
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1000
Git: 2.23.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_71
macOS: 10.14.6-x86_64
CLT: 11.0.0.0.1.1559496560
Xcode: 10.1 => /Applications/Xcode_10.1.app/Contents/Developer
CLT headers: 11.0.0.0.1.1559496560
XQuartz: 2.7.11 => /opt/X11

Homebrew Cask

// Upgrade all casks with version information
$> brew upgrade --cask

// Upgrade all casks without version info
$> brew upgrade --cask --greedy

// Show all outdated casks
$> brew outdated --cask --greedy --verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment