8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | 23c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Articles » Linux » Here

Spacewalk : Basic Usage (Repositories, Channels and Clients)

Related articles.

Create a Channel with a Repository

Create a new channel by navigating to the "Create Channel" page.

Enter the following details and click the "Create Channel" button.

Channel Name*: ol7_x86_64
Channel Label*: ol7_x86_64
Parent Channel: None
Architecture: x86_64
Yum Repository Checksum Type: sha1
Channel Summary*: Oracle linux 7 x86_64

Create a new repository by navigating to the "Create Repository" page.

Enter the following details and click the "Create Repository" button.

Repository Label*: ol7_x86_64
Repository URL*: https://public-yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/

You can create multiple repositories like this and associate them to a single channel.

Create an activation key for the channel by navigating to the "Create Activation Key" page.

Enter the following details and click the "Create Activation Key" button.

Description: ol7_x86_64
Base Channels: ol7_x86_64

Link the required repositories to the channel by navigating to the "Repositories" tab for the channel "Channel Repositories" page.

Check the required repositories and click the "Update Repositories" button.

Sync the "ol7_x86_64" repository by navigating to the "Channel Repositories" page.

Check any required options and click the "Sync Now" button. This will download all the packages in the repository, so it could take a long time to complete.

Once it's complete, test the channel. If everything is OK, you should probably set a scheduled sync of the repository using the same page where you clicked the "Sync Now" button.

Register a Client

Install the EPEL repository for your version.

# OL7
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

# OL6
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

Add the Spacewalk client repository for your version.

# OL7

# 2.8
rpm -Uvh https://copr-be.cloud.fedoraproject.org/results/%40spacewalkproject/spacewalk-2.8/epel-7-x86_64/00736372-spacewalk-repo/spacewalk-client-repo-2.8-11.el7.centos.noarch.rpm
# 2.9
rpm -Uvh https://copr-be.cloud.fedoraproject.org/results/%40spacewalkproject/spacewalk-2.9/epel-7-x86_64/00912457-spacewalk-repo/spacewalk-client-repo-2.9-4.el7.noarch.rpm


# OL6

# 2.8
rpm -Uvh https://copr-be.cloud.fedoraproject.org/results/%40spacewalkproject/spacewalk-2.8/epel-6-x86_64/00736372-spacewalk-repo/spacewalk-client-repo-2.8-11.el6.noarch.rpm
# 2.9
rpm -Uvh https://copr-be.cloud.fedoraproject.org/results/%40spacewalkproject/spacewalk-2.9/epel-6-x86_64/00912457-spacewalk-repo/spacewalk-client-repo-2.9-4.el6.noarch.rpm

Install the trusted SSL certificate from the Spacewalk server.

rpm -Uvh http://ol7-sw.localdomain/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm

Install the client tool packages.

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

Get the activation key associated with the Spacewalk channel "Systems (tab) > Activation keys (left menu)". Register the client machine with the spacewalk server, adjusting the serverUrl and activationkey parameter to your settings.

rhnreg_ks --serverUrl=https://ol7-sw.localdomain/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=1-7ec972226fd80652dbd58ce4ce11a59e

Click on the "Systems" tab in the Spacewalk console and the client machine will be listed in the "System Overview" page.

Spacewalk : Systems

Update Client Packages

Navigate to the "Upgradable Packages" page.

Click on the "Select All" button and click the "Upgrade Packages" button.

At the bottom of the resulting page, accept the "Schedule no sooner than:" setting and click the "Confirm" button.

The update will happen the next time the client polls the Spacewalk server. You can force the client to poll the server by logging into the client and issuing the following command as the "root" user.

rhn_check

For more information see:

Hope this helps. Regards Tim...

Back to the Top.