Installing SpaceWalk on CentOS 6 / RHEL 6



Spacewalk is the package and system management solution for Redhat derived Linux operating system such as CentOS, Scientific Linux and Fedora, by the spacewalk community. It is released under GPLv2 license. It offers more flexible way to do

  1. Inventory of the systems
  2. Install and Update system packages.
  3. Configuring Kick-start installation.
  4. Deploy and Manage the configuration files from singe location
  5. Start / Stop / Configure the guests.
  6. Distribute the content across the multiple Geo graphical location using spacewalk proxy.

It provides the web interface to manage and view the updates for the system that are registered with the SpaceWalk, we can initiate the task such as install, update, inventory, and so on. Here is the small tutorial about installing SpaceWalk on CentOS 6.


Before installing SpaceWalk on the CentOS, system must be setup to have the required repositories to download the dependencies. Lets first setup the SpaceWalk repository.

rpm -Uvh

Setup Jpackage Repo:

vi /etc/yum.repos.d/jpackage-generic.repo

Add the following.

name=JPackage generic

EPEL Repo:

Setup EPEL repo on CentOS 6.

rpm -Uvh

Disable SELinux:

sed -i 's/SELINUX=enforcing/SELINUX=disabed/' /etc/selinux/config

Disabe Firewall:

Run the following on terminal.

iptables -F
/etc/init.d/iptables save

Setup SpaceWalk Database:

SpaceWalk supports either PostgreSQL (8.4 or higher) or Oracle ( 10g or higher) database, you can skip the following embedded data base setup to use the external database.

Embedded Database:

SpaceWalk has the embedded setup for PostgrSQL database which will do the automatic SpaceWalk  installation without having user intervention to enter the database information. Embedded database method is very easy to setup and run the SpaceWalk in no time; this is very useful for those who do not have any database knowledge.

yum install spacewalk-setup-postgresql

External Database:

You can use the external PostgreSQL or Oracle database to install SpaceWalk, you can find the tons of documents online to setup the database.

Installing SpaceWalk:

If you are planning use PostgreSQL database.

yum install spacewalk-postgresql

If you are planning to use Oracle database.

yum install spacewalk-oracle

Configuring SpaceWalk:

If you have installed embedded database, then use. It will ask you to enter the admin mail and organization details to generate the self signed certificate for secured access.

spacewalk-setup --disconnected

if you have setup database manually, then use. It will ask you to enter the external database details.

spacewalk-setup --disconnected --external-db

On complete, start the SpaceWalk service.

/usr/sbin/spacewalk-service start

make the service to start automatically with the system.

chkconfig spacewalk on

Now you can access the SpaceWalk via web browser.


Next tutorial about Configuring the SpaceWalk to distribute the updates for CentOS clients.

Further Reading

You might also like

Installing SpaceWalk on CentOS 6 / RHEL 6