23, Oct 2026 RSS feed ↗

How to Install Brew on CentOS

What is Brew (Homebrew)?

Homebrew, also known as brew, is a package manager for macOS, but it can also be installed on Linux distributions like CentOS. A package manager is a tool that makes it easier to install, update, and manage software on a system. With Homebrew, you can install software packages and their dependencies with just a few commands, saving time and effort compared to manual installation methods. Homebrew maintains a large repository of packages that you can browse and search to find the software you need. In addition to being easy to use, Homebrew is also highly customizable, allowing you to tailor its behavior to meet your specific needs. Overall, Homebrew is a popular package manager for macOS and a growing number of Linux distributions, offering a fast and convenient way to manage software on your system.

How to Install Brew on CentOS

Here's how to install Homebrew on CentOS:

  1. First, update your system by running the following command in a terminal:
sudo yum update
  1. Then, install the required dependencies by running the following command:
sudo yum install git
  1. Next, clone the Homebrew repository from GitHub using the following command:
git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
  1. After cloning the repository, add the Homebrew bin directory to your PATH by adding the following line to your .bashrc file:
export PATH="$HOME/.linuxbrew/bin:$PATH"
  1. Finally, source the .bashrc file by running the following command:
source ~/.bashrc

Once you have completed these steps, you can start using Homebrew on CentOS by running the brew command in the terminal. To install packages using Homebrew, simply run brew install <package-name>, where <package-name> is the name of the package you want to install.

Note: Homebrew is not an officially supported package manager for CentOS, and using it may result in compatibility issues or other unexpected problems. Consider using a package manager that is specifically designed for CentOS, such as yum, if possible.

E

Evren E.

Evren Elveren is the founder of LinuxHospital, iPhonePost, iPhonePedia, CasinoPost, SongArea, SongLyrics.band and LyricsKid. An entrepreneur active in online publishing and digital projects since 2006, he brings a publisher's perspective to the way technology, entertainment and online businesses develop. His background in architecture informs his interest in design, usability and the small details that make a product or website work well. Evren writes about consumer technology, Linux, digital finance and music, connecting product announcements with their wider business and cultural context. Across the network, his editorial focus is on clear explanations, useful comparisons and practical information that helps readers understand a change before deciding what to do next.

More from this author →