去除通道

本节介绍如何从 SUSE Multi-Linux Manager 中手动去除 SUSE 提供的通道、清理生命周期已结束的产品、回收空间或执行其他操作。

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