GitHub - ericrasch/BrewFile: easily install software you use on your macOS · GitHub
Skip to content
ericraschPublic
forked from LadyKerr/BrewFile

About

easily install software you use on your macOS

Resources

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

✨ Automate macOS Setup with a Brewfile ✨

Easily install and configure your essential macOS applications and software with Homebrew and a Brewfile.

A Brewfile is a simple text file that lists all the Homebrew commands needed to install specific software, making it easy to automate new machine setups.


🚀 Step 1: Create Your Brewfile

Start by creating a Brewfile. Be sure to include this command to enable Homebrew Bundle:

brew tap homebrew/bundle

For a reference, you can check out my Brewfile here: my brewfile

Set Applications to Install in /Applications

To ensure all Cask applications install into /Applications instead of ~/Applications, add this at the top of your Brewfile:

cask_args appdir: "/Applications"

This ensures a system-wide install, keeping all your apps in a consistent location.


🛠 Step 2: Install Homebrew

If you haven't already installed Homebrew, do so by running this command in your terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

After installation, make sure everything is up to date:

brew update

🎩 Step 3: Run Your Brewfile

Once Homebrew is installed, run the following command in the directory where your Brewfile is located:

brew bundle

This will:

  • Install all brew packages (command-line tools)
  • Install all cask applications (GUI apps)
  • Install all mas apps (Mac App Store apps)
  • Install all VS Code extensions (if listed)

🔄 Bonus: Managing Your Installed Apps

To keep everything updated and clean, you can run the following commands:

Update Installed Packages

brew update && brew upgrade

Upgrade Mac App Store (MAS) Apps

mas upgrade

Clean Up Unused Dependencies

brew autoremove

Uninstall Everything Not in Your Brewfile

This removes anything installed via Homebrew that is not explicitly listed in your Brewfile:

brew bundle cleanup

🎉 You're All Set!

If everything runs without errors, your macOS machine is now set up with all your essential apps. Enjoy! 🎺🚀

About

easily install software you use on your macOS

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages