Get Informed out of Data

Full width home advertisement



Post Page Advertisement [Top]

Mac OS package manager on Raspberry pi - HomeBrew

Mac OS package manager on Raspberry pi - HomeBrew
Operating Systems have major changes in the last few years, yes we have found WSL(windows subsystem for Linux) on Windows.

The Major battleground to show authority between Linux and Unix have been fabulous but are they differ much?

To be honest, there is a difference in the way of approaching a thing but are similar in doing. In reality, it is just a machine made by a human.

In such a way, if aarch64 based OS installed in the Raspberry pi could lead to several missing packages as many are yet ported to it.

To resolve it, we can use macOS packages in Linux

Package manager - a source for installing software and it is important for ARM architecture especially.

We are talking about BREW commands,

Homebrew is a free and open-source package management system specially designed for Apple’s Mac OS operating system.

As you might know, it is one of the open-source projects that had both the largest number of contributors and issues closed of any project on GitHub.

If you ever looking for a similar package manager like Homebrew for your Linux operating system, look nowhere, just go for Linuxbrew.

Let's get into the installation part,

LinuxBrew has the following dependencies,

  • Ruby 
  • GCC

install the dependencies if you find it missing,

sudo apt-get install build-essential curl ruby python-setuptools 

LinuxBrew also recommended installing without superuser(root)

LinuxBrew is written in ruby language and hence run the following command to install it,

ruby -e "$(curl -fsSL"

The installation will complete with a message of

Warning: /home/linuxbrew/.linuxbrew/bin is not in your PATH.

Hence, we need to configure the profile to set the path correctly,

Run the following commands to change the path,

echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >>~/.profile

echo 'export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"' >>~/.profile

echo 'export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"' >>~/.profile


Now, the configuration is done, lets save the changes

source ~/.profile

install gcc which is recommended to use Linuxbrew without any issues. 

brew install gcc

Finally, run the following command to ensure Linuxbrew is installed and working properly:

brew doctor

the output should be

Your system is ready to brew.

No comments:

Post a Comment

Bottom Ad [Post Page]