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.

5.2 Installing the Spacewalk Client Software and Registering a Client System Using rhnreg_ks

Note

Starting with Oracle Linux 7 Update 1 and Oracle Linux 6 Update 7, you do not need to install the Spacewalk Client 2.2 software before you register an Oracle Linux 7 or Oracle Linux 6 server with Spacewalk. See Section 5.3, “Registering a Client System Using rhnreg_ks Without First Installing the Spacewalk Client Software”.

To install the Spacewalk Client 2.2 software on an Oracle Linux server and register the server as a Spacewalk client:

  1. Enable access to the Spacewalk Client repository.

    Download the latest yum repository configuration file from https://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:

    • For Oracle Linux 7, enable the ol7_spacewalk22_client repository.

      Alternatively, 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=https://yum.oracle.com/repo/OracleLinux/OL7/spacewalk22/client/$basearch/
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
      gpgcheck=1
      enabled=1

    • For Oracle Linux 6, enable the ol6_spacewalk22_client repository.

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

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

    • For Oracle Linux 5, enable the ol5_spacewalk22_client repository.

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

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

  2. For Oracle Linux 5 only, use the rpm -e --nodeps command to remove the pirut, up2date, and up2date-gnome packages.

    # rpm -e --nodeps pirut up2date up2date-gnome
  3. Install the Spacewalk Client software:

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

    This command replaces the existing packages and deletes any previous registration with ULN.

  4. Register the system with Spacewalk using the rhnreg_ks command.

    # rhnreg_ks --serverUrl=http://swksvr_FQDN/XMLRPC --activationkey=activation_key

    Specify the Spacewalk server or proxy by its fully qualified domain name.

    If you need to re-register a Spacewalk client with a Spacewalk server, additionally specify the --force option.

  5. Disable access to the Spacewalk Client repository in the yum repository configuration file, or delete /etc/yum.repos.d/spacewalk22-client.repo.