概述
步骤 1:启用 PowerTools 存储库
要设置滚动,启动终端并安装 核心 DNF 插件 如下。
$ sudo dnf install dnf-plugins-core
安装后,转到下一步并启用 EPEL 存储库。
第 2 步:启用 EPEL 存储库
下一步是安装 EPEL。 EPEL 是 Extra Packages for Enterprise Linux 的首字母缩写词,是一个存储库,提供一组来自 Fedora 默认情况下不包含在 Red Hat 和 Red Hat 发行版(如 Rocky 和 AlmaLinux)上的项目。
要安装 EPEL,请运行以下命令:
$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
您可以通过运行以下命令来确认已安装 EPEL:
$ rpm -qi
该命令提供了复杂的详细信息,例如 EPEL 的名称、版本发布和架构。
实际操作:
[root@localhost yum.repos.d]# rpm -qi epel-release
未安装软件包 epel-release
[root@localhost yum.repos.d]# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Last metadata expiration check: 17:54:16 ago on 2023年01月31日 星期二 16时25分21秒.
epel-release-latest-8.noarch.rpm 25 kB/s | 24 kB 00:00
Dependencies resolved.
===============================================================================================
Package Architecture Version Repository Size
===============================================================================================
Installing:
epel-release noarch 8-18.el8 @commandline 24 k
Installing dependencies:
centos-gpg-keys noarch 1:8-3.el8 base 12 k
centos-linux-release noarch 8.5-1.2111.el8 base 22 k
centos-linux-repos noarch 8-3.el8 base 20 k
Transaction Summary
===============================================================================================
Install 4 Packages
Total size: 79 k
Installed size: 90 k
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] centos-gpg-keys-8-3.el8.noarch.rpm: Already downloaded
[SKIPPED] centos-linux-release-8.5-1.2111.el8.noarch.rpm: Already downloaded
[SKIPPED] centos-linux-repos-8-3.el8.noarch.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
file /etc/os-release from install of centos-linux-release-8.5-1.2111.el8.noarch conflicts with file from package kylin-release-10-24.6.p12.gfb03.ky10.aarch64
file /etc/rpm/macros.dist from install of centos-linux-release-8.5-1.2111.el8.noarch conflicts with file from package kylin-release-10-24.6.p12.gfb03.ky10.aarch64
file /etc/system-release from install of centos-linux-release-8.5-1.2111.el8.noarch conflicts with file from package kylin-release-10-24.6.p12.gfb03.ky10.aarch64
file /etc/system-release-cpe from install of centos-linux-release-8.5-1.2111.el8.noarch conflicts with file from package kylin-release-10-24.6.p12.gfb03.ky10.aarch64
file /usr/lib/systemd/system-preset/90-default.preset from install of centos-linux-release-8.5-1.2111.el8.noarch conflicts with file from package kylin-release-10-24.6.p12.gfb03.ky10.aarch64
【*1】transation test error (事务检查错误)报错解决
第一步:查询冲突的软件包
[root@localhost yum.repos.d]# rpm -q kylin-release
kylin-release-10-24.6.p12.gfb03.ky10.aarch64
第二步:尝试删除该旧软件包
[root@localhost yum.repos.d]# dnf remove kylin-release
Error:
Problem: 这个操作可能会导致删除以下受保护的软件包: systemd
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
第三步:解决第二步的报错,为了避免删除与该软件包相关的依赖包,换一种方式只删除该软件包。
[root@localhost yum.repos.d]# rpm -e --nodeps kylin-release
此时,该软件包已被删除。
此时继续执行安装epel的命令:
[root@localhost yum.repos.d]# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Unable to detect release version (use '--releasever' to specify release version)
Last metadata expiration check: 18:28:06 ago on 2023年01月31日 星期二 16时25分21秒.
epel-release-latest-8.noarch.rpm 20 kB/s | 24 kB 00:01
Dependencies resolved.
====================================================================================================
Package Architecture Version Repository Size
====================================================================================================
Installing:
epel-release noarch 8-18.el8 @commandline 24 k
Installing dependencies:
centos-gpg-keys noarch 1:8-3.el8 base 12 k
centos-linux-release noarch 8.5-1.2111.el8 base 22 k
centos-linux-repos noarch 8-3.el8 base 20 k
Transaction Summary
====================================================================================================
Install 4 Packages
Total size: 79 k
Installed size: 90 k
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] centos-gpg-keys-8-3.el8.noarch.rpm: Already downloaded
[SKIPPED] centos-linux-release-8.5-1.2111.el8.noarch.rpm: Already downloaded
[SKIPPED] centos-linux-repos-8-3.el8.noarch.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : centos-gpg-keys-1:8-3.el8.noarch 1/4
Installing : centos-linux-release-8.5-1.2111.el8.noarch 2/4
Installing : centos-linux-repos-8-3.el8.noarch 3/4
Installing : epel-release-8-18.el8.noarch 4/4
Running scriptlet: epel-release-8-18.el8.noarch 4/4
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.
Verifying : centos-gpg-keys-1:8-3.el8.noarch 1/4
Verifying : centos-linux-release-8.5-1.2111.el8.noarch 2/4
Verifying : centos-linux-repos-8-3.el8.noarch 3/4
Verifying : epel-release-8-18.el8.noarch 4/4
Installed:
epel-release-8-18.el8.noarch centos-gpg-keys-1:8-3.el8.noarch
centos-linux-release-8.5-1.2111.el8.noarch centos-linux-repos-8-3.el8.noarch
Complete!
安装成功!
参考材料:
怎样在 Rocky Linux 8 上启用 PowerTools 存储库 | 月灯依旧 (bynss.com)
How to fix Error: Transaction check error with dnf/yum | Andrew Wippler's Sketchpad
centos8.0安装docker报 Transaction test error:错误_杨宇sss的博客-CSDN博客
最后
以上就是鲜艳金毛为你收集整理的v10 server 安装EPEL、PowerTools 存储库【1】的全部内容,希望文章能够帮你解决v10 server 安装EPEL、PowerTools 存储库【1】所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复