This page describes how to install Bazel on Fedora and CentOS. The Bazel team does not provide official packages for Fedora and CentOS. Vincent Batts (@vbatts) generously maintains unofficial packages on Fedora COPR. The commands below must be run either viaDocumentation Index
Fetch the complete documentation index at: https://bazel-pr-29415.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
sudo or while logged in as root.
Add --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+
-
The DNF package manager can
install Bazel from the COPR repository.
Install the
coprplugin for DNF if you have not already done so. -
Run the following commands to add the Bazel repository and install the
package:
Installing on CentOS 7
-
Download the corresponding
.repofile from Fedora COPR and copy it to/etc/yum.repos.d/. -
Run the following command: