centos-7 的模拟模板是什么?

centos-7 的模拟模板是什么?

我看到有些网站提到了附带的 centos-7 模板mock,

/etc/mock/centos-7-aarch64.cfg
/etc/mock/centos-7-armhfp.cfg
/etc/mock/centos-7-i386.cfg
/etc/mock/centos-7-ppc64.cfg
/etc/mock/centos-7-ppc64le.cfg
/etc/mock/centos-7-x86_64.cfg

但是,在我的安装中mockcentos-7缺少这些文件?我使用哪个模板?

yum info mock我看来,

yum info mock

Installed Packages
Name        : mock
Arch        : noarch
Version     : 1.4.21
Release     : 1.el7
Size        : 741 k
Repo        : installed
From repo   : epel
Summary     : Builds packages inside chroots
URL         : https://github.com/rpm-software-management/mock/
License     : GPLv2+
Description : Mock takes an SRPM and builds it in a chroot.

yumdb info mock

# yumdb info mock
Loaded plugins: fastestmirror
mock-1.4.21-1.el7.noarch
     checksum_data = 1e1b04f2009acef02f05aaf1af5b32a4cb5bce49eb0029803d8990f832bf09e4
     checksum_type = sha256
     command_line = install mock
     from_repo = epel
     from_repo_revision = 1574209186
     from_repo_timestamp = 1574209353
     installed_by = 1000
     origin_url = https://dfw.mirror.rackspace.com/epel/7/x86_64/Packages/m/mock-1.4.21-1.el7.noarch.rpm
     reason = user
     releasever = 7
     var_contentdir = centos
     var_cp_centos_major_version = 7
     var_infra = stock
     var_uuid = 54909cf4-080d-4942-bf31-ef058b297752

这些文件似乎不在rpm 指向的 git repo

答案1

mock您似乎已经安装了EPEL 提供的 较新版本。

对于该包,配置文件从 RPM 包更改为/etc/mock/centos-7-x86_64.cfg并由/etc/mock/epel-7-x86_64.cfgRPM 包提供mock-core-configs

较新的mock似乎是为了过渡到dnfpython3,因此他们可能已经删除了他们不再想要维护的架构。如果您想要引用的配置的完整列表,您可能需要降级到 CentOS 版本的mock.

相关内容