去除通道
本节介绍如何从 SUSE Multi-Linux Manager 中手动去除 SUSE 提供的通道、清理生命周期已结束的产品、回收空间或执行其他操作。
1. 准备去除通道
在去除通道之前,必须识别要去除的通道的标签。可以使用 Web UI 或命令行进行识别。
|
1.1. 识别通道标签
-
在 SUSE Multi-Linux Manager Web UI 中,导航到。
-
This page displays the
Channel Name. If you select the link for a channel name, you will see the field forChannel Label. -
识别要去除的通道和子通道。
-
可在 SUSE Multi-Linux Manager 容器主机上运行以下命令获取通道列表:
mgrctl exec -ti -- spacewalk-remove-channel -l
1.2. 校验通道系统订阅
-
在 SUSE Multi-Linux Manager Web UI 中,导航到。
-
Locate
Systemscolumn on the right. -
Check the
Systemscolumn for the channel, or any child channels, that you want to remove.
-
在 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. 去除子通道
-
要去除单个通道,请在 SUSE Multi-Linux Manager 容器主机上运行以下命令:
mgrctl exec -ti -- spacewalk-remove-channel -c channel-label
-
To remove multiple channels at the same time, use
-cflag for each channel, followed by thechannel-label. For example:mgrctl exec -ti -- spacewalk-remove-channel -c channel-label1 -c channel-label2
2.2. 去除父通道及其所有子通道
-
To remove a parent channel with all of the child channels run
spacewalk-remove-channelwith the-aoption and replaceparent-channel-labelwith a channel label such assles12-sp5-pool-x86_64:mgrctl exec -ti -- spacewalk-remove-channel -a parent-channel-label