rhel 8.0 repo, "module" 및 "+"가 포함된 패키지 이름은 다시 폴리싱할 때 인식되지 않습니다.

rhel 8.0 repo,

이상한 문제가 있습니다. 제목에서 언급했듯이 "module"과 "+"가 포함된 패키지 이름은 rhel 8.0 저장소에서 인식되지 않습니다.

yum 서버에는 10개의 패키지가 있습니다.

[root@centos77 rhel8]# pwd
/var/www/html/yum/rhel8
[root@centos77 rhel8]# 
[root@centos77 rhel8]# ls
buildah-1.11.6-4.module+el8.1.1+5259+bcdd613a.x86_64.rpm                     preupgrade-assistant-2.6.1-1.el6.noarch.rpm
containernetworking-plugins-0.8.3-4.module+el8.1.1+5259+bcdd613a.x86_64.rpm  preupgrade-assistant-contents-0.6.41-2.el6.noarch (1).rpm
containers-common-0.1.40-8.module+el8.1.1+5351+506397b0.x86_64.rpm           python-rhsm-1.18.7-1.el6_9.x86_64.rpm
container-selinux-2.124.0-1.module+el8.1.1+5259+bcdd613a.noarch.rpm          python-rhsm-certificates-1.18.7-1.el6_9.x86_64.rpm
fuse-overlayfs-0.7.2-1.module+el8.1.1+5259+bcdd613a.x86_64.rpm               repodata
grep-2.20-2.el7.x86_64.rpm
[root@centos77 rhel8]# 
[root@centos77 rhel8]# ls |grep rpm -c
10

그런 다음 rhel8.0 시스템을 사용하여 테스트 서버에 repo 파일을 만들었습니다. ISO를 패키지 소스로 사용하는 local.repo가 ​​있습니다. 자세한 내용은 다음과 같습니다.

[root@rhel8 yum.repos.d]# ls
bak  local.repo  redhat.repo  security.repo
[root@rhel8 yum.repos.d]# 
[root@rhel8 yum.repos.d]# 
[root@rhel8 yum.repos.d]# cat local.repo 
[base]
name=base
baseurl=file:///mnt/BaseOS
enabled=1
gpgcheck=0

[appstream]
name=appstream
baseurl=file:///mnt/AppStream
enabled=1
gpgcheck=0
[root@rhel8 yum.repos.d]# 
[root@rhel8 yum.repos.d]# cat security.repo 
[security]
name=security
baseurl=http://192.168.88.177/yum/rhel8
enabled=1
gpgcheck=0
[root@rhel8 yum.repos.d]# 

하지만 문제는 "yum repolist"를 실행할 때 security.repo에 yum 서버에 표시된 것만큼 많지 않은 6개의 패키지만 표시된다는 것입니다.

[root@rhel8 yum.repos.d]# yum repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:08:45 ago on Thu 09 Jul 2020 05:26:14 PM CST.
repo id                           repo name                               status
appstream                         appstream                               4,672
base                              base                                    1,658
security                          security                                5

하지만 "yum repolist --disablerepo=* --enablerepo=security"를 실행하면 yum 서버에 있는 패키지 수만큼 10개의 패키지가 있습니다. 확인해 보니 인식할 수 없는 패키지가 아래에 있고 이름에 "모듈"과 "+"가 있습니다.

buildah-1.11.6-4.module+el8.1.1+5259+bcdd613a.x86_64.rpm
containernetworking-plugins-0.8.3-4.module+el8.1.1+5259+bcdd613a.x86_64.rpm
containers-common-0.1.40-8.module+el8.1.1+5351+506397b0.x86_64.rpm
container-selinux-2.124.0-1.module+el8.1.1+5259+bcdd613a.noarch.rpm
fuse-overlayfs-0.7.2-1.module+el8.1.1+5259+bcdd613a.x86_64.rpm

ベストアンサー1

おすすめ記事