Problems when install perl package

I think the best option to install a package and ensure all the dependencies are ok, is implement a local repository, this is an offline method to solve the problem.

To execute this procedure, you need to follow the next steps.

First you need to upload the OS ISO to the machine or attach it as an external disk. Once the ISO is on the server, you need to mount as a FS, with the following command.

mount RHEL8.2.iso /mnt/

NOTE: For the command above, please replace the path and name or your specific ISO.

When the ISO is mounted, you need to especified to the OS that you want to implement a local repo, this will be done moving all the files on /etc/yum.repos.d/

mv /etc/yum.repos.d/*.repo /tmp/

Create a new file on the path above specifying the local repo.

vi /etc/yum.repos.d/local.repo

With the following:

[LocalRepo_BaseOS]
name=LocalRepository_BaseOS
baseurl=file:///cdrom/BaseOS
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
     
[LocalRepo_AppStream]
name=LocalRepository_AppStream
baseurl=file:///cdrom/AppStream
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Now you need to clean the yum repo.

yum clean all

And load the new repo.

yum repolist

BR.