Eric Leung     About     Blog     Archive     Feed

Linuxbrew - For When You Don't Have Root Access

I have access to a Linux server, but I inconveniently do not have any root access. This means that installing software was a bit of a pain, because I could not use the usual apt-get command. Luckily, after many months of not using the server because I do not have root access, I have found the solution: Linuxbrew.

Paste this into your terminal and it will install Linuxbrew.

ruby -e "$(curl -fsSL"

If you are familiar with homebrew from Mac OSX, this is just a port over to Linux to be your local package manager.

Additional steps to make this work are to add the following to your .bashrc file.

export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"

Afterward, you can start installing away with the following command.

brew install package_name

For example, I wanted to use the console-based client for Pandora called pianobar, so I ran the following command.

brew install pianobar

You can find more documentation here.