centered image

Chromebrew

The missing package manager for Chrome OS

Chromebrew installs what you need with its dependencies:

$ crew install vim

It also registers the changes being made, so you can easily remove anything:

$ crew remove vim

See which packages are currently available:

$ crew search

Look for a package:

$ crew search vim

Update software lists:

$ crew update

Update Chromebrew packages:

$ crew upgrade

Install Chromebrew (along with Ruby and Git).

Available on aarch64, armv7l, i686 and x86_64.
curl -Ls https://raw.github.com/skycocker/chromebrew/master/install.sh | bash

What is it?

Chromebrew is an open source package manager / source builder hybrid targeting Chromebooks and Chrome OS.

What does it do?

It installs the software you need that hasn't been provided by Google. Many important packages are already precompiled and it's enough to just type crew install package_name, but if something's not already there, you can easily build and install it from source.

How does it work?

In fact, Chromebrew is a simple Ruby script. There's also some Git involved, so we needed both of these things to run it on a bare Chrome OS. We have prebuilt them along with their dependencies to install into your system during installation. So, basically, after installing Chromebrew, you will have fully functional Ruby with Rubygems, Git and a package manager dedicated just for your Chromebook. Cool, huh?

How is it different from Crouton?

Well, Chromebrew doesn't install an operating system. :p

The idea is that you may be on a weak internet connection and cannot download too much data, but you don't have Crouton and need just a few small packages. Also, you may be on a good internet connection and need just a few small packages. Also, why not use Chrome OS as the operating system?

Is GUI supported?

Chromebrew supports most GUI apps with help from the sommelier daemon. We don't support i686 architecture, however, since Google has dropped support.

How can I help?

If you have a compatible Chromebook, you can fork my Github repo and add new packages to the packages directory if you managed to build them from source successfully on your device. Package recipes are simple Ruby files - here is an example:

# It is recommended that you investigate other files in the 'packages/' directory
# to help get an idea of how existing packages are being installed through Chromebrew.

require 'package'

class Template < Package
  description ''
  homepage ''
  version ''
  source_url '*.tar.gz'
  source_sha256 ''

  binary_url ({
    aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/*-chromeos-armv7l.tar.xz',
     armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/*-chromeos-armv7l.tar.xz',
       i686: 'https://dl.bintray.com/chromebrew/chromebrew/*-chromeos-i686.tar.xz',
     x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/*-chromeos-x86_64.tar.xz',
  })
  binary_sha256 ({
    aarch64: '',
     armv7l: '',
       i686: '',
     x86_64: '',
  })


  # Register dependencies (use the following line as a basis)
  #
  # depends_on '*'
  #


  # Function to perform pre-install operations prior to install for both source build and binary distribution.
  def self.preinstall

  end


  # Function to perform patch operations prior to build from source.
  def self.patch

  end


  # Function to perform build from source.
  def self.build

  end


  # Function to perform install from source build.
  def self.install

  end


  # Function to perform post-install for both source build and binary distribution
  def self.postinstall

  end


  # Function to perform check from source build.
  # This is execute if and only if `crew build`.
  def self.check

  end


end