DEV Community

Waylon Walker
Waylon Walker

Posted on • Originally published at waylonwalker.com

Installing Homebrew on Linux

Installing brew on linux proved quite easy and got pyenv running for me within 4 commands.

I had never used homebrew before, honestly I thought it was a mac only thing for years. Today I wanted to try out pyenv, and the recommended way to install was using homebrew. I am not yet sure if I want either in my normal workflow, so for now I am just going to pop open a new terminal and install homebrew and see how it goes.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/walkers/.zprofile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
Enter fullscreen mode Exit fullscreen mode

That was it, now homebrew is working. Starting a new shell and running the command to install pyenv worked.

brew install pyenv
Enter fullscreen mode Exit fullscreen mode

Links


This post is part of a series of til's where I share things in short digestible chunks.

Discussion (3)

Collapse
dailydevtips1 profile image
Chris Bongers

Homebrew, mens best friend

Collapse
waylonwalker profile image
Waylon Walker Author

What do you use homebrew for? I found another way to get pyenv and am on the fence of not adding homebrew to the normal workflow.

Collapse
dailydevtips1 profile image
Chris Bongers

I generally use homebrew for installing everything, even applications on mac.
Just takes away the hassle of having to do anything really.