Installing a non-base package

In this section we are going to create a repository to host non-base packages. As a given example, we are going to install the Ansible package.

Note

It is not necessary to install Ansible on the compute nodes, this is just an example.

First, let us check the information of the ansible-core package:

[root@master ~]# yum info ansible-core
Last metadata expiration check: 0:13:51 ago on Fri 12 Jun 2026 11:53:30 AM EDT.
Installed Packages
Name         : ansible-core
Epoch        : 1
Version      : 2.16.16
Release      : 2.el10
Architecture : noarch
Size         : 11 M
Source       : ansible-core-2.16.16-2.el10.src.rpm
Repository   : @System
From repo    : appstream
Summary      : A radically simple IT automation system
URL          : https://ansible.com
License      : GPL-3.0-or-later AND BSD-2-Clause AND PSF-2.0 AND MIT AND Apache-2.0
Description  : Ansible is a radically simple model-driven configuration management,
             : multi-node deployment, and remote task execution system. Ansible works
             : over SSH and does not require any software or daemons to be installed
             : on remote nodes. Extension modules can be written in any language and
             : are transferred to managed machines automatically.

Note that the ansible-core package belongs to the appstream repository (Repo), and therefore will not be available for installation on the compute nodes. As well as in the previous section, we will download the package ansible-core and all of this dependencies, inside a different folder (local_appstream):

[root@master ~]# mkdir /var/www/html/local_appstream
[root@master ~]# cd /var/www/html/local_appstream
[root@master local_appstream]# repotrack ansible-core

The command repotrack will automatically download ansible-core and all of its dependencies. After the downloads are completed, add the repository information into the yum configuration on the compute nodes. Add the following lines to /etc/yum.repos.d/minimal.repo file:

[local_appstream]
name=local_appstream
baseurl=http://192.168.16.1/local_appstream
enabled=1
gpgcheck=0
priority=1

Update and install ansible-core

[root@c01 ~]# yum update
[root@c01 ~]# yum install ansible-core