Installing Brave Browser on Clear Linux*

Simple installation script

Open a terminal and run the following command

curl -s https://raw.githubusercontent.com/MattiaVerticchio/dotfiles/main/brave-install.sh | bash

Done! :grin:

What does the script do?

  1. Downloads the latest stable Brave Browser release from GitHub
  2. Unpacks it in ~/Brave
  3. Downloads a brave-browser.desktop file
  4. Edits the desktop file with the right installation paths

Uninstalling

To remove Brave you can remove the installation folder and desktop file.

rm -r ~/Brave
rm ~.local/share/applications/brave-browser.desktop

If you want to remove the configuration files too, then run:

rm -r ~/.config/BraveSoftware

Updating

To update you can simply uninstall the old version and reinstall the new one.

10 Likes

I am facing font loading problem even after executing the command sed -i 's/Icon=brave-browser/Icon=brave/g' /usr/share/applications/brave-browser.desktop and rebooted it.

@MattiaVerticchio, @TomL, are you facing the problem with the latest Clear Linux release?

Hi @nayab, I just noticed the issue and updated the post, here are the changes:

  1. No need for the additional brave-keyring package anymore.
  2. The low resolution icon issue is now fixed by default.
  3. The font loading is specified for the single app instead of globally, to overcome the issue you pointed out.

If you followed the previous tutorial you can uninstall Brave running

sudo rpm -e brave-browser brave-keyring

and delete the /etc/environment file (if you don’t need it for other purposes) running

sudo rm -f /etc/environment

Now you can re-follow the updated installation procedure. :grin:

1 Like

Thank you very much for this! But I just have 1 question. How would I go about starting up the brave web browser from just the terminal?

1 Like

Go to will you installed it, type the name of the binary, press enter.

Having to manually update your web browser is not optimal. Is it basically impossible to package Brave in Clear Linux so that the software auto-updates along with the rest of the “official” (blessed) apps? I’m not very familiar with Clear Linux’s packaging system yet …

2 Likes

Since now there is a portable package for Brave, I updated the tutorial with a plug and play script. I’ll try writing an update checker that gets triggered by Swupd auto-update.

4 Likes