How to List All Homebrew Packages Installed on a Mac
Want to quickly see all Homebrew packages installed on a Mac? You may already know the path where Homebrew packages are installed to, but you don’t need to list a directory structure to get a list of Homebrew packages that have been installed in Mac OS.
Instead, you can issue a simple command to show a list of all Homebrew packages installed on a particular Mac. Additionally, you can issue a similar command to list all cask packages installed through Homebrew on the Mac too.
To be perfectly clear, we’re focusing on Homebrew packages that have already been installed on a particular Mac, not Homebrew packages that are simply available to install.
How to List All Homebrew Packages Installed on Mac
Homebrew includes a simple and convenient command to list all packages that have been installed through brew, the syntax is as follows:
brew list
Sample output may look something like the following, depending on what packages and their dependencies you have installed:
$ brew list
bash-completion gettext libidn2 pcre watch
cask glib libunistring pcre2 wget htop links python nmap irssi node smartmontools libffi openssl sqlite
You may have fewer or more brew packages installed, depending on your particular setup.
It can also be helpful to export the list of Homebrew packages that are installed into a text file, that can be done by redirecting the output of brew list into a plain text file like so:
brew list > homebrewpackages.txt
The output would be the same, but now its stored in the “homebrewpackages.txt” file which you could share with someone else or document for other purposes.
If you’re looking for some noteworthy packages, check out this list of some of the best Homebrew packages available for Mac users. If you’re a developer you might also be interested in getting node.js and nom along with installing the updated Python 3 package on a Mac.
How to List All Cask Homebrew Packages on Mac
The ‘brew list’ command covers just regular Homebrew packages, but you can also show a list of all cask packages too:
brew cask list
If you issue that command and nothing comes back, that simply means you have not installed any Mac apps through brew cask, which is not a terribly unusual situation as many Mac users just use Homebrew for command line tools and binaries and not for maintaining other Mac apps. Nonetheless cask remains a very popular method to easily install, maintain, and manage various Mac apps as well. It really just depends on the individual users particular setup.
As hinted in the introduction to this article, another method of finding what Homebrew packages are installed on a Mac by simply using the ls command to show where Homebrew packages are installed:
ls /usr/local/Cellar/
The output of that command will be every package installed through Homebrew, as they always end up in that directory by default.
How do I find what Homebrew packages are available to install?
Obviously we’re focusing on what Homebrew packages are currently installed on a Mac, but if you want a list of Homebrew packages that are available to install instead then you can use either of the following methods. The first approach uses a simple search command:
brew search
The output of ‘brew search’ will be every available Homebrew package that could be installed.
Or you can browse the brew formula page here for a full list of Homebrew packages that could theoretically be installed.
Do you know of other methods to get a list of all Homebrew packages installed on a Mac? Share your thoughts and experiences in the comments below!
i ask to you, if my OS can not update in OS High Sierra and I write brew list and there is
==> Formulae
ca-certificates
can i cek list a brew
$ brew bundle dump # lists every installed Formula & Cask, useful when trying to keep installed software of Macs in sync
Tried it and got:
brew list
-bash: brew: command not found
Did you install Homebrew from https://brew.sh ?
What is a Homebrew?
Homebrew is a software package manager for macOS (and, recently, also Linux), allowing you to access a lot of software that has already been prepared/patched to run flawlessly on whatever macOS version you might have.
It was originally designed to install free and open-source libraries and low-level packages typically used in Unix-like systems (such as Linux or FreeBSD), but these days it also installs complete Mac apps (so-called
casks
), both free and commercial. It automatically figures out dependencies, that is, if you wish to install package X, which requires Y to work, then Homebrew will automatically install Y as well. This all works automatically and you don’t need to worry if you have ‘everything’ you need.Homebrew runs mostly from the command line (inside the Terminal app), as opposed to the App Store, which is the built-in, official Mac-based application repository — which, however, only has a tiny, tiny fraction of what Homebrew has.
What does Homebrew Packages mean ?
have you heard of.
brew dump ?
I highly recommend
brew list | sort
as it turns their garbage output into a list, one item per line. Much easier visual grepping. :)
Also brew list -l