2.3 Configuring Software Channels to Obtain Packages from Oracle Public Yum

You can use the spacewalk-common-channels utility in the spacewalk-utils package to configure software channels that use Oracle Public Yum. You can use this utility to configure the software channels, repositories, GPG keys, and activation keys for Oracle Linux 5, Oracle Linux 6, and Oracle Linux 7.

To list the available channels, use the --list option, for example:

# spacewalk-common-channels --list 
Available channels:
...
 oraclelinux5:        i386, x86_64
 oraclelinux5-addons: i386, x86_64
 oraclelinux5-oracle-addons: i386, x86_64
 oraclelinux5-spacewalk20-client: i386, x86_64
 oraclelinux5-uek:    i386, x86_64
 oraclelinux5-unsupported: i386, x86_64
 oraclelinux6:        i386, x86_64
 oraclelinux6-addons: i386, x86_64
 oraclelinux6-mysql:  i386, x86_64
 oraclelinux6-playground: x86_64
 oraclelinux6-spacewalk20-client: i386, x86_64
 oraclelinux6-spacewalk20-server: x86_64
 oraclelinux6-spacewalk22-client: i386, x86_64
 oraclelinux6-spacewalk22-server: x86_64
 oraclelinux6-uek:    i386, x86_64
 oraclelinux6-uek-r3: x86_64
 oraclelinux7:        x86_64
 oraclelinux7-addons: x86_64
 oraclelinux7-mysql55: x86_64
 oraclelinux7-mysql56: x86_64
 oraclelinux7-optional: x86_64
 oraclelinux7-spacewalk22-client: x86_64
 oraclelinux7-uek-r3: x86_64
...
Note

Unlike ULN, Oracle Public Yum does not provide patch channels for each update of an Oracle Linux release. Instead, spacewalk-common-channels configures the base (parent) software channel to use the public_olN_latest repository, which includes all packages for the entire release.

Some ULN channels, such as those for DTrace userspace, Ksplice, and OFED, are not available on Oracle Public Yum.

For example, create the software channels for Oracle Linux 7 (x86_64):

# spacewalk-common-channels -v -u swadm -p swadm_passwd -a x86_64 -k unlimited 'oraclelinux7*'
Connecting to http://localhost/rpc/api
Base channel 'Oracle Linux 7 (x86_64)' - creating...
* Activation key 'oraclelinux7-x86_64' - creating...
* Child channel 'Oracle Linux 7 Addons (x86_64)' - creating...
** Activation key '1-oraclelinux7-x86_64' - adding child channel...
* Child channel 'Oracle Linux 7 MySQL 5.5 (x86_64)' - creating...
** Activation key '1-oraclelinux7-x86_64' - adding child channel...
* Child channel 'Oracle Linux 7 MySQL 5.6 (x86_64)' - creating...
** Activation key '1-oraclelinux7-x86_64' - adding child channel...
* Child channel 'Oracle Linux 7 Optional Packages (x86_64)' - creating...
** Activation key '1-oraclelinux7-x86_64' - adding child channel...
* Child channel 'Spacewalk 2.2 Client for Oracle Linux 7 (x86_64)' - creating...
** Activation key '1-oraclelinux7-x86_64' - adding child channel...
* Child channel 'Oracle Linux 7 UEK Release 3 (x86_64)' - creating...
** Activation key '1-oraclelinux7-x86_64' - adding child channel...

swadm and swadm_passwd are the user name and password of the Spacewalk administrator. The -k unlimited option specifies that the command should create an activation key with no limit on the number of servers with which you can use it.

You can use either the Spacewalk web interface or spacecmd to display, modify, or delete the available channels, repositories, and activation keys:

Once you have set up the software channels and repositories, download the packages by synchronizing the software channels with Oracle Public Yum. See Section 2.6, “Synchronizing Software Channels”.