How To Subscribe CentOS Server to Katello/Foreman

Windows Articles

How to install Redis on CentOS 8?

Hello, friends in this post, we will show you how to install Redis on CentOS 8 As we well...

How to enable and disable startup applications in Windows 10

Hello! Windows 10 is an attractive and very easy to use system. However, some criticism has come for being too "heavy". That...

How to install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Hello, friends. We know that Java is one of the most popular programming languages and now it's version 15. So in this...

How to run the Linux Tail command in Windows 10.

Hi! The title of this post may seem incongruous, but it's not. In fact, for some time Microsoft has approached positions with...

How to compress large videos in Windows 10

Hello, how are you? Multimedia resources are definitely used in any system. Indeed, we live in the age of technology. That's why...

We’ve previously learn how to sync CentOS 8 repositories on Satellite / Foreman / Katello

All of these steps can be performed on the host you want to register.

Step 1: Add EPEL & Foreman repositories

sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo yum install -y https://yum.theforeman.org/client/2.0/el8/x86_64/foreman-client-release-2.0.0-1.el8.noarch.rpm

Step 2: Install subscription manager

sudo yum -y install subscription-manager

Now, download and install ca-consumer package to get a copy of the CA certificates from your Katello/Foreman Server.

export katello_fqdn="katello.example.com"
sudo rpm -Uvh http://$[katello_fqdn]/pub/katello-ca-consumer-latest.noarch.rpm

You should be able to resolve katello.example.com host-name in order to work for above command.

Step 3: Register CentOS Server on Katello Server.

You can register your CentOS server by running following command

sudo subscription-manager register --org="YOURORG" \
--activationkey="ACTIVATION-KEY-NAME"

Note: Replace the inverted commas text to your organization & key details.

Activation key must be created on foreman before running above command.

Step 4: Install katello agent tools

Install the katello-host-tools and katello-agent package which reports errata & package profile info, it does not allow to remotely control clients.

sudo yum -y install katello-host-tools  katello-agent katello-host-tools-tracer

Step 5: Start & enable the katello agent Services.

systemctl start goferd
systemctl enable goferd

Step 6: Update CentOS repositories

Remove or move all of your repositories except redhatrepo which are present in /etc/yum.repos.d/.

cd /etc/yum.repos.d/
sudo mkdir old
sudo mv CentOS-* epel* katello* old/

Use Katello Dashboard to verify that katello-agent is installed.

Hosts->Content Hosts->

For installing a package navigate to Hosts->Content Hosts->Select Host->Packages

Choose package action as “Package Remove” to perform action to delete.

More articles

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install Redis on CentOS 8?

Hello, friends in this post, we will show you how to install Redis on CentOS 8 As we well...

How to enable and disable startup applications in Windows 10

Hello! Windows 10 is an attractive and very easy to use system. However, some criticism has come for being too "heavy". That...

How to install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Hello, friends. We know that Java is one of the most popular programming languages and now it's version 15. So in this...

How to run the Linux Tail command in Windows 10.

Hi! The title of this post may seem incongruous, but it's not. In fact, for some time Microsoft has approached positions with...

How to compress large videos in Windows 10

Hello, how are you? Multimedia resources are definitely used in any system. Indeed, we live in the age of technology. That's why...
x