Skip to content

Why is it so hard to install old versions of homebrew-core packages? #155

Discussion options

You must be logged in to vote

I have made a brew-switch function that you can add to your ~/.zshrc that will download any version of any core formula.

It works by:

  1. searching commits in the Homebrew/homebrew-core repo for the most recent one that contains the name of your formula and the requested version
  2. downloading the <formula>.rb file from that commit
  3. using brew install ./<formula>.rb to install the file locally
  4. running brew pin <formula> to stop brew upgrade from messing with it

Usage

The general usage is:

brew-switch <formula> <version>

For example, to install version 2.8.6 of the argocd formula:

brew-switch argocd 2.8.6

Install

1. Dependencies

# install github command line
brew install gh

# authenticate with …

Replies: 12 comments 60 replies

Comment options

You must be logged in to vote
10 replies
@SMillerDev
Comment options

@iMichka
Comment options

@KJTsanaktsidis
Comment options

@SMillerDev
Comment options

@jzwolak
Comment options

Comment options

You must be logged in to vote
9 replies
@gromgit
Comment options

@SourceNode
Comment options

@gromgit
Comment options

@al42and
Comment options

@thesuperzapper
Comment options

Comment options

You must be logged in to vote
1 reply
@hexsel
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@jiasli
Comment options

@carlocab
Comment options

@jiasli
Comment options

@carlocab
Comment options

@jiasli
Comment options

Comment options

You must be logged in to vote
2 replies
@SMillerDev
Comment options

@carlocab
Comment options

Comment options

You must be logged in to vote
7 replies
@SMillerDev
Comment options

@gromgit
Comment options

@KJTsanaktsidis
Comment options

@2a5A1Ghu1
Comment options

@SMillerDev
Comment options

Comment options

You must be logged in to vote
4 replies
@2a5A1Ghu1
Comment options

@osalbahr
Comment options

@2a5A1Ghu1
Comment options

@MikeMcQuaid
Comment options

Comment options

You must be logged in to vote
6 replies
@MikeMcQuaid
Comment options

@tyteen4a03
Comment options

@MikeMcQuaid
Comment options

@thesuperzapper
Comment options

@thesuperzapper
Comment options

Comment options

You must be logged in to vote
8 replies
@MikeMcQuaid
Comment options

@thesuperzapper
Comment options

@MikeMcQuaid
Comment options

@huyhandes
Comment options

@fadillicious
Comment options

Answer selected by tyteen4a03
Comment options

You must be logged in to vote
1 reply
@MikeMcQuaid
Comment options

Comment options

You must be logged in to vote
2 replies
@osalbahr
Comment options

@MikeMcQuaid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet