4.3.2 Working with Kickstart Distributions Using spacecmd

To create a distribution, use the distribution_create command, for example:

spacecmd {SSM:0}> distribution_create 
Name: ol7-x86_64-server
Path to Kickstart Tree: /var/distro-trees/ol7-x86_64-server

Base Channels
-------------
ol6u6-x86_64
oraclelinux7-x86_64

Base Channel: oraclelinux7-x86_64

Install Types
-------------
fedora
generic_rpm
rhel_2.1
rhel_3
rhel_4
rhel_5
rhel_6
rhel_7
suse

Install Type: rhel_7

To list all activation keys, use the distribution_list command.

spacecmd {SSM:0}> distribution_list
ol6-x86_64-server
ol7-x86_64-server

To display the details of an activation key, use the distribution_details command.

spacecmd {SSM:0}> distribution_details ol7-x86_64-server
Name:    ol7-x86_64-server
Path:    /var/distro-trees/ol7-x86_64-server
Channel: oraclelinux7-x86_64

To delete an activation key, use the distribution_delete command.

spacecmd {SSM:0}> distribution_delete ol7-x86_64-server
ol7-x86_64-server

Delete distribution tree(s) [y/N]: y