Translated message

A translation of this page exists in English.

Red Hat Satellite の特定のアップデートレベルからクローンチャンネルまたはカスタムチャンネルを作成する

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.3 以降
  • spacewalk-create-channel
  • spacewalk-clone-by-date

Issue

  • リリースの特定のアップデートレベルからチャンネルを作成する方法は?

  • (./data/ ディレクトリを更新するために) 各マイナーリリースでマニュフェストファイルをダウンロードする方法は?

  • spacewalk-create-channel ユーティリティは何のためのユーティリティですか? RHEL 5.2 など、RHEL のアップデートレベルで Red Hat チャンネルのクローンを作成する方法は?

  • システムをサブスクライブして、そのマイナーリリースだけを対象にしたアップデートを受け取り、最新のアップデートは受け取らないように、RHEL のマイナーリリース (RHEL 5.3 など) にリンクされたベースチャンネルを作成する方法は?

  • RHN Satellite で Red Hat Enterprise Linux の異なるマイナーバージョンを個別に保持する方法は?

  • RHEL の特定の (古い) バージョンに対して RHEL チャンネルを作成できますか?

  • RHEL リリースの特定バージョンに対して、静的なカスタムチャンネルを作成する方法は?

Resolution

  • spacewalk-create-channel ユーティリティを使用して、RHEL アップデートレベルでチャンネルを作成します。

  • 以下の解決策に必要な要件: spacewalk-create-channel スクリプトは spacewalk-remote-utils パッケージの一部であるため、このパッケージを RHN Satellite にインストールする必要があります。このパッケージをインストールするには、RHN Tools チャンネルに Satellite サーバーをサブスクライブする必要があります。システムがサブスクライブされると、'yum install spacewalk-remote-utils' を使用してパッケージをインストールできます。

  • spacewalk-create-channel の使用例:

 # spacewalk-create-channel --user=admin --server=localhost --version=5 --update=GOLD --release=Server --arch=x86_64 --destChannel=gold-rhel5 
 You have not specified a source channel, we will try to determine it from inputs  
 Trying with source channel: rhel-x86_64-server-5  
 Creating channel, gold-rhel5, with arch x86_64 2797 packages in source file to push.  
 Pushing 2797 packages, please wait.  
 Sucessfully pushed 2797 packages out of 2797  

 # spacewalk-create-channel -l admin -s localhost -d update1-rhel5 -D /usr/share/rhn/channel-data/5-u1-server-x86_64 
 Password:
 You have not specified a source channel, we will try to determine it from inputs  
 Trying with source channel: rhel-x86_64-server-5  
 Creating channel, update1-rhel5, with arch x86_64 2857 packages in source file to push.  
 Pushing 2857 packages, please wait.  
 Sucessfully pushed 2857 packages out of 2857
  • RHEL 5 update 5 (RHEL5.5) チャンネルの作成:
 # spacewalk-create-channel --user=satadmin --server=localhost --version=5 --update=u5 --release=Server --arch=x86_64 --destChannel=testnew-rhel5u5  
 Password:  
 You have not specified a source channel, we will try to determine it from inputs  
 Trying with source channel: rhel-x86_64-server-5  
 Creating channel, chorn-testnew-rhel5u5, with arch x86_64 3116 packages in source file to push.  
 Pushing 3116 packages, please wait.  
 Sucessfully pushed 3116 packages out of 3116
  • また、Satellite 5.4.1 以降では、別のコマンドラインツール (spacewalk-clone-by-date) を使用できます。man ページによると、「このスクリプトは、特定日まで、ソフトウェアチャンネルとエラータをクローン化し、追加したパッケージが依存関係を満たしていることを確認します。 destination channels が作成されます。」たとえば、以下のようになります。
# spacewalk-clone-by-date -u satadmin -p satadminpassword -d 2013-02-20 --channels=rhel-x86_64-server-6   clone-6-3-full

これは、6.4 のリリース日の前日まで 6.3 のクローンとなります。このクローンは、RHEL6 x86_64 サーバーチャンネルでリリースされているすべてのエラータのクローンとなります。このスクリプトの使用方法の詳細については、man ページ man spacewalk-clone-by-date を参照してください。

注意:

Red Hat Network Tools チャンネルは RHEL のいずれのマイナーリリースにも結びついていないため、spacewalk-create-channel コマンドを使用したクローンチャンネルを作成できません。Red Hat Network Tools チャンネルをクローンする通常のプロセスを使用します。

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments