How To Install HomeBrew on AlmaLinux 8

In this article, we want to teach you How To Install HomeBrew on AlmaLinux 8.

Homebrew (brew) is a free and open-source package manager that allows installing apps and software in macOS, depending on the user’s desire.

It has been recommended for its simplicity and effectiveness in saving time and effort. Its famous description is “The missing package manager for macOS”.

How To Install HomeBrew on AlmaLinux 8

Before you start to install Homebrew on AlmaLinux 8, you need to log in to your server as a non-root user with sudo privileges. To do this, you can follow our article the Initial Server Setup with AlmaLinux 8.

Now follow the steps below to complete this guide.

Set up HomeBrew on AlmaLinux 8

First, you need to update your local package index with the following command:

sudo dnf update -y

Then, you need to install Git on AlmaLinux 8:

sudo dnf install git -y

Next, you need to download the HomeBrew installer script on AlmaLinux 8 by using the curl command:

/bin/bash -c "$(sudo curl -fsSL"

This command will take some time to complete.

When your Homebrew installation on AlmaLinux 8 is completed, you need to add the Brew command to the system path. To do this, you can run the following commands:

# echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/olivia/.bash_profile
# eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

The eval command is used to execute the arguments as a shell command on UNIX or Linux systems.

Then, you need to install Development tools with the following command:

sudo yum groupinstall 'Development Tools'

Now run the brew help to get started the Homebrew on AlmaLinux 8:

brew help
Example usage:
brew search TEXT|/REGEX/
brew info [FORMULA|CASK...]
brew install FORMULA|CASK...
brew update
brew upgrade [FORMULA|CASK...]
brew uninstall FORMULA|CASK...
brew list [FORMULA|CASK...]

brew config
brew doctor
brew install --verbose --debug FORMULA|CASK

brew create URL [--no-fetch]
brew edit [FORMULA|CASK...]

Further help:
brew commands
brew help [COMMAND]
man brew

To verify that Homebrew is working correctly on AlmaLinux 8, run the following command:

brew doctor
Your system is ready to brew.

For more information, you can visit the Homebrew documentation page.

Uninstall HomBrew

To uninstall Hombrew from your server, you can download the “uninstall” script to your server and run it:

curl -fsSL -o

After reviewing the script contents, run this script to uninstall Homebrew:



At this point, you learn to Install Homebrew on AlmaLinux 8.

Hope you enjoy it.

Related Articles


Please enter your comment!
Please enter your name here

Latest Articles


Most Popular