2.7.2 Cloning Software Channels Using spacecmd

To clone a single channel, use the softwarechannel_clone command.

spacecmd {SSM:0}> softwarechannel_clone -s ol6u6-x86_64 -x "s/$/-clone/" -o
spacecmd {SSM:0}> softwarechannel_details ol6u6-x86_64-clone
Label:              ol6u6-x86_64-clone
Name:               Oracle Linux 6 Update 6 Base Channel (x86_64)-clone
Architecture:       x86_64
Systems Subscribed: 0
Number of Packages: 5522

Oracle Linux 6 Update 6 Base Channel (x86_64)-clone

GPG Key:            EC551F03
GPG Fingerprint:    4214 4123 FECF C55B 9086  313D 72F9 7B74 EC55 1F03
GPG URL:            file:///etc/pki/rpm-gpg/RPM-GPG-KEY

The -x option appends -clone to the new channel's name and label. The -o option excludes all errata from the cloned channel.

To diff the package contents of two channels, use the softwarechannel_diff command.

spacecmd {SSM:0}> softwarechannel_diff ol6u6-x86_64-clone ol6u6-x86_64
--- ol6u6-x86_64-clone

+++ ol6u6-x86_64

@@ -22,7 +22,18 @@


To clone a base channel and all of its child channels, use the softwarechannel_clonetree command.

spacecmd {SSM:0}> softwarechannel_clonetree -s ol6u6-x86_64 -p "clone-"
INFO: Cloning ol6u6-x86_64 as clone-ol6u6-x86_64
INFO: Cloning ol6-x86_64-addons as clone-ol6-x86_64-addons
INFO: Cloning ol6u6-x86_64-oracle as clone-ol6u6-x86_64-oracle
INFO: Cloning ol6-x86_64-spacewalk22-client as clone-ol6-x86_64-spacewalk22-client
INFO: Cloning ol6-x86_64-spacewalk22-server as clone-ol6-x86_64-spacewalk22-server
INFO: Cloning ol6u6-x86_64-patches as clone-ol6u6-x86_64-patches
INFO: Cloning ol6-x86_64-uekr3_latest as clone-ol6-x86_64-uekr3_latest