docs/FAQ: ensure homebrew/core is downloaded

This commit is contained in:
Eric Knibbe 2023-09-05 00:38:31 -04:00
parent 6dfacae5d2
commit a63cee48e3
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168

View File

@ -88,16 +88,6 @@ If available, bottled binaries will be used by default except under the followin
We aim to bottle everything.
## How do I get a formula from someone elses pull request?
```sh
brew install hub
brew update
cd "$(brew --repository homebrew/core)"
hub fetch github_username
hub pr checkout pull_request_number
```
## Why should I install Homebrew in the default location?
Homebrew's pre-built binary packages (known as [bottles](Bottles.md)) of many formulae can only be used if you install in the default installation prefix, otherwise they have to be built from source. Building from source takes a long time, is prone to failure, and is not supported. The default prefix is:
@ -158,6 +148,18 @@ Yes! Its easy! If you already have a local copy of `homebrew/core` (see above
If you want your new formula to be part of `homebrew/core` or want to learn more about writing formulae, then please read the [Formula Cookbook](Formula-Cookbook.md).
## How do I get a formula from someone elses pull request?
Ensure you have a [local copy of `homebrew/core`](#can-i-edit-formulae-myself), then:
```sh
brew update
brew install hub
cd "$(brew --repository homebrew/core)"
hub fetch github_username
hub pr checkout pull_request_number
```
## Why was a formula deleted or disabled?
Use `brew log <formula>` to find out! Likely because it had [unresolved issues](Acceptable-Formulae.md) and/or [our analytics](https://formulae.brew.sh/analytics/) indicated it was not widely used.