• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Remove/Delete All Packages from Channel(s) in SpaceWalk

by admin

This post will help you in removing all the rpm packages from the particular channel and then deleting permanently from /var/satellite filesystem.

1. SSH into Spacewalk server as a root user.

2. Run below command to get Spacewalk CLI:

# spacecmd

3. List all the available channels:

spacecmd {SSM:0}> softwarechannel_list

4. Remove all the packages from the channel:

spacecmd {SSM:0}> softwarechannel_removepackages [CHANNEL LABEL] *

5. Delete all the orphaned packages:

spacecmd {SSM:0}> package_removeorphans

6. Finally, run below command to delete packages permanently from /var/satellite filesystem. You can check the progress of this command under the log file /var/log/rhn/spacewalk-data-fsck.log.

# nohup spacewalk-data-fsck -f -r &
Note: Steps 4 to 6 may take longtime, depending on the number of packages getting deleted. We highly recommend to make sure always there is a sufficient free space (atleast 20%) available under /var/satellite.

Filed Under: CentOS/RHEL, Linux

Some more articles you might also be interested in …

  1. How to Integrate CentOS/RHEL system into an AD Domain with LDAP/Kerberos/SSSD
  2. udevadm: command not found
  3. How to shrink root filesystem on CentOS / RHEL 6
  4. iSCSI connection command examples (Cheat Sheet)
  5. dirb Command Examples in Linux
  6. acpi: command not found
  7. apt-get Command Examples in Linux
  8. Understanding System Security Services Daemon (SSSD)
  9. iostat: command not found
  10. How to set nproc (Hard and Soft) Values in CentOS / RHEL 5,6,7

You May Also Like

Primary Sidebar

Recent Posts

  • raw: command not found
  • raw Command Examples in Linux
  • rankmirrors Command Examples in Linux
  • radeontop: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright