Score:0

Homebrew getting uninstalled automatically

as flag

I am installing properly Homebrew in my ubuntu 22.04 and everything is fine brew doctor, brew --version everything is running properly. But everytime I am rebooting my system, the homebrew is getting uninstalled I dont know why this is happening. Please someone suggest a solution

muru avatar
us flag
Cross-posted: https://unix.stackexchange.com/q/725786/70524
user535733 avatar
cn flag
Is this a new install? Does anything else disappear upon rebooting?
Score:0
li flag

Homebrew does not uninstall itself. Your issue is probably the following:

$ brew --version
bash: brew: command not found

You can verify that it still exists as follows:

$ /home/linuxbrew/.linuxbrew/bin/brew --version
Homebrew 4.1.1

You can run brew without writing the full path by adding "$(brew --prefix)"/bin (/home/linuxbrew/.linuxbrew/bin/) in PATH. You can do so by running the eval command:

$ brew --version
bash: brew: command not found
$ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
$ brew --version
Homebrew 4.1.1

The eval command can be found under "Next steps" when running the install script. If you are using bash, you may want to add the command to your .bashrc (or .bash_profile for login shells):

echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> .bashrc

Related:

StackOverflow: Installing Homebrew on macOS

Homebrew (discussions): "brew: command not found" after installation #775

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.