YUM repository Configuration RHEL 8 | Arkit
Yellowdog Updater, Modified (YUM) configuration in RHEL 8. Red Hat Enterprise Linux Version 8 includes AppStream as a new repository so YUM configuration is little different than actual. Let’s see How to configure RHEL 8 YUM Repository step by step. YUM repository RHEL 8
Mount RHEL 8 Installation Media
By default installation media will get AppStream and BaseOS packages. First mount the DVD media into RHEL 8 server using below command (Assuming your CD/DVD drive /dev/sr0). You must have sudo privileges or become root user to mount.
# mount /dev/sr0 /mnt
Create new directory in where ever you want to dump entire RPM packages Example: /repo
# mkdir /repo
copy the content using below command
# cp -Rv /mnt/BaseOS/ /repo/ # cp -Rv /mnt/AppStream /repo/
Now check /repo directory
[root@rhel8-server1 repo]# ls -ltr total 0 dr-xr-xr-x. 4 root root 38 Jul 24 01:47 BaseOS dr-xr-xr-x. 4 root root 38 Jul 24 01:48 AppStream
RHEL 8 YUM Repository configuration
Switch directory to /etc/yum.repos.d/ and create .repo files
[root@rhel8-server1 yum.repos.d]# cat BaseOS.repo [BaseOSRepo] name=BaseOS baseurl=file:///repo/BaseOS/ enabled=1 gpgcheck=0 [root@rhel8-server1 yum.repos.d]# cat AppStream.repo [AppStreamRepo] name=AppStream baseurl=file:///repo/AppStream/ enabled=1 gpgcheck=0
Now check yum repolist
[root@rhel8-server1 yum.repos.d]# yum repolist
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:00:01 ago on Wed 24 Jul 2019 01:55:06 AM EDT.
repo id repo name status
AppStreamRepo AppStream 4,672
BaseOSRepo BaseOS 1,658
Here no need to run createrepo command since BaseOS and AppStream has repodata directories with XML configs already.
Related Articles
Thanks for your wonderful Support and Encouragement