チャンネルの削除

この章では、SUSEで提供されているチャンネルをSUSE Multi-Linux Managerから手動で削除する方法、サポート終了製品をクリーンアップする方法、および他の目的のために領域を再利用する方法について説明しています。

1. チャンネルの削除の準備

チャンネルを削除する前に、削除するチャンネルのラベルを特定する必要があります。これは、Web UIを使用するか、コマンドラインで行うことができます。

  • システムが現在サブスクライブしているチャンネルや、サブスクライブする予定のチャンネルを削除しないように注意してください。

  • 削除するチャンネルを現在サブスクライブしているシステムがある場合は、そのシステムをアップグレードするか、サブスクリプションを解除するまで、そのチャンネルを削除しないでください。

1.1. チャンネルのラベルの特定

プロシージャ: Web UIを使用したチャンネルのラベルの特定
  1. SUSE Multi-Linux Manager Web UIで、ソフトウェア  チャンネルリスト  すべてに移動します。

  2. This page displays the Channel Name. If you select the link for a channel name, you will see the field for Channel Label.

  3. 削除するチャンネルと子チャンネルを特定します。

プロシージャ: コマンドラインを使用したチャンネルのラベルの特定
  1. SUSE Multi-Linux Managerコンテナホストで、次のコマンドを実行して、チャンネルのリストを取得できます。

    mgrctl exec -ti -- spacewalk-remove-channel -l

1.2. システムのチャンネルのサブスクリプションの確認

プロシージャ: Web UIを使用した、システムのチャンネルのサブスクリプションの確認
  1. SUSE Multi-Linux Manager Web UIで、ソフトウェア  チャンネルリスト  すべてに移動します。

  2. Locate Systems column on the right.

  3. Check the Systems column for the channel, or any child channels, that you want to remove.

プロシージャ: コマンドラインを使用した、システムのチャンネルのサブスクリプションの確認
  1. SUSE Multi-Linux Managerコンテナホストで次のコマンドを実行します。

    mgrctl exec -ti -- 'spacecmd -- softwarechannel_listsystems <Channel Label>'

2. チャンネルの削除

A channel, with its metadata, can be removed with command line tools only. The spacewalk-remove-channel command automatically removes the software packages, if they are not referenced anymore by other channels. Thus it removes the metadata from the database and the files from the storage medium.

2.1. 子チャンネルの削除

プロシージャ: コマンドラインを使用した子チャンネルの削除
  1. 個々のチャンネルを削除するには、SUSE Multi-Linux Managerコンテナホストで次のコマンドを実行します。

    mgrctl exec -ti -- spacewalk-remove-channel -c channel-label
  2. To remove multiple channels at the same time, use -c flag for each channel, followed by the channel-label. For example:

    mgrctl exec -ti -- spacewalk-remove-channel -c channel-label1 -c channel-label2

2.2. 親チャンネルとそのすべての子チャンネルの削除

プロシージャ: 親チャンネルとそのすべての子チャンネルの削除
  1. To remove a parent channel with all of the child channels run spacewalk-remove-channel with the -a option and replace parent-channel-label with a channel label such as sles12-sp5-pool-x86_64:

    mgrctl exec -ti -- spacewalk-remove-channel -a parent-channel-label