Skip to content

Commit

Permalink
rpmfusion: Cleanup CentOS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jun 7, 2024
1 parent e50b51a commit f5eff88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rpmfusion.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ RPM Fusion 是为 Fedora/RHEL 提供额外 RPM 软件包的第三方软件源。

使用下列命令(在 bash 或兼容 shell 中),可以同时启用其 **free****nonfree** 软件源:

- Fedora 22 及更高版本
=== "Fedora 22 及更高版本"

```shell
sudo dnf install https://mirrors.ustc.edu.cn/rpmfusion/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.ustc.edu.cn/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
```

- RHEL 7 或兼容系统(如 CentOS):
=== "RHEL 或兼容系统(如 CentOS Stream)"

```shell
sudo yum localinstall --nogpgcheck https://mirrors.ustc.edu.cn/rpmfusion/free/el/rpmfusion-free-release-7.noarch.rpm https://mirrors.ustc.edu.cn/rpmfusion/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
sudo dnf install https://mirrors.ustc.edu.cn/rpmfusion/free/el/rpmfusion-free-release-$(rpm -E %centos_ver).noarch.rpm https://mirrors.ustc.edu.cn/rpmfusion/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %centos_ver).noarch.rpm
```

如果 `sudo` 不可用,你可以把以上命令中的 `sudo` 替换成 `su -c`
Expand Down

0 comments on commit f5eff88

Please sign in to comment.