rhn-channel command spacewalk-channel subscribe and unsubscribe channel

rhn-channel command or spacewalk-channel commands can work only when you registered your Linux servers with redhat. subscribing and unsubscribing the channels / repositories is very easy and flexible. If you have your local satellite server then its good to manage your packages and its updates.

Installing rhn-channel command OR spacewalk-channel

# yum install rhn-setup
# rpm -qa |grep rhn-setup
rhn-setup-1.0.0.1-38.el6.noarch
rhn-setup-gnome-1.0.0.1-38.el6.noarch

List subscribed Or base channel

Listing subscribed channels using -l option along with rhn-channel will not required any password

# rhn-channel -l
rhel-x86_64-server-6

List out base subscribed rhn-channel / repository we have to use -b option

# rhn-channel -b
rhel-x86_64-server-6

Print all available channels

To print all available channels / repositories we have to use -L (capital L) which required username and password (subscription details)

# rhn-channel -L
Username: arkitadmin
Password:
redhat-rhn-satellite-5.4-server-x86_64-6
redhat-rhn-satellite-5.5-server-x86_64-6
redhat-rhn-satellite-5.6-server-x86_64-6
redhat-rhn-satellite-5.7-server-x86_64-6
redhat-rhn-satellite-manageddb-5.6-server-x86_64-6
redhat-rhn-satellite-manageddb-5.7-server-x86_64-6
rhel-x86_64-rhev-agent-6-server
rhel-x86_64-rhev-agent-6-server-beta
rhel-x86_64-rhev-agent-6-server-beta-debuginfo
rhel-x86_64-rhev-agent-6-server-debuginfo
rhel-x86_64-server-6-beta
rhel-x86_64-server-6-beta-debuginfo
rhel-x86_64-server-6-cf-tools-1-beta
rhel-x86_64-server-6-cf-tools-1-beta-debuginfo

Add new channel using rhn-channel Or spacewalk-channel

first list out the available channels using above command option -L. Note down any one of the channel name, now ready to add use below command to add.

# rhn-channel --add --channel=rhel-x86_64-server-optional-6.7.z
Username:arkitadmin 
Password:
OR
# rhn-channel -a --channel=rhel-x86_64-server-dts-6

Remove subscribed channel

To unsubscribe the channel list the existing channel list using -l option then use below command to remove.

# rhn-channel --remove --channel=rhel-x86_64-server-optional-6.7.z
OR
# rhn-channel -r --channel=rhel-x86_64-server-optional-6.7.z

Subscribe to two channels:

#  spacewalk-channel --add -c rhn-tools-rhel-server-7 -c rhel-server-vt-7 --user username --password password

As shown in above command we also subscribe to two channels using single command -c = channel

Unsubscribe from channel:

# spacewalk-channel --remove -c rhn-tools-rhel-server-7 -c rhel-server-vt-7 --user username --password password

That’s it about rhn-channel command or spacewalk-channel

Relate Articles

25 Most commonly used Linux commands

Download Book in PDF format 25 topics and 122 Pages

ls command explained with 25 practical examples

cal command explained with 8 practical examples

Thanks for Your Wonderful Support and Encouragement

More than 40,000 techies are part of our ARKIT community. Join us today and keep learning Linux, Cloud, Storage, DevOps, and IT technologies.

Get Email Updates Download E-Books Facebook Page YouTube Channel Twitter Join Telegram Group Join WhatsApp Group
Ravi Kumar Ankam
My name is Ravi Ankam. I am passionate about learning new technologies quickly and sharing knowledge with others. My goal is to help learners grow their skills, because the more you learn, the more you earn. See About Me

Ravi Kumar Ankam

My name is Ravi Ankam. I am passionate about learning new technologies quickly and sharing knowledge with others. My goal is to help learners grow their skills, because the more you learn, the more you earn. See About Me

1 Response

  1. Gokulraj says:

    Hi arkit
    Can u please share the satelliate server configuration for Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version