List All Packages Installed by Brew

Noah Jul 31, 2026

Ever found yourself wondering about the software packages installed via Homebrew (brew), the popular macOS package manager? You're not alone. As a developer or avid user, it's crucial to stay organized and know which packages are installed and taking up space on your system. Here's how you can list all packages installed by brew in a comprehensive manner that won't leave you staring blankly at your terminal.

an image of a computer screen with text
an image of a computer screen with text

Before we dive into the commands, let's clarify what Homebrew is for beginners. Homebrew is a free and open-source software package manager for macOS. It makes it easy for users to install software and libraries, keeping your system up-to-date and efficient. Now, let's get to the heart of the matter: listing installed packages.

Coffee brewing methods
Coffee brewing methods

Basic Commands for Listening Installed Packages

Homebrew provides several commands to list installed packages. Let's explore the two most common ones.

an employee form is shown in this file for employees to fill out their work hours
an employee form is shown in this file for employees to fill out their work hours

Using Lite Mode

Homebrew has a lite mode that displays only the package name and its current version. This command is perfect for a quick, clean overview:

The popular @ctrl/tinycolor package, downloaded over 2 million times per week, has been compromised along with over 40 other NPM packages in a sophisticated supply chain attack called 'Shai-Hulud.'
The popular @ctrl/tinycolor package, downloaded over 2 million times per week, has been compromised along with over 40 other NPM packages in a sophisticated supply chain attack called 'Shai-Hulud.'

```bash brew list ```

Here's how to read the output. Each line will present a package name followed by its version number. For example:

``` cairo @1.16.0 (uetooth) ... ```

Using Full Mode

If you need more detailed information about your installed packages, use the full mode. This command will show you additional details like the installed version, bottle version, and revision:

a list of different types of food items
a list of different types of food items

```bash brew list --verbose ```

The output will look like this:

``` zlib zlib 1.2.11_1 apple narrator=0x35c012b4 built_at _ _ _ ... ```

Filtering and Sorting Installed Packages

Now that you know the basics, let's explore some advanced filtering and sorting options to help you manage your packages more effectively.

three bottles of cold brew sitting on top of a refrigerator freezer filled with liquid
three bottles of cold brew sitting on top of a refrigerator freezer filled with liquid

Filtering by Name

You can filter the list of installed packages by name using the `grep` command. Here's how to find a specific package, say, `grep` itself:

the instructions for how to make a coffee cup and saucer with water on it
the instructions for how to make a coffee cup and saucer with water on it
Coffee Brew Guide
Coffee Brew Guide
a cooler filled with lots of bottles of cold brew sitting next to each other on top of ice
a cooler filled with lots of bottles of cold brew sitting next to each other on top of ice
7 Brew Mocha Guide: Best Flavors, Calories & Secret Customizations
7 Brew Mocha Guide: Best Flavors, Calories & Secret Customizations
a notepad that has been designed to look like a computer user's workbook
a notepad that has been designed to look like a computer user's workbook
7 Brew Menu 2026
7 Brew Menu 2026
a man is picking up cans of beer
a man is picking up cans of beer
an image of a computer screen with several people on it
an image of a computer screen with several people on it
Brewery profitability lesson: Keys for tracking and analyzing cost of goods sold (COGS)
Brewery profitability lesson: Keys for tracking and analyzing cost of goods sold (COGS)

```bash brew list | grep "grep" ```

Sorting Packages

If you want to sort your packages by name or version, you can pipe the output to the `sort` command:

```bash brew list | sort # or brew list --verbose | sort ```

You can also sort by the installed version number with:

```bash brew list --verbose | sort -k4 ```

Counting Installed Packages

Curious about how many packages you've installed? Use the `wc` command to count the lines in the output:

```bash brew list | wc -l ```

Uninstalling Packages

Now that you've seen how to list installed packages, let's discuss how to uninstall them. There are times when you might want to remove a package to free up space or because you're no longer using it.

Uninstalling Individual Packages

To uninstall a package, use the `brew uninstall` command. Here's how to uninstall `grep`, for example:

```bash brew uninstall grep ```

Before running this command, ensure you have another tool for performing the same task (like `apt` for Linux) to avoid losing functionality.

Uninstalling All Packages

If you're feeling adventurous or are ready to start fresh, you can uninstall all installed packages at once using the `Xcode` command:

```bash sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer sudo /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/sbin/pkg-manager --force --eval ```

The above command will remove all packages, so use it with caution.

And there you have it! You're now equipped to manage your Homebrew packages like a pro. Happy brewing!