Migrate macOS apps with Homebrew
Export and import macOS applications using Homebrew and Brewfile.
Homebrew, also known as Brew, is a great way to install and manage software on macOS. Managing Brewfile in a repository allows you to easily export and import your installed applications.
Here is how to migrate your macOS applications from one Mac to another using Homebrew and a Brewfile.
Step 1: Export Brewfile from existing Mac
On your current Mac, run the following:
shell
brew bundle dump --describe --file=~/BrewfileThis command creates a Brewfile in your home directory, listing all installed Homebrew packages and casks.
Step 2: Transfer Brewfile to new Mac
Copy the Brewfile to your new Mac using AirDrop, USB drive, or cloud storage.
Step 3: Import Brewfile on new Mac
On your new Mac, run the following command to install all apps listed in the Brewfile:
shell
brew bundle install --file=~/BrewfileThis command reads the Brewfile and installs all specified applications and packages.
Additional tips
- Delete unnecessary apps from the
Brewfilebefore importing on the new Mac. - For Alfred users, the Homebrew Search workflow can help find and install apps quickly.
- Regularly update your
Brewfileto keep track of installed applications.