如何在 Fedora 上安装 Google Chrome 浏览器
Chrome
![](/data/attachment/album/202011/25/094346ig44av4l4lzh1v7t.jpg)


Fedora 的默认网页浏览器是 Firefox。尽管它是一个优秀的网络浏览器，你可能更喜欢流行的 Google Chrome 浏览器。


如果你想知道如何在 Fedora 上安装 Google Chrome 浏览器，让我告诉你两种安装 Google Chrome 浏览器的方式：图形化方式和命令行方式。


* [图形化方式 1：通过启用 Fedora 第三方仓库从软件中心安装 Chrome 浏览器](file:///Users/xingyuwang/develop/TranslateProject-wxy/translated/tech/tmp.VFVwBw56ac#gui-method-1)
* [图形化方式 2：从谷歌浏览器网站下载 RPM 文件](file:///Users/xingyuwang/develop/TranslateProject-wxy/translated/tech/tmp.VFVwBw56ac#gui-method-2)
* [命令行方式：从 Fedora 第三方仓库安装 Chrome，一切使用命令（与 GUI 方式 1 相同）](file:///Users/xingyuwang/develop/TranslateProject-wxy/translated/tech/tmp.VFVwBw56ac#cli-method)


这全取决于你喜欢哪种方式。你在 [Fedora](https://getfedora.org/) 上的 Google Chrome 浏览器都将通过这三种方式的系统更新获取定期更新。


### 方式 1：在 Fedora 中从软件中心安装 Google Chrome


Fedora 提供了一个第三方仓库，其中包含了一些流行的专有软件、图形驱动程序。Google Chrome 就是其中之一。


第一步，确保在 Fedora 中启用第三方仓库。你应该在软件中心中看到这个选项。


![Step1: Fedora Third Party Repositories](/data/attachment/album/202011/25/094631afchfi0iyq2b05t5.jpg)


启用后，只需在软件中心搜索 Chrome：


![Step 2: Search for Chrome In Fedora Software Center](/data/attachment/album/202011/25/094442il80s10ff989m91h.png)


并从那里安装它：


![Step 3: Install Chrome Fedora](/data/attachment/album/202011/25/094503spwbpe7vjev88eek.png)


还有比这更简单的吗？我觉得没有。


### 方式 2：在 Fedora 上从 Chrome 网站安装 Google Chrome


如果你不想启用第三方仓库，也没关系。你不必这样做。你可以从 Chrome 的网站上下载 RPM 文件，双击并安装它。


访问 Google Chrome 的网站，点击下载按钮。


* [获取 Google Chrome](https://www.google.com/chrome/)


![](/data/attachment/album/202011/25/094505d95s6696vvrj9j5q.jpg)


然后选择 .rpm 包，点击“接受并安装”。


![](/data/attachment/album/202011/25/094510kbqt3p33oeo8oa8a.png)


下载结束后，双击文件，在包管理器提示时点击安装。输入密码，等待安装完成。


![](/data/attachment/album/202011/25/094526a1au91m0u9czqutu.png)


这是超级简单的，对吧？让我们来看看有点复杂的方式（如果你不是一个终端爱好者）。


### 方式 3：使用命令行在 Fedora 上安装 Chrome


首先，你需要添加额外的 Fedora 仓库（你在方式 1 中看到的）：



```
sudo dnf install fedora-workstation-repositories

```

然后启用 Google Chrome 仓库。



```
sudo dnf config-manager --set-enabled google-chrome

```

![](/data/attachment/album/202011/25/094527i8xgqqw5x5xttx4y.png)


要安装 Google Chrome 稳定版，请在终端运行以下命令。



```
sudo dnf install google-chrome-stable

```

你会看到一个导入 GPG 密钥的警告，输入 `y` 继续。


![](/data/attachment/album/202011/25/094531ipk86sp89in3qlq9.png)


你正在添加 Google Chrome 仓库。这个软件包来自这个仓库，它直接来自 Google。


### 总结


即使你使用命令行，在 Fedora 上安装 Google chrome 也相当简单。除了第三方仓库的部分，这和[在 Ubuntu 上安装 Chrome](https://itsfoss.com/install-chrome-ubuntu/) 差不多。


现在你已经安装好了，你可能会想[查看我们的 Google Chrome 键盘快捷键列表](https://itsfoss.com/google-chrome-shortcuts/)来更快地使用浏览器。




---


via: <https://itsfoss.com/install-google-chrome-fedora/>


作者：[Dimitrios Savvopoulos](https://itsfoss.com/author/dimitrios/) 选题：[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)

Fedora comes with Firefox as the default web browser. Despite it being an excellent web browser, you may prefer the popular Google Chrome browser.

If you are wondering how to install Google Chrome on Fedora, let me show you two ways of installing Google Chrome, graphical method and command line method.

- GUI method 1: Install Chrome from the software center by enabling Fedora third-party repository
- GUI method 2: Download RPM file from Google Chrome’s website
- CLI method: Install Chrome from the Fedora third-party repository, everything using commands (same as GUI method 1)

It is up to you which method you prefer. Your Google Chrome on [Fedora](https://getfedora.org/?ref=itsfoss.com) will be getting regular updates via the system updates in all three methods.

## Method 1: Install Google Chrome on Fedora from the Software Center

Fedora provides a third-party repository that contains some popular proprietary software, and graphics driver. Google Chrome is one of them.

First step: [make sure to enable third-party repositories in Fedora](https://itsfoss.com/fedora-third-party-repos/). You should see this option in the software center itself.

![Fedora Third Party Repositories](https://itsfoss.com/content/images/wordpress/2020/11/fedora-third-party-repositories.jpg)

Once you have it enabled, simply search for Chrome in the software center:

![Chrome In Fedora](https://itsfoss.com/content/images/wordpress/2020/11/chrome-in-fedora.png)

And install it from there:

![Installing Chrome Fedora](https://itsfoss.com/content/images/wordpress/2020/11/installing-chrome-fedora.png)

Can it be any easier than this? I don’t think either :)

## Method 2: Installing Google Chrome on Fedora from Chrome website

If you do not want to enable the third-party repository, that’s okay. You don’t have to. You can download the RPM file from Chrome’s website, double-click on it and install it. Yes, [installing RPM file on Fedora](https://itsfoss.com/install-rpm-files-fedora/) is that simple.

Visit Google Chrome’s website and click on the download button.

![Download Google Chrome for installing it On Ubuntu](https://itsfoss.com/content/images/wordpress/2019/01/install-google-chrome-ubuntu-1-800x374.jpeg)

Then select the .rpm package and click on “Accept and Install”.

![Download Rpm Chrome](https://itsfoss.com/content/images/wordpress/2020/11/3.-download-rpm-chrome.png)

Once the download is over, double click on the file and click install when prompted at the package manager. Type your password and wait until the process is done.

![Install Chrome Fedora](https://itsfoss.com/content/images/wordpress/2020/11/4.-install-chrome-fedora.png)

That’s super easy, right? Let’s see somewhat complicated method (if you are not a terminal fan).

## Method 3: Install Chrome on Fedora using command line

Firstly, you need to add extra Fedora repositories (that you saw in method 1):

`sudo dnf install fedora-workstation-repositories`


And then enable Google Chrome repository.

`sudo dnf config-manager --set-enabled google-chrome`


![Fedora Extra Repos](https://itsfoss.com/content/images/wordpress/2020/11/1.-Fedora-extra-repos.png)

To install the Google Chrome stable release, run the following command at your terminal.

`sudo dnf install google-chrome-stable`


You should get a warning for importing the GPG key, enter y to continue.

![Fedora GPG Key](https://itsfoss.com/content/images/wordpress/2020/11/2.-Fedora-GPG-key.png)

You are adding the Google Chrome repository. The package comes from this repository, directly from Google.

## Conclusion

Installing Google chrome on Fedora is fairly easy, even if you use the command line. It’s pretty much the [same as installing Chrome on Ubuntu](https://itsfoss.com/install-chrome-ubuntu/) except the third-party repository part.

Now that you have installed it, you may want to [check our list of Google Chrome keyboard shortcuts](https://itsfoss.com/google-chrome-shortcuts/) to use the browser faster.

Don’t forget to subscribe to get the latest news and tutorials about Fedora, and if you have any questions, please leave a comment below.