首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在CentOS 8流中启用源下载的正确方法是什么?

在CentOS 8流中启用源下载的正确方法是什么?
EN

Unix & Linux用户
提问于 2020-12-16 11:14:01
回答 1查看 1.3K关注 0票数 1

所以我试着这么做:-

代码语言:javascript
复制
yumdownloader --source sendmail

但是遇到这个问题:-

代码语言:javascript
复制
Last metadata expiration check: 0:08:48 ago on Wed 16 Dec 2020 10:34:00 AM GMT.
No package sendmail-8.15.2-34.el8.src available.
Exiting due to strict setting.
Error: No package sendmail-8.15.2-34.el8.src available.

因此,我确保安装了epel etc,并且启用了/etc/yum.pos.d中的所有内容--但是没有现有的源信息。

CensOS医生毫无帮助地说:-

代码语言:javascript
复制
Source RPMs will also be published once the release is done, in the usual location at http://vault.centos.org/centos/8/

From a CentOS machine you can easily retrieve sources using the yumdownloader --source  command.

他们对easily的定义显然与我的不同。

现在,流发行版不是/8/在" CentOS- stream -AppStream.repo“中,它实际上是/8-stream/ -而且,我可以在http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/sendmail-8.15.2-34.el8.x86_64.rpm中找到我的sendmail二进制文件--从cd /etc/dnf/vars;cat `grep . *`中可以看出:contentdir:centos infra:stock stream:8-stream (CentOS-Stream-AppStream.repo基本URL是http://mirror.centos.org/$contentdir/$stream/AppStream/$basearch/os/ )

但是..。

https://vault.centos.org/centos/8-stream/只包含空文件夹-不包含重新数据或源文件,而/8/树不包含流源.grrr

我创建了下面的代码来启用所有的/8/源文件,但是sendmail-8.15.2-34.el8.src.rpm不是其中之一:

cat CentOS-Stream-Source.repo

代码语言:javascript
复制
[baseos-source]
name=CentOS Stream $releasever - BaseOS - Source
#baseurl=http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/
baseurl=https://vault.centos.org/$contentdir/$releasever/BaseOS/Source
#  /usr/libexec/platform-python -c 'import dnf, json; db = dnf.dnf.Base(); print(json.dumps(db.conf.substitutions, indent=2))' => { "arch": "x86_64", "basearch": "x86_64", "releasever": "8" }
#  See also: cd /etc/dnf/vars;grep . *  =>  contentdir:centos infra:stock stream:8-stream
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1

[appstream-source]
name=CentOS Stream $releasever - AppStream - Source
baseurl=https://vault.centos.org/$contentdir/$releasever/AppStream/Source
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1

[highavailability-source]
name=CentOS Stream $releasever - HighAvailability - Source
baseurl=https://vault.centos.org/$contentdir/$releasever/HighAvailability/Source
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1

[powertools-source]
name=CentOS Stream $releasever - PowerTools - Source
baseurl=https://vault.centos.org/$contentdir/$releasever/PowerTools/Source
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1

[centosplus-source]
name=CentOS Stream $releasever - centosplus - Source
baseurl=https://vault.centos.org/$contentdir/$releasever/centosplus/Source
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1

[extras-source]
name=CentOS Stream $releasever - extras - Source
baseurl=https://vault.centos.org/$contentdir/$releasever/extras/Source
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
gpgcheck=1

所以是的,很长的问题(抱歉),但是他们把这些糟糕的原始文件藏在哪里了--有人知道吗?(是的,我在打字之前做了JFGI .0写作时的结果)

EN

回答 1

Unix & Linux用户

发布于 2021-05-04 21:48:53

更新: SRPMs现在可以在https://vault.centos.org/centos/8-stream/AppStream/Source/SPackages/中使用

SRPMs目前不可用。

根据约翰尼休斯 on CentOS邮件列表 (2020年12月17日):

我确信src rpms也将在未来提供,一旦所有硬件和镜像到位(我们不能支持直接从控制所有构建的主题曲机器下载。但是在我们的构建系统中,SRPMS实际上是从git开始构建的。我们不直接使用srpms,我们是从git回购中构建的。

他为构建您自己的SRPM提供了以下指导:

如果您想创建SRPM ..。您将:======= git克隆https://git.centos.org/rpms/thermald cd thermald git签出14acf460654c5788d9c7792f36fed45c7e00a387 into_srpm.sh =======然后在git回复的SRPMs中使用SRPM。它也将爆炸,为您准备使用在规格和来源,以作出改变。如果您没有下载git工具。从哪里来的into_srpm.sh,您可以从这里获得: git克隆https://git.centos.org/centos-git-common

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/624738

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档