Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install a given bazel version (linux)
#! /usr/bin/env bash # or place this function in your .zshrc
function bazel_install() {
curl -LO "${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb" \
&& sudo dpkg -i bazel_${BAZEL_VERSION}-linux-x86_64.deb || echo "done." \
&& sudo apt-get -f install \
&& bazel
BAZEL_VERSION=0.18.0 bazel_install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment