Sunday, February 27, 2022

[SOLVED] Install multiple homebrew formulas at the same time

Issue

You can install multiple homebrew formulas by brew install package1 package2. But if you have a text file with all the packages that you would like to install. How would you do it?

brew install < packages.txt doesn't work. It gives me the response: This command requires a formula argument


Solution

Like this:

brew install $(cat packages.txt)

or even just

brew install $(<packages.txt)


Answered By - Mark Setchell
Answer Checked By - Katrina (WPSolving Volunteer)