Skip to content

Instantly share code, notes, and snippets.

@judy2k
Created July 23, 2025 10:25
Show Gist options
  • Save judy2k/c439633a6fab5ad57b2f0f86f23df78c to your computer and use it in GitHub Desktop.
Save judy2k/c439633a6fab5ad57b2f0f86f23df78c to your computer and use it in GitHub Desktop.
List installed homebrew packages.
#!/bin/sh
# This script prints out the packages that have been installed by homebrew,
# along with a description of each package.
#
# This doesn't include packages that were installed as dependencies,
# only packages requested explicitly by the user.
#
# This script requires the following packages: jq, qsv
set -euo pipefail
brew info --installed --json | jq --raw-output "map(
select(.installed.[].installed_on_request == true)
| {name, desc})
" | qsv json | tail -n +1 | qsv table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment