Guide: Install Brew on Ubuntu – Guide

Homebrew is a popular package manager for Mac OS X, and can also be installed on Linux to download and install various packages. Homebrew Cask extends Homebrew’s capabilities, allowing users to quickly install applications like Google Chrome, VLC and more. On Linux, this is known as Linuxbrew. Ubuntu Linux already has an APT package manager with a wide selection of applications and other packages available for installation - here’s how to do it.

Install Homebrew on Ubuntu 20.04 / 18.04 / Debian 10

Before we start, let’s install some basic build packages

To get the necessary components for compiling Git, users can use the command line tool apt-get to install curl and other essential files.

Now we can start the installation

Homebrew, a popular package manager for macOS, can be easily installed with just one command. By running the command “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)", users can quickly and easily install Homebrew on their Macs.

After installation is complete, it is time to make the program available on the system. To do this, run these commands:

If you have the Linuxbrew directory in your home folder, you can run the brew shellenv command to access its features.

If the directory “/home/linuxbrew/.linuxbrew” exists, the command “brew shellenv” will be executed.

If the file “.bash_profile” is readable, add a command to it that will enable Homebrew’s shell environment.

Adding the command ’eval $(brew –prefix)/bin/brew shellenv’ to your ‘.profile’ file will ensure that Homebrew is properly set up in your terminal.

Final note

Share this guide to help your friends install Brew on Ubuntu. If you have any questions, reach out to us.