The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

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
Parent:             
Systems Subscribed: 0
Number of Packages: 5522

Summary
-------
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 @@

 GConf2-devel-2.28.0-6.el6.i686
 GConf2-devel-2.28.0-6.el6.x86_64
 GConf2-gtk-2.28.0-6.el6.x86_64
+ImageMagick-6.5.4.7-7.el6_5.i686
+ImageMagick-6.5.4.7-7.el6_5.x86_64
+ImageMagick-c++-6.5.4.7-7.el6_5.i686
...
 zlib-devel-1.2.3-29.el6.i686
 zlib-devel-1.2.3-29.el6.x86_64
 zlib-static-1.2.3-29.el6.x86_64
+zsh-4.3.10-7.el6.x86_64
+zsh-html-4.3.10-8.el6_5.x86_64

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