Linuxbrew:A fork of Homebrew for Linux
Linuxbrew is a fork of Homebrew
, the Mac OS package manager, for Linux.
Features, usage and installation instructions are summarised on the homepage.
Install Ruby
apt (Debian or Ubuntu)
Debian GNU/Linux and Ubuntu use the apt package manager. You can use it like this:
$ sudo apt-get install ruby-full
As of writing, the ruby-full
package provides Ruby 1.9.3, which is an old stable release, on Debian and Ubuntu.
yum (CentOS, Fedora, or RHEL)
CentOS, Fedora, and RHEL use the yum package manager. You can use it like this:
$ sudo yum install ruby
The installed version is typically the latest version of Ruby available at the release time of the specific distribution version.
portage (Gentoo)
Gentoo uses the portage package manager.
$ sudo emerge dev-lang/ruby
By default, this will try to install versions 1.9 and 2.0, but more versions are available. To install a specific version, set RUBY_TARGETS
in your make.conf.
See the Gentoo Ruby Project website for details.
pacman (Arch Linux)
Arch Linux uses a package manager named pacman. To get Ruby, just do this:
$ sudo pacman -S ruby
This should install the latest stable Ruby version.
Homebrew (OS X)
On OS X Yosemite and Mavericks, Ruby 2.0 is included. OS X Mountain Lion, Lion, and Snow Leopard ship with Ruby 1.8.7.
Many people on OS X use Homebrew as a package manager. It is really easy to get a newer version of Ruby using Homebrew:
$ brew install ruby
This should install the latest Ruby version.
Install Linuxbrew (tl;dr)
Paste at a Terminal prompt:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
Features
- Can install software to a home directory and so does not require sudo
- Install software not packaged by the native distribution
- Install up-to-date versions of software when the native distribution is old
- Use the same package manager to manage both your Mac and Linux machines
Dependencies
- Ruby 1.8.6 or newer
- GCC 4.2 or newer Paste at a Terminal prompt:
Debian or Ubuntu
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
Fedora
sudo yum groupinstall 'Development Tools' && sudo yum install curl git m4 ruby texinfo bzip2-devel curl-devel expat-devel ncurses-devel zlib-devel
Installation
Paste at a Terminal prompt:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"\
Or if you prefer:
git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew
Add to your .bashrc
or .zshrc
:
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
You’re done!
brew install $WHATEVER_YOU_WANT
What Packages Are Available?
- Type
brew search
for a list. - Or visit braumeister.org to browse packages online.
- Or use
brew desc
to browse packages from the command line.
More Documentation
brew help
or man brew
or check our documentation.