サーバーで2つのyumリポジトリー(RHEL7.0およびRHEL7.2)を構成しようとしています。.repoファイルの作成が完了しました。以下の出力を参照してください。
[root@foundation ~]# yum repolist all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id repo name status
InstallMedia Red Hat Enterprise Linux 7.2 disabled
google-chrome google-chrome enabled: 3
rhel_7_0 RHEL 7.0 repository (foundation server) enabled: 4,305
rhel_7_2 RHEL 7.2 repository (foundation server) enabled: 4,620
repolist: 8,928
[root@foundation ~]#
カーネルパッケージを一覧表示しようとすると、RHEL7.2で使用可能なパッケージのみが表示されます。
[root@foundation ~]# yum list *kernel*
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Installed Packages
abrt-addon-kerneloops.x86_64 2.1.11-34.el7 @anaconda/7.2
kernel.x86_64 3.10.0-327.el7 @anaconda/7.2
kernel-headers.x86_64 3.10.0-327.el7 @foundation-repo
kernel-tools.x86_64 3.10.0-327.el7 @anaconda/7.2
kernel-tools-libs.x86_64 3.10.0-327.el7 @anaconda/7.2
Available Packages
kernel-abi-whitelists.noarch 3.10.0-327.el7 rhel_7_2
kernel-debug.x86_64 3.10.0-327.el7 rhel_7_2
kernel-debug-devel.x86_64 3.10.0-327.el7 rhel_7_2
kernel-devel.x86_64 3.10.0-327.el7 rhel_7_2
kernel-doc.noarch 3.10.0-327.el7 rhel_7_2
texlive-l3kernel.noarch 2:svn29409.SVN_4469-38.el7 rhel_7_2
[root@foundation ~]#
RHEL 7.0のカーネルパッケージも確認するにはどうすればよいですか?インストールできるようにしたい。また、yumに目的のリポジトリにパッケージをインストールさせるにはどうすればよいですか?例として、RHEL7.2リポジトリからではなくRHEL7.0リポジトリからインストールします。
上記の人々(RahulとJulie Pelletier)から収集した入力から、含めたくないリポジトリ(私の場合はrhel_7_0リポジトリ)を無効にすることで、特定のリポジトリからカーネルパッケージをインストールすることができました。
yum --disablerepo rhel_7_0 install -y kernel
その後、RHEL 7.0ボックス内のrhel_7_2リポジトリからカーネルをインストールし、正常に起動することができました。
[root@desktop2 ~]# yum list kernel
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Installed Packages
kernel.x86_64 3.10.0-123.el7 @anaconda/7.0
kernel.x86_64 3.10.0-327.el7 @rhel_7_2
[root@desktop2 ~]# grubby --default-kernel
/boot/vmlinuz-3.10.0-327.el7.x86_64
[root@desktop2 ~]# uname -r
3.10.0-327.el7.x86_64
[root@desktop2 ~]#
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加