How To Install Katello on CentOS 7

Install Katello on CentOS 7

In this tutorial, we will show you how to install Katello on your CentOS 7. For those of you who didn’t know, Katello is an open-source content management software. It also performs provisioning and configuration tasks using the foreman. In other words, we can say Katello is the open-source Satellite server, which pushes updates to its registered Linux Servers or clients. In fact, it is a lifecycle management plugin to Foreman which handles subscription, and repository management.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step-by-step installation of Katello content management software on a CentOS 7 server.

Install Katello on CentOS 7

Step 1. First, let’s start by ensuring your system is up-to-date.

yum clean all
yum -y update

Step 2. Set Hostname and Firewall Rules.

Use the following command to set the hostname:

hostnamectl set-hostname ""

Also, update the hostname file too inside /etc/hostname:

echo "" >> /etc/hosts

Once done with hostname now you’ll need to change firewall rules to open the ports for Katello:

firewall-cmd --permanent --zone=public --add-port=80/tcp --add-port=443/tcp --add-port=5647/tcp --add-port=9090/tcpfirewall-cmd --permanent --zone=public --add-port=8140/tcp --add-port=8443/tcp --add-port=8000/tcp --add-port=67/udp --add-port=68/udp --add-port=69/udpfirewall-cmd --reload

Step 3. Installing Katello.

Katello requires some repositories to be set up before the installation process so there are some repositories that here we are setting up for Katello:

yum -y install
yum -y install
yum -y install
yum -y install
yum -y install foreman-release-scl

Run the following command to install Katello packages:

sudo yum update
sudo yum install katello

Next, configure your server with NTP for time syncing. Set the time zone with respect to your location:

rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
yum install ntp -y

Next start Katello installation using a foreman-installer command like shown below:

foreman-installer --scenario katello --foreman-admin-username admin --foreman-admin-password <Specify_Passwd>

*In the above command replace Specify_Passwd with a strong password and this password will be used to log in to the foreman dashboard in web access of Katello.

When the installation will be completed, you’ll get an output stating that Installing Success. If in case your server is running behind the proxy server then you’ll have to run below given command:

foreman-installer --scenario katello --katello-proxy-url http://<Proxy-Server_Name_or_IP> --katello-proxy-port <Proxy-port> --foreman-admin-username admin --foreman-admin-password <Specify_Password>

Step 4. Accessing the Katello.

Katello will be available on HTTP port 80 by default. Open your favorite browser and navigate to or http://server-ip-address and complete the required steps to finish the installation. Use the username as admin and password that we specify in the above step.

Install Katello on CentOS 7

Congratulations! You have successfully installed Katello. Thanks for using this tutorial for installing Katello content management software on a CentOS 7 server. For additional help or useful information, we recommend you check the official Katello website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!