One reason to use Brave on a rocky Linux system over the default Firefox ESR is that Brave is built on the Chromium engine, which is known for its performance and stability. Brave’s built-in ad and tracker blocking can also help speed up browsing on a Linux system, which may be particularly beneficial on a computer with limited resources.
Features of Brave Browser
- Built-in ad and tracker blocking
- Privacy-respecting browsing experience
- Built on the Chromium engine for performance and stability
- Brave rewards program that allows users to earn cryptocurrency for viewing ads
- Tor private browsing mode
- HTTPS everywhere
- Support for browser extensions from the Chrome Web Store
- Customizable user interface
- Built-in password manager
- Built-in support for web3 and decentralized apps (dApps)
This guide will provide step-by-step instructions for installing, updating, and removing the Brave Browser on Rocky Linux 9 or 8, including the import of official GPG keys and repositories. Additionally, it will cover installing the beta and nightly versions of the Browser alongside the stable version and how to disable or enable the DNF repository.
Table of Contents
Step 1: Update Rocky Linux
It is important to note that before installing Brave Browser on Rocky Linux, it is recommended to update all existing packages to ensure no conflicts during the installation process. This is also a good practice for maintaining a stable system.
sudo dnf upgrade --refresh
Step 2: Import Brave Repository
When installing the Brave Browser on Rocky Linux, users have three options. The first and most recommended option is to install the stable version of the Browser, which is suitable for most users’ needs. However, installing the beta and nightly build repositories alongside the stable version is also possible for more advanced or curious users. This will provide access to the latest features and updates, but note that these versions may be less stable.
The first option is to import the Brave browser stable repository, which is always recommended above other choices.
Run the following command to import stable GPG KEY.
sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
Run the following command to import the stable repository.
sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
Next, if you would like to import either the beta or nightly Brave Browser builds, use the following steps. Unlike the stable version, the GPG key for beta and nightly is shared.
Run the following command to import the beta and nightly GPG KEY.
sudo rpm --import https://brave-browser-rpm-beta.s3.brave.com/brave-core-nightly.asc
Run the following command to import Beta Repository.
sudo dnf config-manager --add-repo https://brave-browser-rpm-beta.s3.brave.com/x86_64/
Lastly, the following command is to import the Nightly Repository.
sudo dnf config-manager --add-repo https://brave-browser-rpm-nightly.s3.brave.com/x86_64/
Step 3: Install Brave Browser
The Brave Browser can now be installed on Rocky Linux by utilizing the command below.
sudo dnf install brave-browser
In addition to the stable version of the Brave Browser, you can install the beta and nightly build versions if you have added the appropriate repositories. However, it is important to note that these versions are not recommended for everyday use and may not be as stable as the stable version. Therefore, using them on your primary desktop or in a production environment is not suggested.
It is important to note that the beta and nightly build versions of the Brave Browser do not replace the stable version and are installed separately. This means that you will have multiple versions of the Browser installed on your system, and you can switch between them as needed.
You can use the command below to install the beta version of the Brave Browser on Rocky Linux.
sudo dnf install brave-browser-beta
Finally, use the below command to install the nightly version of the Brave Browser on Rocky Linux.
sudo dnf install brave-browser-nightly
Step 4: Launch the Brave Browser
Once the installation of the Brave Browser on Rocky Linux is complete, there are a few ways to launch the Browser. One way is to use the command provided below while in the terminal. This command will start the Browser, allowing you to begin browsing the web.
For desktop users who prefer not to use the command line terminal, the best way to use the Brave Browser on Rocky Linux is by opening the application’s graphical user interface (GUI). This can be done by navigating to the appropriate location in the system’s application launcher or menu, depending on your setup.
Activities > Show Applications > Brave Browser.
A pop-up window will be displayed upon opening the Brave Browser for the first time on Rocky Linux. This window will allow you to import your bookmarks, browsing history, and saved passwords from your previous Browser if you have any. If you choose to import your data, you will be prompted to select which data you wish to import.
After importing your data, you will be directed to the default search engine landing page if you choose to do so. This is where you can start browsing the internet using the Brave Browser. You can change the default search engine, customize your settings, and add bookmarks or extensions to enhance your browsing experience. Additionally, you can use the built-in privacy features such as ad-blocking and tracker blocking to have a more secure and faster browsing experience.
Additional Commands & Tips
Update Brave Browser
Given that you have installed the Brave Browser on Rocky Linux using the DNF package manager, you will receive notifications for updates along with your other system updates. However, it is recommended to periodically check for updates manually using the command line terminal to ensure that you have the latest version of the Browser. This will help keep your Browser up to date with the latest features and security fixes.
sudo dnf upgrade --refresh
Remove (Uninstall) Brave Browser
To remove the Brave Browser from your Rocky Linux system, you can use one of the following commands, which corresponds to your browser version.
sudo dnf remove brave-browser
Suppose you have installed the beta or unstable version of the Brave Browser on your Rocky Linux system. In that case, you can use the commands below to remove the beta or unstable versions.
sudo dnf remove brave-browser-beta
sudo dnf remove brave-browser-nightly
Once you have removed the Brave Browser from your Rocky Linux system, it is also good practice to disable the repositories you have added for the Browser. Disabling the repositories will prevent them from being used. However, if you install the Browser again, you can easily re-enable the repositories and repeat the installation process.
sudo dnf config-manager --set-disabled brave-browser*
Notably, disabling the repositories described above will disable all the added Brave Browser repositories. To do this, you can replace “brave-browser*” with the full name of the repository, which you can find by printing out the list of Brave Browser repositories you imported into your terminal.
dnf repolist | grep brave
brave-browser-rpm-beta.s3.brave.com_x86_64_ created by dnf config-manager from https://brave-browser-rpm-beta.s3.brave.com/x86_64/ brave-browser-rpm-nightly.s3.brave.com_x86_64_ created by dnf config-manager from https://brave-browser-rpm-nightly.s3.brave.com/x86_64/ brave-browser-rpm-release.s3.brave.com_x86_64_ created by dnf config-manager from https://brave-browser-rpm-release.s3.brave.com/x86_64/
This will ensure that only the specific repositories related to the particular Brave Browser version are disabled. For example, you want to disable beta and nightly while keeping stable.
An example to disable the beta would be the following command.
sudo dnf config-manager --set-disabled brave-browser-rpm-beta.s3.brave.com_x86_64_
Re-run the dnf repolist command to confirm it was disabled. To re-enable that disabeld beta repository, you must replace the option in the command “-set-disabled” with “-set-enabled.”
The following command can be used for users who wish to re-enable the repositories for future installation of the Brave Browser on their Rocky Linux system. This command will reactivate the previously added repositories, allowing the Browser to be installed again using the same steps outlined in the guide without importing the repositories again.
sudo dnf config-manager --set-enabled brave-browser
Installing Brave Browser on a Rocky Linux desktop is super easy. You must follow a few simple steps to import the official GPG keys and repository. Once installed, you’ll have a fast and secure browser, and it’s super easy to use. You can install the Browser’s stable, beta, or nightly version. Once installed, you can start browsing the internet, customize your settings, and add bookmarks or extensions. The Browser will stay updated with the latest features and security fixes by checking for updates manually or through the DNF package manager. And if you ever want to uninstall or disable the Brave Browser, it’s a breeze with a simple command line terminal.