• No : 64
  • 公開日時 : 2012/12/13 17:16
  • 更新日時 : 2021/06/24 13:22
  • 印刷

ニフクラで提供されているサブスクリプション付RHELでyumコマンドを実行する前提条件はありますか?

回答

前提条件はありません。
ニフクラにてご提供しているRed Hatイメージでは、
サーバー作成後、標準でRed Hat社のパッケージ管理システム(yum)が利用可能です。
 
■パッケージ管理システム利用方法
(1)対処パッケージの有無の確認(検索)
(2)対象パッケージのインストール
 
■具体的なコマンド例 例)「compat-libstdc++-33-3.2.3-61」の場合
(1)対象パッケージの有無の確認(検索)
[root@localhost ~]# yum search compat-libstdc++
Loaded plugins: katello, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Excluding Packages in global exclude list
Finished
============================================================
Matched: compat-libstdc++
============================================================
compat-libstdc++-296.i386 : 互換のある 2.96-RH 標準 C++ ライブラリ
compat-libstdc++-33.i386 : 標準 C++ 互換の共有ライブラリ
compat-libstdc++-33.x86_64 : 標準 C++ 互換の共有ライブラリ
(2)対象パッケージのインストール
[root@localhost ~]# yum install compat-libstdc++-33.x86_64
Loaded plugins: katello, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package compat-libstdc++-33.x86_64 0:3.2.3-61 set to be updated
--> Finished

Dependency Resolution

============================================================
Package Arch Version Repository Size
============================================================
Installing:
compat-libstdc++-33 x86_64 3.2.3-61 rhui-rhel-5-server-rhui-rpms 227 k

Transaction Summary
============================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 227 k
Is this ok [y/N]: y
Downloading Packages:
compat-libstdc++-33-3.2.3-61.x86_64.rpm | 227 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : compat-libstdc++-33 1/1
rhui-rhel-5-server-rhui-rpms/productid | 1.7 kB 00:00
Installed products updated.

Installed:
compat-libstdc++-33.x86_64 0:3.2.3-61

Complete!
 
関連FAQ:
公式FAQ【Red Hat Enterprise Linux(RHEL) にて提供されているパッケージの最新バージョンを知りたい】