How to use our local Spacewalk Server

Here’s the commands to run on your CentOS 5.x VPS to register and use our local Spacewalk Server to supply locally your CentOS 5 software updates.

All the following commands are run as the root user on your CentOS system.

rpm -U http://spacewalk1.netpres.com.au/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
rpm -U http://spacewalk.redhat.com/yum/1.9/RHEL/5/x86_64/spacewalk-client-repo-1.9-1.el5.noarch.rpm
## or for i386 CentOS 5 systems, use: http://spacewalk.redhat.com/yum/1.9/RHEL/5/i386/spacewalk-client-repo-1.9-1.el5.noarch.rpm
yum -y install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin
yum -y install perl
perl -pi -w -e 's/enabled=1/enabled=0/g;' /etc/yum.repos.d/*.repo

rhnreg_ks --activationkey='AS_SUPPLIED_BY_NETPRES' --serverUrl=https://spacewalk1.netpres.com.au/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

If you’re using CentOS 6, here’s the similar commands to load the CentOS 6 Spacewalk client s/ware:

rpm -U http://spacewalk.redhat.com/yum/1.9/RHEL/6/x86_64/spacewalk-client-repo-1.9-1.el6.noarch.rpm
## or for i386 CentOS 6 systems, use: http://spacewalk.redhat.com/yum/1.9/RHEL/6/i386/spacewalk-client-repo-1.9-1.el6.noarch.rpm

Assuming the above rhnreg_ks command succeeds, then you should clean up your Yum s/ware for using the NetPres Spacewalk Repo server with:

yum clean all

After that your Yum software is ready and enabled to use our Spacewalk Server.

FYI,
Richard.

This entry was posted in Sales and tagged . Bookmark the permalink.