Updating packages on your Macintosh machine is easy. Run the ‘brew update’ command to check for package updates.
(04:37 pm)~ $> brew update Updated 2 taps (homebrew/core and homebrew/cask). ==> New Formulae biome libimobiledevice-glue orcania tailwindcss web-ext helidon libmapper postgresql@16 uffizzi yder ==> New Casks ava batteryboi chainner clinq cloudnet expo-orbit mutedeck playdate-mirror reqable spundle twelite-stage ==> Outdated Formulae bdw-gc ghostscript htop json-c libpcap luajit-openresty rtmpdump c-ares git imagemagick libevent libpq ncurses tcl-tk cmocka gnu-getopt jbig2dec libffi libpthread-stubs nghttp2 gettext gobject-introspection jemalloc libomp librist openssl@1.1 You have 26 outdated formulae installed. You can upgrade them with brew upgrade or list them with brew outdated. |
If there are required updates, install them by running ‘brew upgrade’.
()deusexmachina.local-_ (04:38 pm)~ $> brew upgrade ==> Upgrading 26 outdated packages: json-c 0.16 -> 0.17 nghttp2 1.43.0 -> 1.56.0 ncurses 6.3 -> 6.4 ghostscript 10.01.2 -> 10.02.0 gnu-getopt 2.37.4 -> 2.39.2 rtmpdump 2.4+20151223_1 -> 2.4-20151223_3 cmocka 1.1.5 -> 1.1.7 jemalloc 5.2.1_1 -> 5.3.0 bdw-gc 8.2.2 -> 8.2.4 c-ares 1.17.1 -> 1.19.1 gobject-introspection 1.78.0 -> 1.78.1 libpthread-stubs 0.4 -> 0.5 htop 3.1.2 -> 3.2.2 librist 0.2.7_2 -> 0.2.7_3 gettext 0.21.1 -> 0.22.2 luajit-openresty 2.1-20220310 -> 2.1-20230911 tcl-tk 8.6.13 -> 8.6.13_5 jbig2dec 0.19 -> 0.20 libpq 15.4 -> 16.0 libevent 2.1.12 -> 2.1.12_1 openssl@1.1 1.1.1s -> 1.1.1w libomp 16.0.6 -> 17.0.1 imagemagick 7.1.1-15_1 -> 7.1.1-17 git 2.39.1 -> 2.42.0 libffi 3.4.2 -> 3.4.4 libpcap 1.10.1 -> 1.10.4 |
This will keep your system up to date. This is very simple.
To install a package, run this command. ‘brew install <PACKAGE>’.
()deusexmachina.local-_ (04:41 pm)~ $> brew install bc ==> Downloading https://ghcr.io/v2/homebrew/core/bc/manifests/1.07.1-1 ########################################################################################################################################################################################################### 100.0% ==> Fetching bc ==> Downloading https://ghcr.io/v2/homebrew/core/bc/blobs/sha256:2fc0ecea74ea0352ecf94eb4b98a364b726ac33051a3d8bf497f56c69f5b34ac ########################################################################################################################################################################################################### 100.0% ==> Pouring bc--1.07.1.monterey.bottle.1.tar.gz ==> Caveats bc is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble. If you need to have bc first in your PATH, run: echo 'export PATH="/usr/local/opt/bc/bin:$PATH"' >> /Users/jason/.bash_profile ==> Summary 🍺 /usr/local/Cellar/bc/1.07.1: 14 files, 408.0KB ==> Running `brew cleanup bc`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). ()deusexmachina.local-_ (04:43 pm)~ $> |
List all package dependencies for VIM.
()deusexmachina.local-_ (04:47 pm)~ $> brew deps vim berkeley-db ca-certificates gdbm gettext libsodium libyaml lua mpdecimal ncurses openssl@3 perl python@3.11 readline ruby sqlite xz |
Use the command ‘brew list’ to list all installed packages. The command ‘brew info’ will print information about your current Homebrew package status.
()deusexmachina.local-_ (04:52 pm)~ $> brew info 188 kegs, 73,871 files, 2GB |