Proper way to delete channel/repository/packages in Spacewalk

This is the way to remove the channel together with repository. It will also remove the packages from the file system.

The workflow is as follows:

  • remove subchannels and master channel
  • remove repos
  • remove orphan packages
  • sync/clean up file system with Spacewalk DB records
  • remove broken links to RPM packages (optional)

You can remove channels and repos within GUI. You can also perform it all on command line:

spacecmd softwarechannel_delete _channel_name_
spacecmd repo_delete _reponame_name_
spacecmd package_removeorphans
spacewalk-data-fsck -r -S -C -O
find /srv/satellite/rpms/ -xtype l -delete