Installing Brave Browser on Rocky Linux 8 – Quick, Reliable Steps
Want to get Brave up and running on your Rocky Linux 8 machine? In this article you’ll see exactly which commands to run, why each one matters, and how to avoid the common snags that trip up even seasoned users.
Why Brave Makes Sense on a RHEL‑Based System
Brave is a privacy‑first browser that blocks ads and trackers by default. If you’re tired of Firefox’s “add‑ons” or Chrome’s telemetry, Brave gives you the same speed but with fewer cookies sneaking through your system. I’ve seen folks on Rocky who tried to install it from the usual Fedora repos and ended up chasing missing dependencies—Brave’s own repo is a lot cleaner.
Prerequisites – Make Sure Your System Is Ready
1. Root or sudo access
All package installs will need elevated privileges; otherwise, you’ll hit that dreaded “Permission denied” wall.
2. Update your system first
sudo dnf update -y
Updating ensures the latest security patches and resolves any version mismatches before the Brave RPM pulls in its own dependencies.
3. Install `dnf-plugins-core` if you don’t already have it
sudo dnf install -y dnf-plugins-core
This package lets you add external repos easily later on.
Step 1 – Add the Brave Repository
Rocky doesn’t ship Brave by default, so we need to point `dnf` at the official repo:
sudo rpm --import https://brave-browser-apt-release.s3.brave.com/brave-core.asc
Why import that key? Without it, the package manager will refuse to trust any files from Brave’s servers, and you’ll get a cryptic “GPG check failed” error.
Now create the repo file:
sudo tee /etc/yum.repos.d/brave-browser.repo <<'EOF' [brave] name=Brave Browser baseurl=https://brave-browser-apt-release.s3.brave.com/ubuntu/focal/ enabled=1 gpgcheck=1 gpgkey=https://brave-browser-apt-release.s3.brave.com/brave-core.asc EOF
Why the Ubuntu baseurl? Rocky is binary‑compatible with RHEL, so Brave’s Debian packages work fine; the repo URL points to the same binaries that run on Fedora and CentOS.
Step 2 – Install Brave
sudo dnf install -y brave-browser
If you see a prompt about “unresolved dependencies,” check that you ran the update step earlier. Most of the time, `dnf` will pull in the necessary libraries automatically.
Step 3 – Verify the Installation
Run Brave from the terminal to make sure it starts:
brave-browser &
If everything launches, you’re good to go. If you hit a “missing GL library” error, install Mesa:
sudo dnf install -y mesa-libGL
Common Pitfalls & Quick Fixes
- “Failed to load shared libraries: libXss.so.1” – Install the `libXScrnSaver` package:
sudo dnf install -y libXScrnSaver
- Repository errors after a Rocky upgrade – Sometimes the repo URL changes. Update the file with the latest Brave baseurl from their official docs.
- Brave not showing in the menu – After installation, you might need to log out and back in so GNOME updates its application list.
That’s all there is to it.