如何在 Fedora 上安装 Steam
Steam
![](/data/attachment/album/202104/16/090703cg4t5npnseskhxhv.jpg)


Steam 对 Linux 游戏玩家来说是最好的东西了。由于 Steam，你可以在 Linux 上玩成百上千的游戏。


如果你还不知道，Steam 是最流行的 PC 游戏平台。2013 年，它开始可以在 Linux 使用。[Steam 最新的 Proton 项目](https://itsfoss.com/steam-play-proton/) 允许你在 Linux 上玩为 Windows 平台创建的游戏。这让 Linux 游戏库增强了许多倍。


![](/data/attachment/album/202104/16/090713q4k3d4b3q0zk0z90.jpg)


Steam 提供了一个桌面客户端，你可以用它从 Steam 商店下载或购买游戏，然后安装并玩它。


过去我们曾讨论过 [在 Ubuntu 上安装 Steam](https://itsfoss.com/install-steam-ubuntu-linux/)。在这个初学者教程中，我将向你展示在 Fedora Linux 上安装 Steam 的步骤。


### 在 Fedora 上安装 Steam


要在 Fedora 上使用 Steam，你必须使用 RMPFusion 软件库。[RPMFusion](https://rpmfusion.org/) 是一套第三方软件库，其中包含了 Fedora 选择不与它们的操作系统一起发布的软件。它们提供自由（开源）和非自由（闭源）的软件库。由于 Steam 在非自由软件库中，你将只安装那一个。


我将同时介绍终端和图形安装方法。


#### 方法 1：通过终端安装 Steam


这是最简单的方法，因为它需要的步骤最少。只需输入以下命令即可启用仓库：



```
sudo dnf install https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

```

你会被要求输入密码。然后你会被要求验证是否要安装这些仓库。你同意后，仓库安装就会完成。


要安装 Steam，只需输入以下命令：



```
sudo dnf install steam

```

![Install Steam via command line](/data/attachment/album/202104/16/090715vn65cvcs4zc8vs46.png)


输入密码后按 `Y` 接受。安装完毕后，打开 Steam，玩一些游戏。


#### 方法 2：通过 GUI 安装 Steam


你可以从软件中心 [启用 Fedora 上的第三方仓库](https://itsfoss.com/fedora-third-party-repos/)。打开软件中心并点击菜单。


![](/data/attachment/album/202104/16/090717i3iiy80p1133iq2q.png)


在 “软件仓库” 窗口中，你会看到顶部有一个 “第三方软件仓库”。点击 “安装” 按钮。当提示你输入密码时，就完成了。


![](/data/attachment/album/202104/16/090718xsxuw6mazyog0wu0.png)


安装了 Steam 的 RPM Fusion 仓库后，更新你系统的软件缓存（如果需要），并在软件中心搜索 Steam。


![Steam in GNOME Software Center](/data/attachment/album/202104/16/090719bkcpwg1bbzukzu11.jpg)


安装完成后，打开 GNOME 软件中心，搜索 Steam。找到 Steam 页面后，点击安装。当被问及密码时，输入你的密码就可以了。


安装完 Steam 后，启动应用，输入你的 Steam 帐户详情或注册它，然后享受你的游戏。


### 将 Steam 作为 Flatpak 使用


Steam 也可以作为 Flatpak 使用。Fedora 上默认安装 Flatpak。在使用该方法安装 Steam 之前，我们必须安装 Flathub 仓库。


![Install Flathub](/data/attachment/album/202104/16/090721h2vcc42n3m9nvgiv.jpg)


首先，在浏览器中打开 [Flatpak 网站](https://www.flatpak.org/setup/Fedora/)。现在，点击标有 “Flathub repository file” 的蓝色按钮。浏览器会询问你是否要在 GNOME 软件中心打开该文件。点击确定。在 GNOME 软件中心打开后，点击安装按钮。系统会提示你输入密码。


如果你在尝试安装 Flathub 仓库时出现错误，请在终端运行以下命令：



```
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

```

安装好 Flathub 仓库后，你需要做的就是在 GNOME 软件中心搜索 Steam。找到后，安装它，你就可以开始玩了。


![Fedora Repo Select](/data/attachment/album/202104/16/090722ohpqoiiqaquuir9o.jpg)


Flathub 版本的 Steam 也有几个附加组件可以安装。其中包括一个 DOS 兼容工具和几个 [Vulkan](https://developer.nvidia.com/vulkan) 和 Proton 工具。


![](/data/attachment/album/202104/16/090723jl5l6y2jdpxf5dl5.jpg)


我想这应该可以帮助你在 Fedora 上使用 Steam。享受你的游戏 :smiley:




---


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


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

Steam is the best thing that could happen to Linux gamers. Thanks to Steam, you can play hundreds and thousands of games on Linux.

If you are not already aware of it, Steam is the most popular PC gaming platform. In 2013, it became available for Linux. [Steam’s latest Proton project](https://itsfoss.com/steam-play-proton/) allows you to play games created for Windows platform on Linux. This enhanced Linux gaming library many folds.

![Steam Store](https://itsfoss.com/content/images/wordpress/2017/05/Steam-Store-800x382.jpg)

Steam provides a desktop client and you can use it to download or purchase games from the Steam store, install the game and play it.

We have discussed [installing Steam on Ubuntu](https://itsfoss.com/install-steam-ubuntu-linux/) in the past. In this beginner’s tutorial, I am going to show you the steps for installing Steam on Fedora Linux.

## Installing Steam on Fedora

To get Steam on Fedora, you’ll have to use RMPFusion repository. [RPMFusion](https://rpmfusion.org/?ref=itsfoss.com) is a series of third-party repos that contain software that Fedora chooses not to ship with their operating system. They offer both free (open source) and non-free (closed source) repos. Since Steam is in the non-free repo, you will only install that one.

I shall go over both the terminal and graphical installation methods.

### Method 1: Install Steam via terminal

This is the easiest method because it requires the fewest steps. Just enter the following command to enable the non-free repo:

`sudo dnf install https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm`


You will be asked to enter your password. You will then be asked to verify that you want to install these repos. Once you approve it, the installation of the repo will be completed.

To install Steam, simply enter the following command:

`sudo dnf install steam`


![Install Steam via command line](https://itsfoss.com/content/images/wordpress/2021/03/install-steam-fedora-800x588.png)

Enter your password and press “Y” to accept. Once installed, open Steam and play some games.

### Method 2: Install Steam via GUI

You can [enable the third-party repository on Fedora](https://itsfoss.com/fedora-third-party-repos/) from the Software Center. Open the Software Center application and click on the hamburger menu:

![Enable third party repository from software ceneter in Fedora](https://itsfoss.com/content/images/wordpress/2020/11/software-meni-800x672.png)

In the Software Repositories window, you will see a section at the top that says “Third Party Repositories”. Click the Install button. Enter your password when you are prompted and you are done.

![Fedora Third Party Repo Gui](https://itsfoss.com/content/images/wordpress/2020/11/fedora-third-party-repo-gui-746x800.png)

Once you have installed RPM Fusion repository for Steam, update your system’s software cache (if needed) and search for Steam in the software center.

![Steam in Gnome Software Center](https://itsfoss.com/content/images/wordpress/2021/03/gnome-store-steam-800x434.jpg)

Once that installation is complete, open up the GNOME Software Center and search for Steam. Once you locate the Steam page, click install. Enter your password when asked and you’re done.

After installing Steam, start the application, enter your Steam account details or register for it and enjoy your games.

## Using Steam as Flatpak

Steam is also available as a Flatpak. Flatpak is installed by default on Fedora. Before we can install Steam using that method, we have to install the Flathub repo.

![Install Flathub](https://itsfoss.com/content/images/wordpress/2021/03/flatpak-install-button-800x434.jpg)

First, open the [Flatpak site](https://www.flatpak.org/setup/Fedora/?ref=itsfoss.com) in your browser. Now, click the blue button marked “Flathub repository file”. The browser will ask you if you want to open the file in GNOME Software Center. Click okay. Once GNOME Software Center open, click the install button. You will be prompted to enter your password.

If you get an error when you try to install the Flathub repo, run this command in the terminal:

`flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo`


With the Flathub repo installed, all you need to do is search for Steam in the GNOME Software Center. Once you find it, install it, and you are ready to go.

![Fedora Repo Select](https://itsfoss.com/content/images/wordpress/2021/03/fedora-repo-select-800x434.jpg)

The Flathub version of Steam has several add-ons you can install, as well. These include a DOS compatibility tool and a couple of tools for [Vulkan](https://developer.nvidia.com/vulkan?ref=itsfoss.com) and Proton.

![Steam Addons](https://itsfoss.com/content/images/wordpress/2021/03/steam-flatpak-addons-800x434.jpg)

I think this should help you with Steam on Fedora. Enjoy your games :)