How to Install Spacewalk 2.8 in CentOS7/RHEL7

This is the simplest way on how to install Spacewalk in CentOS 7 or RHEL 7. For details and complete explanation please go to official page HowToInstall Spacewalk.


  • Outbound open ports 80, 443
  • Inbound open ports 80, 443, 5222 (only if you want to push actions to client machines) and 5269 (only for push actions to a Spacewalk Proxy), 69 udp if you want to use tftp
  • Storage for database: 250 KiB per client system + 500 KiB per channel + 230 KiB per package in channel (i.e. 1.1GiB for channel with 5000 packages)
  • Storage for packages (default /var/satellite): Depends on what you’re storing; Red Hat recommend 6GB per channel for their channels
  • 2GB RAM minimum, 4GB recommended
  • Make sure your underlying OS is fully up-to-date.
  • If you use LDAP as a central identity service and wish to pull user and group information from it, see SpacewalkWithLDAP
  • In the following steps we assume you have a default, CentOS7/RHEL7 installation of your operating system, without any customized setup of yum repositories, user management, security, etc.

Setting up FQDN
# vi /etc/hosts
add below line spacewalk.skrinhitam.local spacewalk

Setup EPEL Repo
# rpm -Uvh

Setup Java Packages
# curl -O

Setup Spacewalk Repo
# rpm -Uvh

Configure firewall
# firewall-cmd --permanent --add-service=http ; firewall-cmd --permanent --add-service=https ; firewall-cmd --runtime-to-perm
# firewall-cmd --reload

PostgreSQL server, set up by Spacewalk
# yum -y install spacewalk-setup-postgresql

Install Spacewalk
# yum -y install spacewalk-postgresql

Initialize the PostgreSQL database before starting the installation.
# postgresql-setup initdb

Configuring Spacewalk
# spacewalk-setup

On complete, start the Spacewalk service if not started automatically.
# /usr/sbin/spacewalk-service start

Now open up your browser and navigate it to
https://ip-add-ress OR https://your-domain-name



This entry was posted in Linux, RedHat and tagged . Bookmark the permalink.