How to install the macOS Homebrew plan manager on Linux

Uncategorized

Jack Wallen strolls you through the actions of installing the macOS command line plan manager Homebrew on Linux.

Digital coding development dark Image: Ilias/Adobe Stock Homebrew is a command line plan manager for macOS that is similar to apt-get or dnf. Homebrew makes installing over 5,000 applications from the command line extremely basic. A few of the tools found in Homebrew aren’t readily available to any of the default Linux package supervisors and some packages discovered in the apt and yum repositories aren’t precisely well maintained.

SEE: 40+ open source and Linux terms you require to know (TechRepublic Premium)

Since of those factors, you may wish to include Homebrew to your Linux distros. To add much more fuel to this fire, with Homebrew, you can install the latest releases of packages– even on older Linux circulations. That’s a huge plus for many.

So, if this sounds like a winning proposition to you, let me show you how it’s done.

What you’ll require to install Homebrew

The only things you’ll need are a running circumstances of either a Debian- or RHEL-based circulation and a user with sudo privileges.

Must-read designer protection

How to install the required dependencies

The first thing we must do is install the needed build tools. If you’re utilizing a Debian-based distribution– such as Ubuntu, Linux Mint, or Pop! _ OS– this is finished with the command:

sudo apt-get set up build-essential procps curl file git -y

If you’re utilizing an RHEL-based circulation– such as Fedora, Rocky Linux, or AlmaLinux– there are 3 commands to run, which are:

sudo yum group install ‘Advancement Tools’
sudo yum install procps-ng curl file git
sudo yum set up libxcrypt-compat

How to set up Homebrew

With the reliances out of the way, we can now set up Homebrew with the command:

/ bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”

The above command will work on either Debian- or RHEL-based distributions.

When the installation completes (it will spend some time), you’ll need to ensure the brew command is found in your PATH with the following 2 commands:

echo ‘eval “$(/ home/linuxbrew/. linuxbrew/bin/brew shellenv)”‘ >>/ house/$USER/. profile
eval “$(/ home/linuxbrew/. linuxbrew/bin/brew shellenv)”

How to update brew

Before you install your first bundle, you require to upgrade the Homebrew definitions, which is done with the command:

brew update

You may also wish to set up Cask, which adds GUI applications into the mix. This is likewise a good way to reveal you how to install a plan with Homebrew. To install Cask, concern the command:

brew install cask

If you wish to upgrade a package with brew, the command is:

brew upgrade plan

Where plan is the software you want to install.

To remove a package with brew, the command is:

brew uninstall plan

Where plan is the software application to be gotten rid of.

Lastly, if you ever want to eliminate Homebrew from Linux, the command is:

/ bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)”

And that’s how you manage packages with the brew command. You can look up all of the packages available for installation from the Homebrew website. Take pleasure in those extra tools on your preferred Linux distribution.

Sign up for TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for organization pros from Jack Wallen.

Source

Leave a Reply

Your email address will not be published. Required fields are marked *