Silent/Automated Homebrew install?

(Zach S) #1


I am trying to get homebrew installed remotely on a machine without a terminal open and without ssh access to the machine. Our company uses a Directory-as-a-Service which allows us to remotely push shell scripts to our computers which is great, but it requires the scripts to have no interactivity.

Is there a way to automate the installer and remove the “Press enter to continue” prompt in the install process?

Zach S

(Eric Knibbe) #2

You can pretend to be a CI bot:

CI=1 /usr/bin/ruby -e "$(curl -fsSL"

You’ll still have to account for when the script calls sudo by first ensuring Developer Tools are installed and /usr/local exists, though.