第2章 インストールシステム
本章では、コンテンツセットへのアクセス方法、システムへの Red Hat Software Collections 3.0 のインストール方法、および Red Hat Software Collections の再構築方法について詳しく説明します。
2.1. Red Hat Software Collections へのアクセス
Red Hat Software Collections コンテンツセットは、https://access.redhat.com/solutions/472793に記載されている Red Hat Enterprise Linux 6 および Red Hat Enterprise Linux 7 サブスクリプションをご利用いただけます。Red Hat Enterprise Linux システムを登録したサブスクリプション管理サービスに応じて、Red Hat Subscription Management を使用して Red Hat Software Collections を有効にするか、RHN Classic を使用して Red Hat Software Collections を有効にすることができます。RHN Classic または Red Hat Subscription Management を使用して Red Hat Software Collections を有効にする方法の詳細な手順については、以下の各セクションを参照してください。システムをこれらのサブスクリプション管理サービスのいずれかに登録する方法については、Using and Configuring Red Hat Subscription Managerを参照してください。
Red Hat Software Collections 2.2 以降、Red Hat Software Collections および Red Hat Developer Toolset のコンテンツは、(特に Server および Workstation 向けに) https://access.redhat.com/downloads にて ISO 形式でも提供されています。なお、「オプションチャンネルからのパッケージ」 に掲載されている
Optional チャンネルを必要とするパッケージは、ISO イメージからはインストールできません。
注記
Optional チャンネルを必要とするパッケージは、ISO イメージからはインストールできません。Optional チャンネルの有効化を必要とするパッケージのリストは、「オプションチャンネルからのパッケージ」 で提供されています。
ベータコンテンツは ISO 形式では使用できません。
2.1.1. Red Hat Subscription Management の使用
システムが Red Hat Subscription Management に登録されている場合は、以下の手順を実施して、Red Hat Software Collections のリポジトリーへのアクセスを提供するサブスクリプションを割り当て、リポジトリーを有効にします。
- システムで利用可能なサブスクリプションの一覧を表示し、Red Hat Software Collections を提供するサブスクリプションのプール ID を判別します。これを行うには、
rootで次のコマンドを実行します。subscription-manager list --availableこのコマンドは、使用可能なサブスクリプションごとに、その名前、一意の識別子、有効期限、およびそれに関連するその他の詳細を表示します。プール ID は、Pool Idで始まる行に一覧表示されます。 rootで以下のコマンドを実行して、適切なサブスクリプションをシステムに割り当てます。subscription-manager attach --pool=pool_idpool_id を、直前のステップで確認したプール ID に置き換えます。システムに割り当てているサブスクリプションの一覧を随時確認するには、rootで以下を入力します。subscription-manager list --consumed- 利用可能な Yum list リポジトリーの一覧を表示して、リポジトリーメタデータを取得し、Red Hat Software Collections リポジトリーの正確な名前を決定します。
rootで以下のコマンドを実行します。subscription-manager repos --listまたは、yum repolist all を簡単なリストに対して実行します。リポジトリー名は、使用している Red Hat Enterprise Linux のバージョンによって異なり、以下のフォーマットに基づいています。rhel-variant-rhscl-6-rpms rhel-variant-rhscl-6-debug-rpms rhel-variant-rhscl-6-source-rpms rhel-server-rhscl-6-eus-rpms rhel-server-rhscl-6-eus-source-rpms rhel-server-rhscl-6-eus-debug-rpms rhel-variant-rhscl-7-rpms rhel-variant-rhscl-7-debug-rpms rhel-variant-rhscl-7-source-rpms rhel-server-rhscl-7-eus-rpms rhel-server-rhscl-7-eus-source-rpms rhel-server-rhscl-7-eus-debug-rpms
variant を、Red Hat Enterprise Linux システムのバリアント (つまりserverまたはworkstationに置き換えます。Red Hat Software Collections は、ClientまたはComputeNodeバリアントではサポートされないことに注意してください。 rootで以下のコマンドを実行して、適切なリポジトリーを有効にします。subscription-manager repos --enable repository
サブスクリプションがシステムに割り当てられたら、「Red Hat Software Collections のインストール」の説明に従って Red Hat Software Collections をインストールできます。Red Hat Subscription Management を使用してシステムを登録し、サブスクリプションに関連付ける方法は、Using and Configuring Red Hat Subscription Managerを参照してください。
2.1.2. RHN Classic の使用
重要
Red Hat は RHN UI を停止しました。お客様におかれましては、ご契約のサポートを継続するために、RHSM への移行をお勧めいたします。2017 年 10 月 31 日をもって、お客様が RHN Hosted に登録することはできなくなります。d2018 年 3 月 31 日をもって、お客様は RHN Hosted からの更新を受け取れなくなります。
ご使用のシステムが RHN Classic に登録されている場合は、以下の手順で Red Hat Software Collections を購読してください。
- 利用可能なすべてのチャンネルのリストを表示し、Red Hat Software Collections チャンネルの正確な名前を決定します。これを行うには、
rootで次のコマンドを実行します。rhn-channel --available-channelsチャンネルの名前は、使用している Red Hat Enterprise Linux の特定のバージョンに依存し、次の形式であり、variantは Red Hat Enterprise Linux システムのバリアントserverまたはworkstationです。rhel-x86_64-variant-6-rhscl-1 rhel-x86_64-server-6.5.z-rhscl-1 rhel-x86_64-server-6.6.z-rhscl-1 rhel-x86_64-variant-7-rhscl-1 rhel-x86_64-server-7.1.eus-rhscl-1
Red Hat Enterprise Linux 7 チャンネルは、Red Hat Satellite インスタンスからのみアクセス可能です。注記Red Hat Software Collections 2.x は Red Hat Software Collections 1.x と同じチャネルで配布されています。 rootで以下のコマンドを実行して、システムを Red Hat Software Collections チャンネルに登録します。rhn-channel --add --channel=channel_namechannel_nameは、前のステップで決定した名前に置き換えてください。- 自分が登録しているチャンネルの一覧を確認します。
rootで以下のコマンドを実行します。rhn-channel --list
システムがサブスクライブされると、「Red Hat Software Collections のインストール」 で説明されているように、Red Hat Software Collections をインストールすることができます。システムを RHN Classic に登録する方法の詳細については、Using and Configuring Red Hat Subscription Managerを参照してください。
2.1.3. オプションチャンネルからのパッケージ
Red Hat Software Collections 3.0 パッケージの中には、これらのパッケージの完全なインストールを完了するために、
Optional チャンネルを有効にする必要があるものがあります。システムをこのチャンネルにサブスクライブする方法の詳細については、Red Hat Subscription Management の場合はhttps://access.redhat.com/solutions/392003、システムが RHN Classic に登録されている場合はhttps://access.redhat.com/solutions/70019 の関連ナレッジベース記事を参照してください。
Software Collections for Red Hat Enterprise Linux 6 のパッケージのうち、
Optional チャンネルを有効にする必要があるものを以下の表に示します。
表2.1 Red Hat Enterprise Linux 6 のオプションチャンネルの有効化を必要とするパッケージ
| Software Collection からのパッケージ | オプションチャンネルからの必須パッケージ |
|---|---|
| devtoolset-6-dyninst-testsuite | glibc-static |
| devtoolset-7-dyninst-testsuite | glibc-static |
| rh-git29-git-all | cvsps |
| rh-git29-git-cvs | cvsps |
| rh-git29-perl-Git-SVN | perl-YAML、subversion-perl |
| rh-mariadb101-boost-devel | libicu-devel |
| rh-mariadb101-boost-examples | libicu-devel |
| rh-mariadb101-boost-static | libicu-devel |
| rh-mongodb30upg-boost-devel | libicu-devel |
| rh-mongodb30upg-boost-examples | libicu-devel |
| rh-mongodb30upg-boost-static | libicu-devel |
| rh-mongodb30upg-yaml-cpp-devel | libicu-devel |
| rh-mongodb32-boost-devel | libicu-devel |
| rh-mongodb32-boost-examples | libicu-devel |
| rh-mongodb32-boost-static | libicu-devel |
| rh-mongodb32-yaml-cpp-devel | libicu-devel |
| rh-mongodb34-boost-devel | libicu-devel |
| rh-mongodb34-boost-examples | libicu-devel |
| rh-mongodb34-boost-static | libicu-devel |
| rh-mongodb34-yaml-cpp-devel | libicu-devel |
| rh-php56-php-imap | libc-client |
| rh-php56-php-recode | recode |
| rh-php70-php-imap | libc-client |
| rh-php70-php-recode | recode |
Red Hat Enterprise Linux 7 で
Optional チャンネルを必要とする Software Collection パッケージを以下の表に示します。
表2.2 Red Hat Enterprise Linux 7 のオプションチャンネルの有効化を必要とするパッケージ
| Software Collection からのパッケージ | オプションチャンネルからの必須パッケージ |
|---|---|
| devtoolset-7-dyninst-testsuite | glibc-static |
| devtoolset-7-gcc-plugin-devel | libmpc-devel |
| httpd24-mod_ldap | apr-util-ldap |
| rh-eclipse46 | ruby-doc |
| rh-eclipse46-eclipse-dltk-ruby | ruby-doc |
| rh-eclipse46-eclipse-dltk-sdk | ruby-doc |
| rh-eclipse46-eclipse-dltk-tests | ruby-doc |
| rh-git29-git-all | cvsps |
| rh-git29-git-cvs | cvsps |
| rh-git29-perl-Git-SVN | subversion-perl |
| rh-perl520-perl-Pod-Perldoc | groff |
なお、
Optional チャネルのパッケージはサポートされていません。詳細は、ナレッジベースの記事 https://access.redhat.com/articles/1150793 を参照してください。