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

Comments:

Managing Spacewalk Repos – A Place To Put Stuff - Jan 3, 2018

[…] Proper way to delete channel/repository/packages in Spacewalk […]: