Site icon Linux Genie

How to Install Brave Browser on Ubuntu 24.04

How to Install Brave Browser on Ubuntu 24.04

Brave is one of the leading web browsers offering an aesthetic interface with the least resource consumption features. Brave is a Chrome-inspired Web browser thus providing similar features to Google Chrome. Most of the Chrome extensions are also supported on Brave.

Moreover, it is also a free and open-source browser making it suitable, especially for Linux users. So, today we will guide you to install Brave Web Browser on the latest LTS on Ubuntu, 24.04 codenamed Noble Numbat.

Outline:

Approach 1: Brave Browser Repository

You can use the Brave Browser official repository to install it on your Ubuntu 24.04. It offers distinct repositories for Stable, Beta, and Nightly releases. So, you can opt for the variant you want to install. Let’s start the installation process:

Step 1: Update the System and Install cURL

Use the apt update command to update and also install cURL (as it will be used to download the GPG keys for the repositories):

sudo apt update && sudo apt install curl

Step 2: Add the Brave Repository

Now, you have to add the Brave Browser’s repository on your Ubuntu 24.04. We have listed the commands to add the repository for Stable, Beta, or Nightly releases.

  • For Brave Stable:

Adding the GPG key of the stable repository:

sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

Now, add the repository:

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list

  • For Brave Beta:

Beta’s GPG Key:

sudo curl -fsSLo /usr/share/keyrings/brave-browser-beta-archive-keyring.gpg https://brave-browser-apt-beta.s3.brave.com/brave-browser-beta-archive-keyring.gpg

Beta Repository:

echo "deb [signed-by=/usr/share/keyrings/brave-browser-beta-archive-keyring.gpg] https://brave-browser-apt-beta.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-beta.list
  • For Brave Nightly:

Nightly’s GPG Key:

sudo curl -fsSLo /usr/share/keyrings/brave-browser-nightly-archive-keyring.gpg https://brave-browser-apt-nightly.s3.brave.com/brave-browser-nightly-archive-keyring.gpg

Nightly Repository:

echo "deb [signed-by=/usr/share/keyrings/brave-browser-nightly-archive-keyring.gpg] https://brave-browser-apt-nightly.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-nightly.list

Step 3: Install Brave

Once the repository is added, you need to update the packages list:

sudo apt update

Then, use one of the below commands to install the Brave, i.e., use the command of the variant whose repository you have added earlier:

sudo apt install brave-browser
sudo apt install brave-browser-beta
sudo apt install brave-browser-nightly

Step 4: Check the Installed Version

It is recommended to ensure the installed version of Brave using the command:

brave-browser --version

Launching and Using Brave

Use the appropriate command to launch and start using Brave on your Ubuntu 24.04:

brave-browser

Or search it from the applications menu and launch it:

Here is the first interface after launching:

Approach 2: Snap Store

Snap offers tens of applications for Ubuntu and other Linux distributions. Brave Browser support is also available as a snap. Ubuntu 24.04 offers GUI and CLI support for the Snaps and here we will demonstrate both ways to install Brave from Snap:

Approach 2.1: CLI

First, you need to get the snap support using the command:

sudo apt install snapd

Install the snap core (to deal with the package dependencies) as well:

sudo snap install core

Now, install the Brave browser using the command:

sudo snap install brave

The version “1.64.113” is installed on your system.

Approach 2.2: GUI

Ubuntu 24.04 is now equipped with more interactive and futuristic GUI support for Snap, i.e., App Centre. To install Brave Browser, open the App Centre and search for it.

Proceed with the installation:

After that, an authentication screen appears, provide the password to continue the installation:

And here you go! The “Install” button has been replaced with the “Open” which assures that the Brave has been installed:

That’s how you can install Brave from the App Centre.

Approach 3: Flatpak/Flathub

Flathub is the repository that offers thousands of open-source packages for Linux distributions. Brave is also available in the flathub applications. To interact with the flathub, you need to have the Flatpak package manager. By default, Ubuntu 24.04 does not come with the flatpak package manager, and the flathub repository is also not enabled. You have to do this one-time activity.

Let’s demonstrate this all:

Step 1: Install the Flatpak and Enable/Add the Flathub Repository

Here are the commands to install the Flatpak and add the remote support of Flathub repo:

Install Flatpak:

sudo apt install flatpak

Add Flathub Repository:

sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Step 2: Install Brave Browser

Now, use the below command to install the flathub/flatpak-based Brave on your Ubuntu:

sudo flatpak install flathub com.brave.Browser

Step 3: Check the Installed Version

Here’s the command to list the flatpak-based installed application:

flatpak list

You can launch the Brave using the command:

flatpak run com.brave.Browser

Tip: How to Make Brave Browser the Default Browser on Ubuntu 24.04

When you launch the Brave for the first time, you will see the prompt of making the Brave your default browser, as can be seen below:

However, if you have skipped it at the time of launching the browser, don’t worry. Open the “Apps” section in “Settings” and then navigate to the “Default Apps”:

Click on the dropdown icon of the “Web” section and select the Brave:

Now, your web services will open in Brave Web Browser.

How to Update Brave on Ubuntu 24.04

If you have already installed the Brave browser, then you might need to update it instead of installing a fresh copy. The update methods are the same as the installation methods, i.e., Brave’s Repository, Snap Store, and Flatpak-based installation. Let’s demonstrate these methods practically:

Update a Brave’s Repository-Based Installation

The Brave’s repository method is dependent on the repository you have added. If the repository still exists on your system, then you need to update the packages list and use the install command to update the already installed version:

sudo apt update
sudo apt install <brave-release>

Note: If you have deleted the repository, then you need to add it again. In short, you have to re-install Brave by following the steps in Method 1.

Update Snap-Based Installation

A snap-based installation of the Brave browser can be updated using the following command:

sudo snap refresh <brave-package>

Update a Flatpak-Based Installation

To update a Flatpak/flathub-based installation of the Brave browser, you can use the below command:

flatpak update com.brave.Browser

These are the possibilities to update your installed Flatpak-based version.

How to Uninstall Brave Browser From Ubuntu 24.04

Uninstalling the Brave depends on the method you followed for the installation. For instance, a snap-based package can only be removed using the snap support. Similarly, the Brave’s repository and the flatpak-based installations can be removed using the respective package managers. Here is a demonstration of all these methods:

Brave’s Repository-Based Removal (apt)

Since the brave repository method used the apt package manager to install it. Thus, you can remove your Brave’s installation using one of the below commands (for stable, beta, and nightly):

sudo apt autoremove brave-browser --purge
sudo apt autoremove brave-browser-beta --purge
sudo apt autoremove brave-browser-nightly --purge

The autoremove and the purge options remove the useless dependencies and configurations respectively.

Moreover, if you want to remove the GPG key and the associated repository, you can do it using the command:

sudo rm /usr/share/keyrings/<key-name>.gpg
sudo rm /etc/apt/sources.list.d/<repo-name>.list

Use the key name and repo name as per the variant you installed:

Snap-Based Removal

To remove a Brave installed using snap, use the below command:

sudo snap remove brave

Similarly, to remove a GUI-based installation, search for it in the App Centre, click on the “ellipsis (three dots)”, and then the “Uninstall” options:

Flatpak-Based Removal

If you have installed Brave using flathub/flatpak, use the below command to uninstall/remove it:

sudo flatpak uninstall com.brave.Browser

That’s all about the Brave Browser.

Bottom Line

Brave Web Browser is available on the Brave’s repository, the snap store, and the Flatpak/Flathub. All these three methods provide the same version. However, you must go for the repository’s method as it is the official link between the Brave and your Ubuntu.

This post has listed the possible methods to install Brave Browser on Ubuntu 24.04.

Exit mobile version