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.4.2 Working with Repositories Using spacecmd

To create a repository, use the repo_create command, for example:

spacecmd {SSM:0}> repo_create
Name: Ksplice for Oracle Linux 7
URL: uln:///ol7_x86_64_ksplice

To list all repositories, use the repo_list command.

spacecmd {SSM:0}> repo_list
External - Oracle Linux 7 (x86_64)
External - Oracle Linux 7 Addons (x86_64)
External - Oracle Linux 7 MySQL 5.5 (x86_64)
External - Oracle Linux 7 MySQL 5.6 (x86_64)
External - Oracle Linux 7 Optional Packages (x86_64)
External - Oracle Linux 7 UEK Release 3 (x86_64)
External - Spacewalk 2.2 Client for Oracle Linux 7 (x86_64)

To list the details of a repository, use the repo_details command.

spacecmd {SSM:0}> repo_details "External - Oracle Linux 7 \(x86_64\)"
Repository Label:   External - Oracle Linux 7 (x86_64)
Repository URL:     https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/
Repository Type:    yum

The parentheses in the name must be quoted with backslashes to protect them from the shell.

To delete a repository, use the repo_delete command.

spacecmd {SSM:0}> repo_delete "Ksplice for Oracle Linux 7"
Repos
-----
Ksplice for Oracle Linux 7

Delete these repos [y/N]: y

To associate a software channel with a repository, see Section 2.5.2, “Working with Software Channels Using spacecmd”.