How to install Brave browser on Rocky Linux

Endrit Qerreti

Endrit Qerreti

Brave browser can be easily installed on any linux distro, including Rocky Linux.

Brave browser is not available in the Rocky Linux repositories, so installing Brave browser is done by adding the official Brave Browser repository on your Rocky Linux Machine.

In this tutorial, you will learn how to install Brave browser on Rocky Linux.

Step 1 - Install required package

In order to be able to setup Brave browser repository on Rocky Linux, first you must install the dnf-plugins-core package.

To install dnf-plugins-core on Rocky Linux is quite simple, and it can be done directly from the terminal, as dnf-plugins-core is available in the Rocky Linux repositories.

To do so, simply run the command below.

sudo dnf install dnf-plugins-core -y

Step 2 - Import Brave browser's GPG key

Once you have installed the required package, now you need to import Brave browser GPG key.

GPG key of Brave browser needs to be imported on your Rocky Linux machine, so that you are able to download Brave browser from the official Brave repository.

To import Brave GPG, simply run the command below.

sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc

Step 3 - Setup Brave Browser Repository

Now that the required package is installed, and Brave browser GPG is imported on your Rocky Linux system, you can proceed to setup Brave repository.

Adding a repository in Rocky Linux is quite easily, you can do so by using dnf package manager.

To do so, simply execute the command below.

sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo

Step 4 - Install Brave browser on Rocky Linux

Brave repository is now added on your Rocky Linux system, so you should be able to use the newly added repository to download and install Brave browser.

To install Brave Browser on Rocky Linux, simply execute the following.

sudo dnf install brave-browser -y

Step 5 - Use Brave browser on Rocky Linux

Brave browser should now be installed on your Rocky Linux system. So, all you need to do now is launch Brave and use it.

Launching brave on Rocky Linux, is done via terminal or Applications Menu.

Launch Brave via terminal on Rocky Linux

To launch Brave on Rocky Linux via terminal, first you need to launch your terminal. To do so, simply press CTRL + ALT + T.

Once terminal is launched, run the following to launch brave.

brave-browser

Launch Brave via Applications Menu on Rocky Linux

Another way of launching Brave browser on Rocky Linux, is by simply using gui.

To do so, simply open Applications Menu, and locate Brave browser or simply search for "Brave" via the search box.

Updating Brave browser on Rocky Linux

Rocky Linux like other Linux distros won't get automatically updated, so in order to update your Brave browser, you need to check for updates periodically.

To update brave browser and other packages installed on your Rocky Linux system, simply run the following command.

sudo dnf upgrade --refresh

Uninstalling Brave browser on Rocky Linux

In this tutorial, we installed Brave browser via the official Brave repository, so uninstalling Brave browser won't remove Brave browser repository too. Which means if Brave browser repository is active on your Rocky Linux system, your system will download Brave automatically once you update your system. To uninstall brave browser, and remove Brave browser repository, simply run the commands below.

1) Remove Brave repository

sudo rm /etc/yum.repos.d/brave-browser.repo

2) Uninstall Brave Browser

sudo dnf remove brave-browser -y

Conclusion

In this tutorial, you learned how to install Brave browser on Rocky Linux, via the official brave repository.

By now you should have a fully working Brave installation on your Rocky Linux machine.