Silent/Automated Homebrew install?


(Zach S) #1

Hello,

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?

Thanks,
Zach S


(Eric Knibbe) #2

You can pretend to be a CI bot:

CI=1 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

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