第2章 インストール

本章では、コンテンツセットへのアクセスし、システムに Red Hat Software Collections 3.6 をインストールし、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 Subscription Management (RHSM) でシステムを登録する方法は、Using and Configuring Red Hat Subscription Manager を参照してください。RHSM を使用して Red Hat Software Collections を有効にする方法は、「Red Hat Subscription Management の使用」 を参照してください。
Red Hat Software Collections 2.2 以降、Red Hat Software Collections および Red Hat Developer Toolset のコンテンツは、(特に Server および Workstation 向けに) https://access.redhat.com/downloads にて ISO 形式でも提供されています。「Optional リポジトリーからのパッケージ」 に記載されている Optional リポジトリーを必要とするパッケージは、ISO イメージからインストールできないことに注意してください。
注記
Optional リポジトリーを必要とするパッケージを ISO イメージからインストールすることはできません。Optional リポジトリーの有効化が必要なパッケージの一覧は、「Optional リポジトリーからのパッケージ」 で提供されています。
ベータコンテンツは ISO 形式では使用できません。

2.1.1. Red Hat Subscription Management の使用

システムが Red Hat Subscription Management に登録されている場合は、以下の手順を実施して、Red Hat Software Collections のリポジトリーへのアクセスを提供するサブスクリプションを割り当て、リポジトリーを有効にします。
  1. システムで利用可能なサブスクリプションの一覧を表示し、Red Hat Software Collections を提供するサブスクリプションのプール ID を判別します。これを行うには、root で次のコマンドを実行します。
    subscription-manager list --available
    このコマンドは、使用可能なサブスクリプションごとに、その名前、一意の識別子、有効期限、およびそれに関連するその他の詳細を表示します。プール ID は、Pool Id で始まる行に一覧表示されます。
  2. root で以下のコマンドを実行して、適切なサブスクリプションをシステムに割り当てます。
    subscription-manager attach --pool=pool_id
    pool_id を、直前のステップで確認したプール ID に置き換えます。システムに割り当てているサブスクリプションの一覧を随時確認するには、root で以下を入力します。
    subscription-manager list --consumed
  3. 利用可能な 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 バリアントではサポートされないことに注意してください。
  4. 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 を参照してください。
注記
RHN によるサブスクリプションは利用できなくなりました。RHSM への移行方法は https://access.redhat.com/products/red-hat-subscription-management/#migration を参照してください。

2.1.2. Optional リポジトリーからのパッケージ

Red Hat Software Collections パッケージの一部では、このパッケージの完全なインストールを完了するために、Optional リポジトリーを有効にする必要があります。このリポジトリーにシステムをサブスクライブする方法の詳細は、https://access.redhat.com/solutions/392003 のナレッジベースの記事を参照してください。
Optional リポジトリーを有効にする必要がある Red Hat Enterprise Linux の Software Collections パッケージを以下の表に示します。Optional リポジトリーのパッケージはサポートされないことに注意してください。詳細は、ナレッジベースの記事 https://access.redhat.com/articles/1150793 を参照してください。

表2.1 Red Hat Enterprise Linux 7 で Optional リポジトリーを有効にする必要があるパッケージ

Software Collection からのパッケージOptional リポジトリーから必要なパッケージ
devtoolset-10-buildscl-utils-build
devtoolset-10-dyninst-testsuiteglibc-static
devtoolset-10-elfutils-debuginfodbsdtar
devtoolset-10-gcc-plugin-devellibmpc-devel
devtoolset-10-gdbsource-highlight
devtoolset-9-buildscl-utils-build
devtoolset-9-dyninst-testsuiteglibc-static
devtoolset-9-gcc-plugin-devellibmpc-devel
devtoolset-9-gdbsource-highlight
httpd24-mod_ldapapr-util-ldap
httpd24-mod_sessionapr-util-openssl
python27-python-debugtix
python27-python-develscl-utils-build
python27-tkintertix
rh-git218-git-cvscvsps
rh-git218-git-svnperl-Git-SVN, subversion
rh-git218-perl-Git-SVNsubversion-perl
rh-git227-git-cvscvsps
rh-git227-git-svnperl-Git-SVN, subversion
rh-git227-perl-Git-SVNsubversion-perl
rh-java-common-ant-apache-bsfrhino
rh-java-common-batikrhino
rh-maven35-buildscl-utils-build
rh-maven35-xpp3-javadocjava-1.8.0-openjdk-javadoc-zip, java-11-openjdk-javadoc, java-1.7.0-openjdk-javadoc, java-11-openjdk-javadoc-zip, java-1.8.0-openjdk-javadoc
rh-php73-php-develpcre2-devel
rh-php73-php-pspellaspell
rh-python36-buildscl-utils-build
rh-python36-python-develscl-utils-build
rh-python38-python-develscl-utils-build