In this tutorial we will show you how to install Homebrew on Ubuntu 18.04 LTS . For those of you who didn’t know, LinuxBrew is a Linux-fork of the popular MacOS HomeBrew package manager. LinuxBrew is package-management-software, which enables installing packages from source, on top on the system’s default package management.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Homebrew on an Ubuntu 18.04 (Bionic Beaver) server.
Install Homebrew on Ubuntu 18.04 LTS
Step 1. First make sure that all your system packages are up-to-date by running these following apt commands in the terminal.
Step 2. Installing Homebrew on Ubuntu 18.04.
Clone LinuxBrew into a hidden directory in the user’s home directory:
The next step is to add LinuxBrew to the user’s environment variables, Add the following lines to the end of the user’s
# Until LinuxBrew is fixed, the following is required.
# See: https://github.com/Homebrew/linuxbrew/issues/47
## Setup linux brew
*NOTE: If you installed LinuxBrew to a different directory, change the path in LINUXBREWHOME above.
Step 3. Testing Homebrew on Linux.
After installed LinuxBrew package manager on your Ubuntu Linux, you can try to install a package with LinuxBrew. If you want to install a package, you just need to run the following command:
For example, you want to install a package named hello, just type the following command:
Congratulation’s! You have successfully installed Homebrew. Thanks for using this tutorial for installing Homebrew on Ubuntu 18.04 LTS Bionic Beaver system. For additional help or useful information, we recommend you to check the official Homebrew website.