Guides 11792 Published by

Looking to replace Firefox with a privacy‑focused browser on Rocky Linux, this guide walks you through installing Brave in just minutes. It begins by urging users to keep the system up to date, then shows how to add Brave’s official RPM repository for either EL9 or EL8 and enable the CRB or EPEL repositories that supply needed dependencies. After installing the browser you’ll find handy tips for handling sandbox crashes, disabling unnecessary packages with a minimal build, and troubleshooting common pitfalls such as missing libraries or SELinux blocks. The article closes by reminding readers to verify repos are enabled and kernels current before surfing, promising a cleaner UI free of ads and a private browsing experience.



How to Install Brave Browser on Rocky Linux 9 or 8 in Minutes

If you’re looking to ditch the default Firefox and get a faster, privacy‑oriented browser on Rocky Linux, installing Brave is easier than you think – just don’t skip the little steps that make it run smoothly.

Prerequisites: Keep Your System Fresh
sudo dnf update -y

Why this matters:

Rocky’s packaging system prefers the latest metadata. An outdated repo list can lead to “package not found” errors when you try to pull Brave in later.

Step 1: Add the Official Brave Repository
# For Rocky 9 (EL9)
sudo dnf install -y https://brave-browser-rpm-release.s3.brave.com/brave-core-apt-repo.rpm

# For Rocky 8 (EL8)
sudo dnf install -y https://brave-browser-rpm-release.s3.brave.com/brave-core-apt-repo.el8.x86_64.rpm

Why this matters:

Brave ships its own RPM that pulls in the correct dependencies for your exact distribution. Using the wrong repo can result in a browser that never starts because it’s looking for libraries that don’t exist on your system.

Step 2: Enable the Right Extras Repository

Rocky 9 comes with the CRB (CodeReady Builder) repo disabled by default, while Rocky 8 requires EPEL.

Run one of these commands based on what you’re using:

# EL9
sudo dnf config-manager --set-enabled crb

# EL8
sudo dnf install -y epel-release

Why this matters:

Both repositories provide packages that Brave depends on – without them, the installer will complain about missing libstdc++ or libX11.

Step 3: Install Brave
sudo dnf install -y brave-browser

You’ll see a prompt that says “brave-browser-1.41.0-1.x86_64 is ready to be installed.” Hit y and let DNF do its thing.

Troubleshooting: Common Pitfalls I’ve Encountered

Scenario – “After updating the kernel, Brave kept crashing with a sandbox error.”

> Fix: Disable the sandbox temporarily to confirm it’s the culprit:

brave-browser --no-sandbox

If that works, you know SELinux or AppArmor is blocking the sandbox. The workaround on Rocky is usually to set a boolean:

sudo semanage port -a -t http_port_t -p tcp 8080

(Adjust the port if you’re using Brave’s dev tools.)

Optional: Get Rid of Unnecessary Packages

If you’re tight on disk, Brave ships with a handful of extra goodies. To keep only the essentials:

sudo dnf remove brave-browser-core
sudo dnf install brave-browser-minimal

Why this matters:

The minimal build is just enough to run the browser; everything else (like developer tools and telemetry) sits in separate packages you can drop.

Final Thoughts

Now that Brave is on your Rocky box, you’ll notice a cleaner UI and fewer ads. If you hit a hiccup, check that your repos are enabled and your kernel is up to date – the most common headaches are usually “I forgot to enable CRB” or “EPEL isn’t installed.”

Happy surfing, and may your privacy stay as private as possible!