The Bazel team does not provide official packages for Fedora and CentOS. Vincent Batts @vbatts generously maintains unofficial packages on Fedora COPR.
Install dnf and the copr plugin if you have not already done so.
Run the following commands:
dnf copr enable vbatts/bazel dnf install bazel
Download the corresponding .repo file from Fedora COPR and copy it to /etc/yum.repos.d/.
Run the following command:
yum install bazel