

That’s it for now! In this article, we have shown how to install and use Linuxbrew package manager on a Linux system. If you don’t want to us Linuxbrew anymore, you can uninstall it by running. To know more about Linuxbrew usage options, type: $ brew help
LINUX BREW UPDATE
To update Linuxbrew, issue the following command which will download the newest version of homebrew from GitHub using git command line tool. $ brew search -desc #show a particular formulae You can search for packages using the following syntax. You can uninstall a formula using following command. Take note of some of the messages in the output, there are some useful environmental variables that you need to set for some formulae to work correctly. Once you have successfully set up Linuxbrew on your machine, you can start using it.įor example you can install the gcc package (or formula) with the following command. Then source the ~/.bashrc file for the recent changes to take effect. $ echo 'export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"' >~/.bashrc $ echo 'export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"' >~/.bashrc $ echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH"' >~/.bashrc


Next, you need to add the directories /home/linuxbrew/.linuxbrew/bin (or ~/.linuxbrew/bin) and /home/linuxbrew/.linuxbrew/sbin (or ~/.linuxbrew/sbin) to your PATH and to your bash shell initialization script ~/.bashrc as shown. Once the dependencies installed, you can use the following script to install Linuxbrew package in /home/linuxbrew/.linuxbrew (or in your home directory at ~/.linuxbrew) as shown. $ sudo yum groupinstall 'Development Tools' & sudo yum install curl file git $ sudo dnf groupinstall 'Development Tools' & sudo dnf install curl file git $ sudo apt-get install build-essential curl file git To install Linuxbrew on your Linux distribution, fist you need to install following dependencies as shown. How to Install and Use Linuxbrew in Linux In this article, we will show how to install and use Linuxbrew package manager on a Linux system. In addition, brew allows you to manage packages on both your Mac and Linux machines.Supports installing of up-to-date versions of packages when the one provided in the distro repositories is old.Supports installing of third-party software (not packaged on the native distributions).Allowing installation of packages to a home directory without root access.Linuxbrew is a clone of homebrew, the MacOS package manager, for Linux, which allows users to install software to their home directory.
