RHEL8 Offline Repo Configuration
We all use freely available versions of software. even Linux most of the software has subscriptions even they were distributed freely. for example, without a subscription to Redhat Linux, we cannot install new packages. so that the best way to install the packages is through a local repo.
let's see how to configure local repo using RHEL DVD.
First, what is a repo? repo is like a setup in a windows environment. so we have to configure it to install whatever software we need. the RHEL DVD contains 2 already configured repos.
1. AppStream — application packages
2. BaseOS — Basic Os features applications of RedHat
mount the RHEL DVD into the VMware. this DVD has all the repos
copy baseos directory to /
cp -arv /run/media/cipher/RHEL-8-2-0-BaseOS-x86_64/BaseOS/* /baseosRepo/
configure repo in
vi /etc/yum.repos.d/local.repo
add these
[localrepo]
name=localrepo
baseurl=file:///baseosRepo
enabled=1
gpgcheck=0
directly provide the appstream URL as baseurl of repo.d