I'm trying to create a RHEL 8 minimum repository for offline installation as was performed in RHEL 7 but the same procedure produces partial results. I am following this procedure:
yum list installed | awk '{ print $3 }' | sort -u > repolist.txt
for i in `cat repolist.txt` do for j in `yum list installed | grep @${i} | awk '{print $1}'` do yum -y reinstall $j --downloadonly --downloaddir=/var/local/repos/${j} done done
If I try downloading the missing RPMs manually I fail on many interesting comments like the RPM is in cache.
Afterwards there are added complications with creating the repodata (see https://github.com/rpm-software-management/modulemd-tools for required additional tools).
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.