YUMと依存関係、仕組み

YUMと依存関係、仕組み

インストールしたい湾岸協力協議会RHEL 7.4サーバーではインターネットに接続されていません。これを行うには、RHEL 7.4 isoをインストールし、LocalRepoというyumリポジトリファイルを設定してcdromからインストールしました。インストールしようとすると湾岸協力協議会次のエラーが見つかりました。

# yum --disablerepo=\* --enablerepo=LocalRepo install gcc
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Repository rhel-7-server-rpms is listed more than once in the configuration
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-16.el7 will be installed
--> Processing Dependency: cpp = 4.8.5-16.el7 for package: gcc-4.8.5-16.el7.x86_64
--> Processing Dependency: libgomp = 4.8.5-16.el7 for package: gcc-4.8.5-16.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-16.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-16.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-16.el7.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-16.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-196.el7 will be installed
--> Processing Dependency: glibc = 2.17-196.el7 for package: glibc-devel-2.17-196.el7.x86_64
--> Processing Dependency: glibc-headers = 2.17-196.el7 for package: glibc-devel-2.17-196.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-196.el7.x86_64
---> Package libgomp.i686 0:4.8.5-16.el7 will be installed
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
--> Running transaction check
---> Package glibc.i686 0:2.17-196.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-196.el7 for package: glibc-2.17-196.el7.i686
--> Processing Dependency: libfreebl3.so for package: glibc-2.17-196.el7.i686
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.17-196.el7.i686
---> Package glibc-headers.x86_64 0:2.17-196.el7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-196.el7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-196.el7.x86_64
--> Running transaction check
---> Package glibc.i686 0:2.17-196.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-196.el7 for package: glibc-2.17-196.el7.i686
---> Package kernel-headers.x86_64 0:3.10.0-693.el7 will be installed
---> Package nss-softokn-freebl.i686 0:3.28.3-6.el7 will be installed
--> Finished Dependency Resolution
Error: Package: glibc-2.17-196.el7.i686 (LocalRepo)
           Requires: glibc-common = 2.17-196.el7
           Installed: glibc-common-2.17-196.el7_4.2.x86_64 (@rhel-7-server-rpms)
               glibc-common = 2.17-196.el7_4.2
           Available: glibc-common-2.17-196.el7.x86_64 (LocalRepo)
               glibc-common = 2.17-196.el7
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: glibc-2.17-196.el7.i686 (LocalRepo)
           Requires: glibc-common = 2.17-196.el7
           Installed: glibc-common-2.17-196.el7_4.2.x86_64 (@rhel-7-server-rpms)
               glibc-common = 2.17-196.el7_4.2
           Available: glibc-common-2.17-196.el7.x86_64 (LocalRepo)
               glibc-common = 2.17-196.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

サーバーが更新されたようです一般的なグリップライブラリがインストールされているので、3つの質問があります。
1. インストール中のアイテムが今動作できることを知って、すでにインストールされているアイテムを使用するように yum に指示する方法はありますか?
2. yumに必要な項目をインストールするように指示する方法はありますか?一般的なグリップ他の場所にあるライブラリ(インストール可能)湾岸協力協議会
3.私の現在の状況に対する解決策を知っていますか? (インターネット接続なし)

よろしくお願いします!

ベストアンサー1

インターネットにアクセスできる他のサーバーがある場合は、yumインストールを実行する方が簡単な場合があります(または再インストールする必要があるかもしれません)--downloadonly gcc glib-commonレベルを確認してください。他のサーバー以上である必要があります。これにより、gccと依存関係を含むファイルが作成されます。インターネットにアクセスできないサーバーにファイルを移動し、yumインストールを実行します。

おすすめ記事