Installation of Brave for Ubuntu via Terminal

Posted on

To install Brave browser on Ubuntu via the terminal, you can follow a straightforward process using commands that download and install the browser directly from Brave's official repository. This method ensures you have the latest version of Brave and simplifies future updates. Begin by opening a terminal window on your Ubuntu system. Use the provided commands to add the Brave repository to your system's software sources, import the repository's GPG key for verification, update your package list, and finally install Brave browser. This method is efficient and ensures you can start using Brave quickly and easily on your Ubuntu system.

Adding Brave Repository

First, open a terminal window on your Ubuntu system. To add the Brave browser repository, run the following command:

sudo apt install apt-transport-https curl
curl -fsSLo /tmp/brave-browser.deb https://brave-browser-apt-release.s3.brave.com/brave-core.asc
sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add /tmp/brave-browser.deb

This command installs apt-transport-https and curl, which are necessary for fetching and installing packages over HTTPS. It then downloads the Brave repository's GPG key and adds it to your system's list of trusted keys, enabling secure installation of Brave browser.

First, open your terminal by pressing Ctrl+Alt+T or searching for "Terminal" in the applications menu. Once the terminal is open, follow these steps to install Brave:

Step 1: Add Brave Repository

The first step is to add the Brave repository to your system's software sources. This allows your package manager to find and install Brave browser.

  1. Open the terminal.
  2. Add Brave's official GPG key to your system for verifying packages:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A8580BDC82D3DC6C
    

    This command adds Brave's signing key to your system.

  3. Next, add the Brave repository to your system's list of software sources:

    sudo add-apt-repository "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"
    

    This command adds the repository to /etc/apt/sources.list.d/brave-browser-release.list.

Step 2: Update Package Index

After adding the repository, update the package index to ensure you install the latest version of Brave.

sudo apt update

This command refreshes the list of available packages and their versions, including those from the Brave repository you just added.

Step 3: Install Brave Browser

Now that your system knows where to find Brave, you can install it using the following command:

sudo apt install brave-browser

This command installs Brave browser on your Ubuntu system. During the installation, you may be prompted to confirm whether you want to continue. Type Y and press Enter to proceed.

Step 4: Launch Brave Browser

Once the installation completes successfully, you can launch Brave browser either from the applications menu or by typing brave-browser in the terminal and pressing Enter.

Step 5: Optional – Verify Installation

To verify that Brave browser has been installed correctly, you can open Brave and navigate to Menu > About Brave. This will display the current version of Brave installed on your system.

Step 6: Updating Brave Browser

Brave browser will automatically check for updates in the background. However, if you want to manually update Brave, you can use the following command:

sudo apt update && sudo apt upgrade

This command updates all installed packages on your system, including Brave browser, to their latest versions available from the repositories.

Summary

Installing Brave browser on Ubuntu via the terminal is a straightforward process that involves adding the Brave repository, updating your package index, and then installing the browser itself. Once installed, you can enjoy Brave's features such as built-in ad-blocking, privacy-focused browsing, and more.

Was this helpful?

Thanks for your feedback!