1300 367 823
Welcome, Guest
Username: Password: Remember me

TOPIC: Registering your CentOS 6 VPS with our Spacewalk

Registering your CentOS 6 VPS with our Spacewalk 7 years 2 months ago #174

  • rich
  • rich's Avatar
  • Posts: 143
  • Thank you received: 2
  • Karma: 4
Here's the commands to run on your CentOS 6.x VPS to register and use our local Spacewalk Server to supply locally your CentOS 6 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/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 
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

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.

Last Edit: 7 years 2 months ago by rich.
The administrator has disabled public write access.