Removing Channel
1. Use Case
This workflow shows how to manually remove SUSE provided channels from Uyuni 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 Uyuni 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 Uyuni 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 Uyuni 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.