🌐 🇵🇱 Polski · 🇬🇧 EN
Sometimes you need to install additional software packages that are not necessarily available in the default repository configured in RedHat. If the required packages are available from another repository, you can add them to your own personal repository by creating a custom YUM configuration file.
You can add a custom repository to the main YUM configuration file or create a separate xx.repo file in the /etc/yum.repos.d/ directory, which will be loaded automatically. Below is an example file:
[unique title]
name=My Custom Yum Repository
baseurl=ftp://rhel01/opt/yum/myrepos
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
These entries define the name, location, and enabled or disabled status of the repository. We can save this file as test.repo in /etc/yum.repos.d/ to gain access to all packages located in the /opt/yum/myrepos directory on the RHEL01 machine.
Comments