This page describes how to install Bazel on Fedora and CentOS.
The commands below must be run either via
sudo or while logged in as
--allowerasing when installing an upgrade from a previous major
version of the Bazel package.
The Bazelisk installer is an alternative to package installation.
Installing on Fedora 25+
dnf install dnf-plugins-core
Run the following commands to add the Bazel repository and install the package:
dnf copr enable vbatts/bazel
dnf install bazel4
Installing on CentOS 7
Download the corresponding
.repofile from Fedora COPR and copy it to
Run the following command:
yum install bazel4