POP OS bazel (step 3) - rollthecloudinc/hedge GitHub Wiki

Add Bazel Distribution URI as a Package Source: This allows your package manager to find the Bazel packages.

sudo apt install apt-transport-https curl gnupg -y
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg
sudo mv bazel-archive-keyring.gpg /usr/share/keyrings

Add Bazel's APT Repository to Your System:

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list

Update the Package List:

sudo apt update

Install Bazel:

sudo apt install bazel

Verify the Installation: Once the installation is complete, you can verify it by checking the installed version of Bazel:

bazel --version