安装 Chromium 或 Google Chrome 浏览器

Peter Lilley Version unspecified Last review: 2021-01-17

本页讨论非 Fedora 项目官方附属或认可的第三方软件源。请自行决定是否使用它们。Fedora 推荐您使用免费和开源软件,同时建议您避免使用受专利保护的软件。

Chromium and Google Chrome web browsers

Fedora Workstation, in its out of the box configuration, only includes free and open source software. Mozilla Firefox is the browser included in Fedora Workstation by default. However, it easy to install either Google Chrome or Chromium, if preferred.

Chromium

Chromium is the upstream project for Google Chrome. Chromium is included in the Fedora Repositories. Fedora’s Chromium package only contains free and open source software, so does not include several features of Google Chrome that rely on proprietary software.

Google Chrome

Google Chrome is a popular web browser developed by Google. Chrome is built on top of the open-source browser project, Chromium. Chrome includes additional features such as support for proprietary media files (such as H.264 or AAC) and playback of rights-protected media (Netflix, etc.) Chrome also includes support for other Google services such as browser sync and location services, which are not supported by Chromium.

Google Chrome is available in Fedora Workstation via a curated third-party repository. Once this repository is enabled, Chrome can be installed via Software or the command line.

Installing the browsers

Both Chromium and Google Chrome can be installed on Fedora.

Installing Chromium

Chromium can be installed using the Software application and via command line.

Installing Chromium using Software (GUI)

  1. Click on Software tool in Fedora.

  2. Search for Chromium Web Browser.

  3. Click on Install.

Installing Chromium using Terminal

  1. To install Chromium Web Browser, use the command:

    # dnf install chromium
  2. To upgrade Chromium, use the command:

    # dnf upgrade chromium

Installing Chrome

Chrome can be installed using Software or a terminal, once the repository is enabled.

Installing Chrome using Software (GUI)

  1. Open the Software application.

  2. Click on the menu at the top right and select Software Repositories.

  3. Make sure Third Party Repositories is enabled. If the button label is Install, then click that button to install the third party repositiories. If the button reads Remove All then the third party repositories are already installed.

    installing chromium or google chrome browsers 0

  4. Scroll down to find the repository called google-chrome. Click on it and choose Enable.

    installing chromium or google chrome browsers 1

You can now search for Google Chrome in Software, and install it.

Installing Chrome using Terminal

The additional repositories can also be managed using a terminal and DNF.

  1. Install Third Party Repositories

    $ sudo dnf install fedora-workstation-repositories
  2. Enable the Google Chrome repo:

    $ sudo dnf config-manager --set-enabled google-chrome
  3. Finally, install Chrome:

    $ sudo dnf install google-chrome-stable

If you want to install the Chrome Dev Channel version, use the following command:

$ sudo dnf install google-chrome-unstable

If you want to install Chrome Beta use the following:

$ sudo dnf install google-chrome-beta