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 Software Channels Using Public Yum”.

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.

    Download the latest the Oracle public yum repository configuration file from http://public-yum.oracle.com/ and save it to the yum repositories directory (by default /etc/yum.repos.d). Edit the configuration file and enable the repository:

    • Oracle Linux 7: enable the ol7_spacewalk22_client repository.

      Note

      For Oracle Linux 7, you must use the Spacewalk 2.2 client to connect to a Spacewalk 2.0 server.

      Alternatively, you can create a /etc/yum.repos.d/spacewalk22-client.repo file with the following content:

      [ol7_spacewalk22_client]
      name=Spacewalk Client 2.2 for Oracle Linux 7 ($basearch)
      baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/spacewalk22/client/$basearch/
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
      gpgcheck=1
      enabled=1
      

    • Oracle Linux 6: enable the ol6_spacewalk20_client repository.

      Alternatively, you can create a /etc/yum.repos.d/spacewalk20-client.repo file with the following content:

      [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

    • Oracle Linux 5: enable the ol5_spacewalk20_client repository.

      Alternatively, you can create a /etc/yum.repos.d/spacewalk20-client.repo file with the following content:

      [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. (Oracle Linux 5 only) Remove the up2date and up2date‑gnome packages.

    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
  3. Install the Spacewalk client.

    Use the following command to install the Spacewalk client on all platforms:

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

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

  4. 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.9, “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.

  5. Disable access to the Spacewalk Client repository.

    Disable Spacewalk Client repository in the Oracle public yum repository configuration file, or delete your Spacewalk Client .repo file.