英文:
My custom yum repository cannot see RPM files
问题
我已配置了一个带有nginx RPM的自定义存储库。它位于我的本地Artifactory上:https://artifactory/artifactory/rpm-nginx-prod-local/rhel8/
我可以看到我的RPM文件在那里:
Index of rpm-nginx-prod-local/rhel8
Name Last modified Size
../ repodata/ 11-Apr-2023 12:47 -
nginx-1.18.0-2.el8.ngx.x86_64.rpm 03-Dec-2020 15:00 798.63 KB
nginx-1.20.2-1.el8.ngx.x86_64.rpm 03-Dec-2021 12:07 820.03 KB
nginx-1.22.0-1.el8.ngx.x86_64.rpm 13-Jul-2022 14:28 826.56 KB
nginx-1.22.1-1.el8.ngx.x86_64.rpm 02-Nov-2022 14:03 828.23 KB
Artifactory/7.55.10 Server at artifactory Port 80
我还配置了/etc/yum.repos.d/:
cat /etc/yum.repos.d/nginx-rpms-rhel.repo
[nginx-rpms-rhel]
name=nginx - RHEL8 - x86_64 - REPO
baseurl=https://artifactory/artifactory/rpm-nginx-prod-local/rhel8/
enabled=1
fastestmirror_enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
proxy=_none_
但是,当我尝试从该存储库列出任何内容时,我收到以下错误:
yum search * --enablerepo=nginx-rpms-rhel --disablerepo="*"
No matches found.
yum install nginx --disablerepo=* --enablerepo=nginx-rpms-rhel
Error: Unable to find a match: nginx
yum install --disablerepo=* --enablerepo=nginx-rpms-rhel nginx-1.22.1-1.el8.ngx.x86_64
Error: Unable to find a match: nginx-1.22.1-1.el8.ngx.x86_64
这对我来说看起来很奇怪,因为我的Artifactory中有RPM文件。我在RHEL8上运行。
我尝试过运行yum clean all,但没有效果。
有任何想法吗?
英文:
I have configured a custom repository with nginx RPMs. It is located on my local Artifactory: https://artifactory/artifactory/rpm-nginx-prod-local/rhel8/
I can see that my RPMs are there:
Index of rpm-nginx-prod-local/rhel8
Name Last modified Size
../
repodata/ 11-Apr-2023 12:47 -
nginx-1.18.0-2.el8.ngx.x86_64.rpm 03-Dec-2020 15:00 798.63 KB
nginx-1.20.2-1.el8.ngx.x86_64.rpm 03-Dec-2021 12:07 820.03 KB
nginx-1.22.0-1.el8.ngx.x86_64.rpm 13-Jul-2022 14:28 826.56 KB
nginx-1.22.1-1.el8.ngx.x86_64.rpm 02-Nov-2022 14:03 828.23 KB
Artifactory/7.55.10 Server at artifactory Port 80
I also configured /etc/yum.repos.d/:
cat /etc/yum.repos.d/nginx-rpms-rhel.repo
[nginx-rpms-rhel]
name=nginx - RHEL8 - x86_64 - REPO
baseurl=https://artifactory/artifactory/rpm-nginx-prod-local/rhel8/
enabled=1
fastestmirror_enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
proxy=_none_
But when I try to list anything from that repo I get:
yum search * --enablerepo=nginx-rpms-rhel --disablerepo="*"
No matches found.
yum install nginx --disablerepo=* --enablerepo=nginx-rpms-rhel
Error: Unable to find a match: nginx
yum install --disablerepo=* --enablerepo=nginx-rpms-rhel nginx-1.22.1-1.el8.ngx.x86_64
Error: Unable to find a match: nginx-1.22.1-1.el8.ngx.x86_64
This looks really odd to me, because there are rpms in my Artifactory. I'm running on RHEL8.
I've tried to do yum clean all, but it is not the case.
Any ideas?
答案1
得分: 0
你可以尝试从以下命令中删除 "nginx.*yaml":
rm -rf /var/lib/dnf/modulefailsafe/nginx*.yaml
英文:
You can try to remove nginx.*yaml from
rm -rf /var/lib/dnf/modulefailsafe/nginx*.yaml
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论