PowerTools无法启用

在安配置CentOS 8.5的过程中,因为安装IDL8.4软件,遇到lmgrd license服务器不能打开的原因,查了一圈之后,说是可能缺少lsb库,采用yum安装了redhat-lsb的包之后依旧无效。查到有人讲在用EPEL库安装lsb库时,需要启动PowerTools,按照以下方法启用PowerTools:

#安装config-manager插件
[root@cz] yum install dnf-plugins-core
#使用DNF启用PowerTools配置管理器
[root@cz] dnf config-manager --set-enabled powertools

发现显示系统没有powertools repo,但是在系统/etc/yum.repos.d/ 中明明有CentOS-Linux-PowerTools.repo文件存在,网上查了一圈,发现这个方法管用,用一下内容替换原CentOS-Linux-PowerTools.repo的内容

[powertools]
name=CentOS Linux $releasever - PowerTools
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra
baseurl=https://mirrors.tuna.tsinghua.edu.cn/$contentdir/$releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

设置好之后就可以了,看来是源的问题。

Repo管理

# 列出系统中可以使用的repo库
[root@cz] dnf repolist
# 查看PowerTools资源库中可用的软件包列表
[root@cz] dnf repo-pkgs powertools list
Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐