Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Homebrew if it's not installed #61

Open
2 tasks
buresdv opened this issue Mar 19, 2023 · 2 comments
Open
2 tasks

Install Homebrew if it's not installed #61

buresdv opened this issue Mar 19, 2023 · 2 comments
Assignees
Labels
Enhancement New feature or request

Comments

@buresdv
Copy link
Owner

buresdv commented Mar 19, 2023

This will probably be very difficult.

Things to consider:

  • How to elevate permissions to admin without using sudo (Brew complains if you use sudo)
  • How to handle user input to the install process
@buresdv buresdv self-assigned this Mar 19, 2023
@buresdv buresdv added the Enhancement New feature or request label Mar 19, 2023
@buresdv
Copy link
Owner Author

buresdv commented Mar 19, 2023

There seems to be a solution to user input, and that is using unattended installation. This can be accomplished by using the NONINTERACTIVE variable:
NONINTERACTIVE=1 ruby -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

@buresdv
Copy link
Owner Author

buresdv commented Mar 19, 2023

There are still two commands that need to be executed after the installation process is finished:

  • (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/(user)/.zprofile
  • eval "$(/opt/homebrew/bin/brew shellenv)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
Status: Paused
Development

No branches or pull requests

1 participant