Giter Club home page Giter Club logo

Comments (8)

SMillerDev avatar SMillerDev commented on July 17, 2024 3

The recommended way to keep packages the same between macs is using brew bundle, which makes all steps redundant.

from install.

osalbahr avatar osalbahr commented on July 17, 2024 1

[…], should I modify my .zshrc with some PATH modification or what is right way?

The recommended way is to add eval "$(/opt/homebrew/bin/brew shellenv)" to your ~/.zshrc.

For reference:

install/install.sh

Lines 1044 to 1046 in 3d2b88b

- Run these two commands in your terminal to add Homebrew to your ${tty_bold}PATH${tty_reset}:
(echo; echo 'eval "\$(${HOMEBREW_PREFIX}/bin/brew shellenv)"') >> ${shell_rcfile}
eval "\$(${HOMEBREW_PREFIX}/bin/brew shellenv)"

from install.

dolmen avatar dolmen commented on July 17, 2024

To recover a list of the Homebrew packages which installed a binary into /usr/local/bin:

$ ls -l /usr/local/bin | sed -n '/Cellar/ s!^.*/Cellar/\([^/]*\)/.*!\1!p' | sort -u

Edit: better

$ ls /usr/local/Cellar
$ ls /usr/local/Caskroom

from install.

iMichka avatar iMichka commented on July 17, 2024

Is there still something actionable on our side? Is a documentation update still necessary?

It's the first complaint we get about that lack of documentation (thanks by the way :)), so I am wondering how much effort we should put into this.

from install.

dolmen avatar dolmen commented on July 17, 2024

I think that the fact that the uninstaller doesn't work in the arch migration case is very confusing. When you have a broken Homebrew install, the last recourse is to cleanup everything and restart from fresh, but in the migration case that doesn't work as the uninstaller is locked on the current system arch. This failure is adding insult to injury.

I know that even if someone was writing a migration tool (I would be tempted to do it for my own usage, but it is just short term), no one would be interested in maintaining it, so that would only lead to more pain for users.

So, it would be appreciated to have:

  • tooling to cleanup Homebrew whether it is installed into /usr/local/bin or /opt/homebrew independently of the native arch (that might be just shell commands documented in the README)
  • instructions in README or FAQ to document that tooling and link to the use cases (What to do in case of "Bad CPU type in executable"?)

With some guidance about where to submit changes and in which format, I could submit some of the changes myself.

from install.

SMillerDev avatar SMillerDev commented on July 17, 2024

I think that the fact that the uninstaller doesn't work in the arch migration case is very confusing.

By default it uninstalls the default Homebrew, https://github.com/Homebrew/install?tab=readme-ov-file#uninstall-homebrew suggests running it with --help though. That shows how to "cleanup Homebrew whether it is installed into /usr/local/bin or /opt/homebrew independently of the native arch"

from install.

MikeMcQuaid avatar MikeMcQuaid commented on July 17, 2024

By default it uninstalls the default Homebrew, https://github.com/Homebrew/install?tab=readme-ov-file#uninstall-homebrew suggests running it with --help though. That shows how to "cleanup Homebrew whether it is installed into /usr/local/bin or /opt/homebrew independently of the native arch"

I could see an argument that some of the uninstall options could be spelled out in the README so am rescoping this issue to that goal.

from install.

zhisme avatar zhisme commented on July 17, 2024

I have run on the same issue.

rm -rf /usr/local/bin/brew
rm -rf /opt/homebrew/*
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

and then reinstall and run

eval "$(/opt/homebrew/bin/brew shellenv)"

and this requires me to run the command above each time I open new terminal session, should I modify my .zshrc with some PATH modification or what is right way?

from install.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.