π§ Installing requirements
Like described on docs.brew.sh/Homebrew-on-Linux.
For Debian or Ubuntu:
sudo apt install -y build-essential procps curl file git
For Fedora, CentOS, or Red Hat:
sudo yum groupinstall 'Development Tools'
sudo yum install procps-ng curl file git
sudo yum install libxcrypt-compat # needed by Fedora 30 and up
πΊ Installing brew
Execute the following one from your fish
shell:
sudo curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh \
| bash
Then that one which will update your config.fish
:
eval (/home/linuxbrew/.linuxbrew/bin/brew shellenv)
echo 'eval (/home/linuxbrew/.linuxbrew/bin/brew shellenv)' \
>> ~/.config/fish/config.fish
π» Installing packages with brew
Now you should be able to install things with brew
like that:
brew install hello
Running hello
should print the following:
Hello, world!
Nice! But one more thing π§ The creators recommend to have gcc
installed, so lets fix this:
brew install gcc
Done! Have fun with brew
πΊπ
Top comments (0)