The missing package manager for Chrome OS
$ crew install vim
$ crew remove vim
$ crew search
$ crew search vim
$ crew update
$ crew upgrade
curl -Ls git.io/vddgY | bash
Chromebrew is an open source package manager / source builder hybrid targeting Chromebooks and Chrome OS.
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.
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?
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?
Chromebrew supports most GUI apps with help from the sommelier daemon. We don't support i686 architecture, due to Google dropping support.
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 '' license '' # Package license compatibility '' # Package compatibility source_url '*.tar.{gz,bz2,lz,etc}' source_sha256 '' # Optional: Prebuilt binary # binary_url ({ # aarch64: '', # armv7l: '', # i686: '', # x86_64: '', # }) # binary_sha256 ({ # aarch64: '', # armv7l: '', # i686: '', # x86_64: '', # }) # Register dependencies (use the following line as a basis) # # depends_on '*' # # Function for checks to see if install should occur. def self.preflight end # 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 pre-install operations prior to install. def self.preinstall 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