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

How to Install Deleted Formulas After a Brew Upgrade #5688

Closed
ghost opened this Issue Feb 7, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@ghost
Copy link

ghost commented Feb 7, 2019

I didn't see any instructions on how to install formulae deleted during brew upgrade formula in the FAQ and maintainers seem intent at pointing others to the man page I thought I'd do the honors of simplifying what 1854 people have upvoted on SO:

FORMULA=hugo && \
COMMIT=2aedd26426 && \
RAW_PATH=https://raw.githubusercontent.com/Homebrew/homebrew-core && \
brew unlink ${FORMULA} && \
brew install ${RAW_PATH}/${COMMIT}/Formula/${FORMULA}.rb

Where hugo is the name of your formula and 2aedd26426 is the commit hash of the version you want to install based on commit history in homebrew-core.

@ghost ghost closed this Feb 7, 2019

@MikeMcQuaid

This comment has been minimized.

Copy link
Member

MikeMcQuaid commented Feb 7, 2019

@jhabdas Please do not:

  • create issues and immediately close them
  • create issues to continue discussion of locked issues
  • ignore our issue template
  • post with a snarky tone

or you will find yourself blocked from creating issues in future.

Note that your approach above will fail over time as formulae DSL are deprecated, build fixes are needed and URLs no longer resolve. That is why I mentioned using brew extract before in your previous issue: did you try using that?

@lock lock bot added the outdated label Mar 9, 2019

@lock lock bot locked as resolved and limited conversation to collaborators Mar 9, 2019

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.