Skip to content
Discussion options

You must be logged in to vote

We ended up recommending this approach:

OLD_TAP_PREFIX=mycorp/brewhouse
NEW_TAP_PREFIX=my-corp/brew-house
NEW_TAP_URL=git@github.com:my-corp/homebrew-brew-house.git

# get a list of packages installed on the old tap
declare -a pkgs=($(brew list --full-name | grep $(brew tap | grep ${OLD_TAP_PREFIX})))
# uninstall them
brew uninstall --force ${pkgs[*]}
# tap the new one, use --custom-remote to overwrite the URL
# if they already have it tapped so that *this cannot fail*
brew tap --custom-remote ${NEW_TAP_PREFIX} ${NEW_TAP_URL}
# 5.1.15+ requires this now?
brew trust ${NEW_TAP_PREFIX}
# install each previously installed package from the new tap using the new tap's full-name package
brew ins…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by colindean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant