Created
July 23, 2025 10:25
-
-
Save judy2k/c439633a6fab5ad57b2f0f86f23df78c to your computer and use it in GitHub Desktop.
List installed homebrew packages.
This file contains hidden or 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/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