1.3 Installing the Spacewalk Client and Registering Servers

Oracle provides Spacewalk client packages for Oracle Linux 5 and 6 for both i386 and x86_64 architectures. Oracle supports only Oracle Linux servers as Spacewalk clients.

If the Spacewalk Client channel provided by Oracle is mirrored on the Spacewalk server, the Spacewalk client is installed automatically on servers that are provisioned from Spacewalk. The Spacewalk Client channel can be configured using the spacewalk-common-channels command, as described in Section 1.2.6, “Configuring and Synchronizing Software Channels”.

For an Oracle Linux server that is not yet connected to Spacewalk, you install the Spacewalk client and register the server, as follows:

  1. Enable access to the Spacewalk Client repository.

    Create the /etc/yum.repos.d/spacewalk20-client.repo file with the following content:

    • For Oracle Linux 6 servers:

      [ol6_spacewalk20_client]
      name=Spacewalk Client 2.0 for Oracle Linux 6 ($basearch)
      baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/spacewalk20/client/$basearch/
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
      gpgcheck=1
      enabled=1
    • For Oracle Linux 5 servers:

      [ol5_spacewalk20_client]
      name=Spacewalk Client 2.0 for Oracle Linux 5 ($basearch)
      baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/spacewalk20/client/$basearch/
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
      gpgcheck=1
      enabled=1
  2. Install the Spacewalk client.

    (Oracle Linux 5 servers only) Before you install the Spacewalk client, use the rpm -e --nodeps command to remove the up2date and up2date‑gnome packages.

    Remove the up2date and up2date-gnome packages from any Oracle Linux 5 Kickstart profiles in Spacewalk by specifying -up2date and -up2date-gnome in the Kickstart profile on the Software -> Package Group screen, for example:

    @ Base
    -up2date
    -up2date-gnome

    Use the following command to install the Spacewalk client on both Oracle Linux 5 and Oracle Linux 6 servers:

    # yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin

    The above command replaces the existing packages and deletes a registered server from ULN.

  3. Register the server with Spacewalk using the rhnreg_ks command.

    Before you can register a server, you must have already created a client activation key, as described in Section 1.2.7, “Creating Activation Keys for Spacewalk Clients”.

    You cannot use the rhn_register command to register a server with Spacewalk because this command cannot use Spacewalk activation keys.

  4. Disable access to the Spacewalk Client repository.

    Delete the /etc/yum.repos.d/spacewalk20-client.repo file.