如何在 Fedora Linux 上安装 Brave 浏览器
Brave 浏览器
![](/data/attachment/album/202111/28/102349idh316xz3bslr6ps.jpg)


[Brave](https://brave.com/) 是一个越来越 [流行于 Linux](https://itsfoss.com/best-browsers-ubuntu-linux/) 和其他操作系统的网页浏览器。对默认情况下阻止广告和跟踪的关注，以及对 Chrome 扩展的支持，使 Brave 成为 Linux 用户的热门选择。


在本教程中，你将学习如何在 Fedora Linux 上安装 Brave。你还将学习如何更新和删除它。


本教程已经在 Fedora 上进行了测试，但它也应该适用于基于 Red Hat 的其他发行版，如 CentOS、Alma Linux 和 Rocky Linux。


### 在 Fedora Linux 上安装 Brave 浏览器


你需要在这里用命令行的方式来安装 Brave。


作为先决条件，请确保 `dnf-plugin-core` 已经安装。



```
sudo dnf install dnf-plugins-core

```

下一步是将 Brave 仓库添加到你的系统中：



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

```

你还应该导入并添加仓库密钥，这样你的系统就会信任来自这个新添加的仓库的软件包：



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

```

![Adding Brave Browser repository in Fedora Linux](/data/attachment/album/202111/28/102429eb6b4c4tv5q3ibqv.png)


现在可以开始了。用这个命令安装 Brave：



```
sudo dnf install brave-browser

```

**当被要求确认你的选择时按 `Y`**。根据你的网速，这应该需要几秒钟或几分钟的时间。如果 DNF 的缓存最近没有更新，甚至可能需要更长时间。


![Installing Brave Browser in Fedora](/data/attachment/album/202111/28/102430jbr4vx74x79j4329.png)


安装完成后，在系统菜单中寻找 Brave 并从那里启动。


![Start Brave browser in Fedora Linux](/data/attachment/album/202111/28/102430bd7wvbqikxpokbb1.png)


### 在 Fedora Linux 上更新 Brave 浏览器


你已经为浏览器添加了一个仓库，并且导入了它的密钥。你的系统信任来自这个仓库的软件包。


因此，当有新的 Brave 浏览器发布并提供给这个仓库时，你会通过常规的系统升级得到它。


换句话说，你不需要做任何特别的事情。只要保持你的 Fedora 系统更新，如果有 Brave 的新版本，它应该会随着系统更新自动安装。


### 从 Fedora Linux 中删除 Brave 浏览器


![Brave Browser in Fedora Linux](/data/attachment/album/202111/28/102430ajdp7a2dgixq20ja.png)


如果你因为某些原因不喜欢 Brave，你可以从你的系统中删除它。只需使用 `dnf remove` 命令：



```
sudo dnf remove brave-browser

```

当询问时按 `Y`：


![Removing Brave browser from Fedora Linux](/data/attachment/album/202111/28/102430n5343h98b6c9gye0.png)


你也可以选择禁用 `brave-browser-rpm-release.s3.brave.com_x86_64_.repo` 或者从 `/etc/yum/repos.d` 中完全删除这个文件，虽然这并不是必须的。


我希望这个快速提示对你有帮助。如果你有任何问题或建议，请让我知道。




---


via: <https://itsfoss.com/install-brave-browser-fedora/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

[Brave](https://brave.com/?ref=itsfoss.com) is an increasingly [popular web browser for Linux](https://itsfoss.com/best-browsers-ubuntu-linux/) and other operating systems. The focus on blocking ads and tracking by default, along with Chrome extension support, has made Brave a popular choice among Linux users.

In this tutorial, you’ll learn to install Brave on Fedora Linux. You’ll also learn about updating it and removing it.

The tutorial has been tested on Fedora but it should also be valid for other distributions in the Red Hat domain such as CentOS, Alma Linux and Rocky Linux.

## Install Brave browser on Fedora Linux

You’ll have to go to the command line way for installing Brave here.

As a prerequisite, please ensure that dnf-plugin-core is installed.

`sudo dnf install dnf-plugins-core`


The next step is to add the Brave repository to your system:

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


You should also import and add the repository key so that your system trusts the packages coming from this newly added repository:

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


![adding brave browser repository in fedora](https://itsfoss.com/content/images/wordpress/2021/11/adding-Brave-browser-repository-in-Fedora-800x300.png)

You are all set to go now. Install Brave with this command:

`sudo dnf install brave-browser`


**Press Y when asked to confirm** your choice. It should take a few seconds or a couple of minutes based on your internet speed. If the DNF cache was not updated recently, it may even take longer.

![Installing Brave Browser in Fedora](https://itsfoss.com/content/images/wordpress/2021/11/Installing-Brave-Browser-Fedora-800x428.png)

Here's a screencast of Brave installation on Fedora.

Once the installation finishes, look for Brave in the system menu and start from there.

![Start Brave browser in Fedora Linux](https://itsfoss.com/content/images/wordpress/2021/11/start-brave-fedora-linux.png)

## Updating Brave browser on Fedora Linux

You have added a repository for the browser and also imported its key. Your system trusts the packages coming from this repository.

So, when there is a new Brave browser release and it is made available to this repository, you’ll get it through regular system upgrades.

![](https://itsfoss.com/content/images/2023/05/image-11.png)

In other words, you don’t have to do anything special. Just keep your Fedora system updated and if there is a new version from Brave, it should be automatically installed with system updates.

## Removing Brave browser from Fedora Linux

![brave browser in fedora linux](https://itsfoss.com/content/images/wordpress/2021/11/Brave-Browser-in-Fedora-Linux-800x530.png)

If you do not like Brave for some reasons, you can remove it from your system. Just use the dnf remove command:

`sudo dnf remove brave-browser`


Press Y when asked:

![removing brave browser fedora linux](https://itsfoss.com/content/images/wordpress/2021/11/removing-Brave-browser-Fedora-Linux-800x399.png)

You may also choose to disable the `brave-browser-rpm-release.s3.brave.com_x86_64_.repo`

or delete this file completely from the `/etc/yum/repos.d`

. Though it’s not really mandatory.

Optionally again, you may choose to remove browsing data and cache to completely eliminate any remaining traces of Brave from your system.

These are located in `~/.config/BraveSoftware`

and `/.cache/BraveSoftware`

. You can use the command line or the file explorer to [delete these folders](https://itsfoss.com/delete-files-folders-linux/).

```
rm -rf ~/.config/BraveSoftware
rm -rf ~/.cache/BraveSoftware
```


## Get more out of Brave browser

Since you have installed Brave on Fedora, how about learning about a few tips and tweaks?

For instance, you can [save downloaded files automatically in Brave Browser](https://itsfoss.com/save-files-automatically-brave-browser/).

[How to Save Downloaded Files Automatically in Brave BrowserThe excellent Brave browser asks where to save the downloaded files by default. Here’s how to change this behavior and save downloaded files automatically.](https://itsfoss.com/save-files-automatically-brave-browser/)![](https://itsfoss.com/content/images/wordpress/2021/04/Brave-Browser-tweaks-tips.png)


![](https://itsfoss.com/content/images/wordpress/2021/04/Brave-Browser-tweaks-tips.png)

Brave has a Picture-in-Picture mode. You probably didn't know about it because it is sort of hidden. Here's how to use it.

[How to Use Picture in Picture Mode in Brave BrowserBrave has picture-in-picture mode but it’s so hidden that you feel like there is no PIP support at all. Here’s how to enable and use it.](https://itsfoss.com/picture-in-picture-brave/)![](https://itsfoss.com/content/images/wordpress/2022/09/enable-pip-mode-in-brave.png)


![](https://itsfoss.com/content/images/wordpress/2022/09/enable-pip-mode-in-brave.png)

Go dark by enabling the dark mode in Brave.

[How to Save Downloaded Files Automatically in Brave BrowserThe excellent Brave browser asks where to save the downloaded files by default. Here’s how to change this behavior and save downloaded files automatically.](https://itsfoss.com/save-files-automatically-brave-browser/)![](https://itsfoss.com/content/images/wordpress/2021/04/Brave-Browser-tweaks-tips.png)


![](https://itsfoss.com/content/images/wordpress/2021/04/Brave-Browser-tweaks-tips.png)

Last but not least, you might want to try Brave Search considering Brave Browser is your primary web browser. The experience should be seamless, and you get many good search [features in Brave Search](https://itsfoss.com/brave-search-features/).

[10 Features in Brave Search That Make it a Great Google Search AlternativeBrave Search is an ambitious initiative by Brave Software based on the open-source project Tailcat, which tries to take on the big tech by introducing the ability to search anonymously. Brave Search itself is not open source at the moment. Of course, there are various other private search engin…](https://itsfoss.com/brave-search-features/)![](https://itsfoss.com/content/images/wordpress/2021/06/brave-search-features.png)


![](https://itsfoss.com/content/images/wordpress/2021/06/brave-search-features.png)

I hope you find this quick tip helpful. If you have any questions or suggestions, please let me know.