Кто-нибудь знает, почему два сервера показывают разные пакеты, доступные с yum

У меня два сервера с CentOS 7.3, но

Сервер 1

[root@frontalb]# cat /etc/*release CentOS Linux release 7.3.1611 (Core) NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" CentOS Linux release 7.3.1611 (Core) CentOS Linux release 7.3.1611 (Core) 

Сервер 2

 [root@frontala]# cat /etc/*release CentOS Linux release 7.3.1611 (Core) NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" CentOS Linux release 7.3.1611 (Core) CentOS Linux release 7.3.1611 (Core) 

Когда я проверяю, что реполист Frontala показывает меньше доступных пакетов, чем frontalb

 [root@frontalb yum.repos.d]# yum clean all Loaded plugins: fastestmirror Cleaning repos: base epel extras puppetlabs-deps puppetlabs-products updates Cleaning up everything Cleaning up list of fastest mirrors [root@frontalb yum.repos.d]# yum repolist Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 epel/x86_64/metalink | 26 kB 00:00:00 epel | 4.3 kB 00:00:00 extras | 3.4 kB 00:00:00 puppetlabs-deps | 2.5 kB 00:00:00 puppetlabs-products | 2.5 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/9): base/7/x86_64/group_gz | 155 kB 00:00:00 (2/9): epel/x86_64/group_gz | 170 kB 00:00:00 (3/9): base/7/x86_64/primary_db | 5.6 MB 00:00:00 (4/9): epel/x86_64/updateinfo | 793 kB 00:00:00 (5/9): extras/7/x86_64/primary_db | 151 kB 00:00:00 (6/9): puppetlabs-products/x86_64/primary_db | 69 kB 00:00:00 (7/9): puppetlabs-deps/x86_64/primary_db | 8.4 kB 00:00:00 (8/9): epel/x86_64/primary_db | 4.7 MB 00:00:00 (9/9): updates/7/x86_64/primary_db | 4.8 MB 00:00:00 Determining fastest mirrors * base: ftp.heanet.ie * epel: s3-mirror-eu-west-1.fedoraproject.org * extras: ftp.heanet.ie * updates: ftp.heanet.ie repo id repo name status base/7/x86_64 CentOS-7 - Base 9,363 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,629 extras/7/x86_64 CentOS-7 - Extras 337 puppetlabs-deps/x86_64 Puppet Labs Dependencies El 7 - x86_64 17 puppetlabs-products/x86_64 Puppet Labs Products El 7 - x86_64 225 updates/7/x86_64 CentOS-7 - Updates 1,585 repolist: 23,156 

На фронтальной реполисе только 23 001

 [root@frontala yum.repos.d]# yum clean all Loaded plugins: fastestmirror Cleaning repos: base epel extras puppetlabs-deps puppetlabs-products updates Cleaning up everything Cleaning up list of fastest mirrors [root@frontala yum.repos.d]# yum repolist Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 epel/x86_64/metalink | 26 kB 00:00:00 epel | 4.3 kB 00:00:00 extras | 3.4 kB 00:00:00 puppetlabs-deps | 2.5 kB 00:00:00 puppetlabs-products | 2.5 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/9): base/7/x86_64/group_gz | 155 kB 00:00:00 (2/9): epel/x86_64/group_gz | 170 kB 00:00:00 (3/9): epel/x86_64/updateinfo | 793 kB 00:00:00 (4/9): extras/7/x86_64/primary_db | 151 kB 00:00:00 (5/9): puppetlabs-products/x86_64/primary_db | 69 kB 00:00:00 (6/9): puppetlabs-deps/x86_64/primary_db | 8.4 kB 00:00:00 (7/9): base/7/x86_64/primary_db | 5.6 MB 00:00:00 (8/9): updates/7/x86_64/primary_db | 4.8 MB 00:00:00 (9/9): epel/x86_64/primary_db | 4.7 MB 00:00:00 Determining fastest mirrors * base: ftp.heanet.ie * epel: s3-mirror-eu-west-1.fedoraproject.org * extras: ftp.heanet.ie * updates: ftp.heanet.ie repo id repo name status base/7/x86_64 CentOS-7 - Base 9,313+50 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,624+5 extras/7/x86_64 CentOS-7 - Extras 337 puppetlabs-deps/x86_64 Puppet Labs Dependencies El 7 - x86_64 17 puppetlabs-products/x86_64 Puppet Labs Products El 7 - x86_64 225 updates/7/x86_64 CentOS-7 - Updates 1,485+100 repolist: 23,001 

У меня возникают проблемы, когда я хочу, например, обновить java, что я могу обновлять только на одном из двух серверов

Frontala

 [root@frontala yum.repos.d]# yum info java-1.7.0-openjdk Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.heanet.ie * epel: s3-mirror-eu-west-1.fedoraproject.org * extras: ftp.heanet.ie * updates: ftp.heanet.ie Installed Packages Name : java-1.7.0-openjdk Arch : x86_64 Epoch : 1 Version : 1.7.0.121 Release : 2.6.8.0.el7_3 Size : 549 k Repo : installed Summary : OpenJDK Runtime Environment URL : http://openjdk.java.net/ License : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and W3C Description : The OpenJDK runtime environment. 

Frontalb

 [root@cpe0012046-frontb yum.repos.d]# yum info java-1.7.0-openjdk Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.heanet.ie * epel: s3-mirror-eu-west-1.fedoraproject.org * extras: ftp.heanet.ie * updates: ftp.heanet.ie Installed Packages Name : java-1.7.0-openjdk Arch : x86_64 Epoch : 1 Version : 1.7.0.131 Release : 2.6.9.0.el7_3 Size : 549 k Repo : installed From repo : updates Summary : OpenJDK Runtime Environment URL : http://openjdk.java.net/ License : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and W3C Description : The OpenJDK runtime environment. Available Packages Name : java-1.7.0-openjdk Arch : x86_64 Epoch : 1 Version : 1.7.0.141 Release : 2.6.10.1.el7_3 Size : 231 k Repo : updates/7/x86_64 Summary : OpenJDK Runtime Environment URL : http://openjdk.java.net/ License : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and W3C Description : The OpenJDK runtime environment. 

Речь здесь заключалась в существовании исключенных пакетов в yum repolist :

 repo id repo name status base/7/x86_64 CentOS-7 - Base 9,313+50 epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,624+5 extras/7/x86_64 CentOS-7 - Extras 337 puppetlabs-deps/x86_64 Puppet Labs Dependencies El 7 - x86_64 17 puppetlabs-products/x86_64 Puppet Labs Products El 7 - x86_64 225 updates/7/x86_64 CentOS-7 - Updates 1,485+100 

… как указано знаком «плюс»: 1,485+100 .

Машина Frontalb показала пакет java как находящийся в репозитории updates/7/x86_64 , поэтому исключения должны быть удалены из этого репо на Frontala, чтобы он мог видеть java-пакет (ы).