notes
notes copied to clipboard
CentOS 8: No matching repo to modify: PowerTools
情形
- install CentOS 8
- install the config-manager plugin for dnf
- issue
dnf config-manager --set-enabled PowerTools Error: No matching repo to modify: PowerTools.
原因
为了 CentOS Linux 迁移到 CentOS Stream 的过程更加容易,
官方自 CentOS Linux 8.3.2011 起,对 /etc/yum.repos.d 中的一些文件名称已经被修改。
改动前后对比
| Repoid (8.2.2004 and before) | Repoid (8.3.2011 and later) |
|---|---|
| BaseOS | baseos |
| AppStream | appstream |
| PowerTools | powertools |
| centosplus | plus |
| HighAvailability | ha |
| base-debuginfo | debuginfo |
| Devel | devel |
| BaseOS-source | baseos-source |
| AppStream-source | appstream-source |
| centosplus-source | plus-source |
| base-debuginfo | debuginfo |
使用
参照上述改动,针对 PowerTools 改动后的 install 指令如下:
dnf config-manager --set-enabled powertools
PS: dnf 是新的包管理工具,不过 yum 仍然可以继续使用