
저는 2개의 서버에서 CentOS를 실행하고 있으며 둘 다 yum 3.2.19를 사용하고 있습니다. 한 서버에는 이중성이 표시되지만 다른 서버에는 표시되지 않습니다. 리폴리스를 확인했는데 일치합니다.
서버1:
[root@localhost yum.repos.d]# yum repolist all
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: pubmirrors.reflected.net
* updates: mirror.atlanticmetro.net
* addons: chi-10g-1-mirror.fastsoft.net
* extras: mirrors.greenmountainaccess.net
repo id repo name status
addons CentOS-5 - Addons enabled: 0
base CentOS-5 - Base enabled: 2,508
c5-media CentOS-5 - Media disabled
centosplus CentOS-5 - Plus disabled
contrib CentOS-5 - Contrib disabled
extras CentOS-5 - Extras enabled: 311
updates CentOS-5 - Updates enabled: 339
repolist: 3,158
서버2:
[root@server yum.repos.d]# yum repolist all
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sanctuaryhost.com
* updates: mirror.trouble-free.net
* addons: mirror.skiplink.com
* extras: mirror.atlanticmetro.net
repo id repo name status
addons CentOS-5 - Addons enabled: 0
base CentOS-5 - Base enabled: 2,508
c5-media CentOS-5 - Media disabled
centosplus CentOS-5 - Plus disabled
contrib CentOS-5 - Contrib disabled
extras CentOS-5 - Extras enabled: 311
updates CentOS-5 - Updates enabled: 339
repolist: 3,158
Server1은 yum에서 이중성을 확인합니다.
[root@localhost yum.repos.d]# yum search duplicity
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: pubmirrors.reflected.net
* updates: mirror.atlanticmetro.net
* addons: chi-10g-1-mirror.fastsoft.net
* extras: mirrors.greenmountainaccess.net
============================================================ Matched: duplicity =============================================================
duplicity.i386 : Encrypted bandwidth-efficient backup using rsync algorithm
Server2에는 이중성이 표시되지 않습니다.
[root@server yum.repos.d]# yum search duplicity
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sanctuaryhost.com
* updates: mirror.trouble-free.net
* addons: mirror.skiplink.com
* extras: mirror.atlanticmetro.net
Excluding Packages in global exclude list
Finished
Warning: No matches found for: duplicity
No Matches found
내가 무엇을 놓치고 있습니까(Server2에서 yum을 사용하여 이중성을 얻으려고 시도 중)? 나는 거울이 다르다는 것을 알고 있지만 저장소가 동일하다면 그것이 중요하지 않을 것이라고 생각했습니다.
답변1
우선, 미러가 항상 저장소를 완전히 '미러링'하는 것은 아닙니다.
둘째, 먼저 다음 작업을 수행해 보세요.
user@host:[~]$ yum clean all
답변2
두 번째 서버가 표시됩니다.
전역 제외 목록에서 패키지 제외
이중성이 언급된 경우 전역 제외 목록을 확인하세요.
답변3
몇 가지 사항:
3.2.19는 어디서 얻었습니까? CentOS-5의 일반적인 yum 버전이 아닙니다.
머신 중 하나가 특정 패키지를 제외시킨 경우 --disableexcludes=all을 사용하여 제외를 비활성화할 수 있습니다.
디토. 패키지(--noplugins 또는 --disableplugin=)를 제외할 수 있는 플러그인(예: versionlock)을 비활성화합니다.
나는 3.2.19 repolist가 repos의 데이터에 대한 타임스탬프를 제공할 것이라고 확신합니다. with: yum repolist -v ... 그런 다음 타임스탬프가 일치하지 않으면 이전 버전에서 "yum cleanexpiration-cache"를 수행하려고 합니다(그러나 패키지가 누락된 경우에는 그럴 가능성이 가장 낮습니다).
답변4
여기에 있는 내용을 보면 'yum --disableplugins'를 시도해보고 싶을 것 같습니다. server2의 yum은 한 미러가 server1의 다른 미러보다 빠르다고 생각하고 있을 것입니다. 가장 빠른 미러 플러그인을 비활성화하면 문제 해결에 도움이 될 수 있습니다. 특정 저장소에 대한 우선순위를 설정할 수 있는 플러그인인 yum 우선순위를 살펴볼 수도 있습니다.
다음은 yum 우선순위 링크입니다: http://wiki.centos.org/PackageManagement/Yum/Priorities