Regarding removal of homebrew

I removed (or uninstalled) homebrew from my laptop completely but I still keep seeing this line above the dollar sign on my terminal:

bash: /home/linuxbrew/.linuxbrew/bin/brew: No such file or directory

How do I remove it? Please and thank you.

You will likely need to remove any reference to Homebrew from either your ~/.bashrc or ~/.bash_profile files, or both.

1 Like
grep ".linuxbrew/bin/brew" ~/.*  

I got this output after running the command:

grep ".linuxbrew/bin/brew" ~/.*
/home/privurity/.bash_history:(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/privurity/.bashrc
/home/privurity/.bash_history:    eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
/home/privurity/.bash_history:grep ".linuxbrew/bin/brew" ~/.*
/home/privurity/.bashrc:eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
grep: /home/privurity/.cache: Is a directory
grep: /home/privurity/.cert: Is a directory
grep: /home/privurity/.config: Is a directory
grep: /home/privurity/.dvdcss: Is a directory
grep: /home/privurity/.gnome: Is a directory
grep: /home/privurity/.gnupg: Is a directory
grep: /home/privurity/.hplip: Is a directory
grep: /home/privurity/.icons: Is a directory
grep: /home/privurity/.jak: Is a directory
grep: /home/privurity/.librewolf: Is a directory
grep: /home/privurity/.links: Is a directory
grep: /home/privurity/.local: Is a directory
grep: /home/privurity/.lyrics: Is a directory
grep: /home/privurity/.mozilla: Is a directory
grep: /home/privurity/.npm: Is a directory
grep: /home/privurity/.openjfx: Is a directory
grep: /home/privurity/.pki: Is a directory
grep: /home/privurity/.putty: Is a directory
grep: /home/privurity/.themes: Is a directory
grep: /home/privurity/.tldr: Is a directory
grep: /home/privurity/.var: Is a directory

And what does it tell you? Hint: Read my previous post.

Open that file
/home/privurity/.bashrc
in an editor and remove or comment out that line
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

1 Like

I removed this line eval “$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)” from .bashrc.
Thank you.

Most welcome.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.