How to Install Homebrew on Ubuntu 20.04

Install Homebrew on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Homebrew on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Homebrew is one of the popular package managers for macOS, on Linux, it is known as Linuxbrew. This allows us to install other applications by just executing a command. Something that many users of this system appreciate. However, it also has a version for Linux easy to install and use. Homebrew installs the programs in /usr/local and then makes a symbolic link to the binary folder. This means that it does not require sudo and does not affect the system.

Homebrew Features

  • Can install software to your home directory and so does not require sudo
  • Install software not packaged by your host distribution.
  • Install up-to-date versions of software when your host distribution is old.
  • Use the same package manager to manage your macOS, Linux, and Windows systems.

Install Homebrew on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade
sudo apt install build-essential procps curl file git

Step 2. Install Homebrew on Ubuntu system.

Download and install Homebrew installation script:

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

After the installation brew is complete, Now need to add it to our system path:

eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

Step 3. Testing Homebrew on Linux.

To ensure everything is working correctly to use brew, we can run its command:

brew doctor

With Homebrew you can install many useful programs, to have a complete list run:

brew search

Install Homebrew on Ubuntu 20.04

That’s all you need to do to install Install Homebrew on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on Install Homebrew, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.