notes icon indicating copy to clipboard operation
notes copied to clipboard

CentOS 8: No matching repo to modify: PowerTools

Open lanlin opened this issue 4 years ago • 0 comments

情形

  1. install CentOS 8
  2. install the config-manager plugin for dnf
  3. issue dnf config-manager --set-enabled PowerTools
  4. 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 仍然可以继续使用

lanlin avatar Jan 12 '21 03:01 lanlin