2.5.2 Working with Software Channels Using spacecmd

To create a software channel, use the softwarechannel_create command, for example:

spacecmd {SSM:0}> softwarechannel_create
Channel Name: Ksplice for Oracle Linux 7
Channel Label: oraclelinux7-x86_64-ksplice
Base Channels
-------------
oraclelinux6-x86_64
oraclelinux7-x86_64

Select Parent [blank to create a base channel]: oraclelinux7-x86_64

Architecture
------------
i386-sun-solaris
ia32
ia64
ppc
sparc-sun-solaris
x86_64

Select: x86_64
Note

In Spacewalk 2.2, you must use the Spacewalk web interface to associate GPG key information with a software channel.

To associate a software channel with a repository, use the softwarechannel_addrepo command.

spacecmd {SSM:0}> softwarechannel_addrepo ksplice-ol7-x86_64 "Ksplice for Oracle Linux 7"

To list all software channels, use the softwarechannel_list command.

spacecmd {SSM:0}> softwarechannel_list oraclelinux7*
oraclelinux7-x86_64
oraclelinux7-x86_64-addons
oraclelinux7-x86_64-ksplice
oraclelinux7-x86_64-mysql55
oraclelinux7-x86_64-mysql56
oraclelinux7-x86_64-optional
oraclelinux7-x86_64-spacewalk22-client
oraclelinux7-x86_64-uek-r3

The oraclelinux7* argument filters out all channels except those whose labels start with oraclelinux7.

To list all base (parent) software channels, use the softwarechannel_listbasechannels command.

spacecmd {SSM:0}> softwarechannel_listbasechannels
oraclelinux6-x86_64
oraclelinux7-x86_64

To list the children of a base software channel, use the softwarechannel_listchildchannels command.

spacecmd {SSM:0}> softwarechannel_listchildchannels oraclelinux7-x86_64
oraclelinux7-x86_64-addons
oraclelinux7-x86_64-ksplice
oraclelinux7-x86_64-mysql55
oraclelinux7-x86_64-mysql56
oraclelinux7-x86_64-optional
oraclelinux7-x86_64-spacewalk22-client
oraclelinux7-x86_64-uek-r3

To list the systems that subscribe to a software channel, use the softwarechannel_listsystems command.

spacecmd {SSM:0}> softwarechannel_listsystems oraclelinux6-x86_64
svr1.mydom.com
svr2.mydom.com
...

To display the details of a software channel, use the softwarechannel_details command.

spacecmd {SSM:0}> softwarechannel_details oraclelinux7-x86_64
Label:              oraclelinux7-x86_64
Name:               Oracle Linux 7 (x86_64)
Architecture:       x86_64
Parent:             
Systems Subscribed: 0
Number of Packages: 0

Summary
-------
Oracle Linux 7 (x86_64)

GPG Key:            EC551F03
GPG Fingerprint:    4214 4123 FECF C55B 9086  313D 72F9 7B74 EC55 1F03
GPG URL:            http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7

Repos
-----
External - Oracle Linux 7 (x86_64)

To delete a software channel, use the softwarechannel_delete command.

spacecmd {SSM:0}> softwarechannel_delete oraclelinux7-x86_64
Channels
--------
oraclelinux7-x86_64

Delete these channels [y/N]: y