install brew debian 1

install brew debian

#Make sure you have curl installed: sudo apt install curl

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)"
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
test -r ~/.bash_profile && echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >>~/.bash_profile
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >>~/.profile

#That's it! Test it by running: 
brew install hello

Here is what the above code is Doing:
1. The first line is a shebang. It tells the shell what program to use to run the script.
2. The second line is a comment. It’s ignored by the shell.
3. The third line is a command. It tells the shell to run the command curl with the arguments -fsSL.
4. The fourth line is a command. It tells the shell to run the command test with the arguments -d ~/.linuxbrew.
5. The fifth line is a command. It tells the shell to run the command eval with the arguments “$(~/.linuxbrew/bin/brew shellenv)”.
6. The sixth line is a command. It tells the shell to run the command test with the arguments -d /home/linuxbrew/.linuxbrew.
7. The seventh line is a command. It tells the shell to run the command eval with the arguments “$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)”.
8. The eighth line is a command. It tells the shell to run the command test with the arguments -r ~/.bash_profile.
9. The ninth line is a command. It tells the shell to run the command echo with the arguments “eval \”\$($(brew –prefix)/bin/brew shellenv)\”” >>~/.bash_profile.
10. The tenth line is a command. It tells the shell to run the command echo with the arguments “eval \”\$($(brew –prefix)/bin/brew shellenv)\”” >>~/.profile.

Similar Posts