Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/homebrew/install
📥 Homebrew (un)installer
https://github.com/homebrew/install
homebrew install ruby
Last synced: 5 days ago
JSON representation
📥 Homebrew (un)installer
- Host: GitHub
- URL: https://github.com/homebrew/install
- Owner: Homebrew
- License: bsd-2-clause
- Created: 2014-08-31T17:48:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T18:52:55.000Z (2 months ago)
- Last Synced: 2024-10-29T12:25:30.921Z (about 2 months ago)
- Topics: homebrew, install, ruby
- Language: Shell
- Homepage: https://brew.sh
- Size: 843 KB
- Stars: 2,181
- Watchers: 78
- Forks: 1,017
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Homebrew (un)installer
## Install Homebrew (on macOS or Linux)
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```More installation information and options: .
If you're on macOS, try out our new `.pkg` installer. Download it from [Homebrew's latest GitHub release](https://github.com/Homebrew/brew/releases/latest).
If you are running Linux or WSL, [there are some pre-requisite packages to install](https://docs.brew.sh/Homebrew-on-Linux#requirements).
You can set `HOMEBREW_NO_INSTALL_FROM_API` to tap Homebrew/homebrew-core; by default, it will not be tapped as it is no longer necessary.
You can set `HOMEBREW_BREW_GIT_REMOTE` and/or `HOMEBREW_CORE_GIT_REMOTE` in your shell environment to use geolocalized Git mirrors to speed up Homebrew's installation with this script and, after installation, `brew update`.
```bash
export HOMEBREW_BREW_GIT_REMOTE="..." # put your Git mirror of Homebrew/brew here
export HOMEBREW_CORE_GIT_REMOTE="..." # put your Git mirror of Homebrew/homebrew-core here
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```The default Git remote will be used if the corresponding environment variable is unset.
If you want to run the Homebrew installer non-interactively without prompting for passwords (e.g. in automation scripts), you can use:
```bash
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```## Uninstall Homebrew
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
```If you want to run the Homebrew uninstaller non-interactively, you can use:
```bash
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
```If you want to to uninstall Homebrew from a specific prefix (e.g. when migrating from Intel to Apple Silicon processors), download the uninstall script and run it with `--path`:
```
curl -fsSLO https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh
/bin/bash uninstall.sh --path /usr/local
```Run the downloaded script with `/bin/bash uninstall.sh --help` to view more uninstall options.