Removing channel
1. Use case
This workflow shows how to manually remove SUSE provided channels from SUSE Manager and to clean up end-of-life products, to reclaim space or for other purposes.
2. Step-by-step instructions
Manual channel removal consists of Preparing to remove a channel and Removing channel.
2.1. Preparing to remove a channel
Before removing a channel, you must identify the label for the channel to be removed. It can be done with Web UI or on the command line.
|
2.1.1. Identifying Channel labels
-
In the SUSE Manager Web UI, in the sidebar navigate to
. -
This page displays the
Channel Name
. If you select the link for a channel name, you will see the field forChannel Label
. -
Identify the channel, and child channels, to be removed.
-
You can get a list of channels by running the following command:
spacewalk-remove-channel -l
2.1.2. Verify channel system subscriptions
-
In the SUSE Manager Web UI, in the sidebar navigate to
. -
Locate
Systems
column on the right. -
Check the
Systems
column for the channel, or any child channels, that you want to remove.
-
Run the following command:
spacecmd -- softwarechannel_listsystems <Channel Label>
2.2. Removing channel
A channel, with its metadata, can be removed in the SUMA command line by using the spacewalk-remove-channel
command.
This command does not remove the packages themselves from the filesystem.
Removing packages from the filesystem is described in [cleaning-up-channel-packages].
2.2.1. Removing an individual channel
-
To remove an individual channel run the following command:
spacewalk-remove-channel -c channel-label
-
To remove multiple channels at the same time, use
-c
flag for each channel, followed by thechannel-label
. For example:spacewalk-remove-channel -c channel-label1 -c channel-label2
2.2.2. Removing a parent and all its child channels
-
It is also possible to remove a parent channel with all of its child channels, like this:
spacewalk-remove-channel -a sles12-sp5-pool-x86_64
2.2.3. Remove packages from the database via the Web UI
-
After removing the channel, you need to delete the packages from the database via the Web UI.
-
In the SUSE Manager Web UI navigate to
. -
Select
Package in no channel
, and delete the packages.
2.2.4. Clean the packages from the filesystem
-
The following command checks for anything that is still showing in the filesystem, but not in the SUMA database and then removes it.
# spacewalk-data-fsck -r -S -C -O
The final cleanup command can take several minutes, or even hours to complete.
3. Related topics
-
For more information about deleting channels, see Delete channels.