Good day,
I’m trying to develop an upgrade plan for quite a few Centos 7 (virtual) machines to Rocky Linux 9.
I’ve read through the various guides on the procedure using Elevate/leapp.
The part that is unique/challenging for my use case is that the VMs are likely air gapped, so won’t have access to the internet.
I’ve had some partial success with this guide and cloning Rocky linux repos.
The next thing I would like to do trim the repos to only contain the packages that I need.
Is there a guide to doing this somewhere?
What I tried so far that seems pretty hacky, was to host the full repos (BaseOS, AppStream, PowerTools) on an nginx server, do an upgrade from a test machine pointing at this server.
I then parse the access log to get the required packages and copy them info for example BaseOS/Packages.
I then used createrepo from a Centos 7 machine to create a new BaseOS repo.
When I serve this new repo, the upgrade gets past the preupgrade check but then fails the leap upgrade
with
Warning: Package marked by Leapp to upgrade not found in repositories metadata: gpg-pubkey
No available modular metadata for modular package 'python2-babel-2.5.1-10.module+el8.9.0+1531+a18208f5.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-jinja2-2.10-10.module+el8.10.0+1813+4b021305.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-markupsafe-0.23-19.module+el8.9.0+1531+a18208f5.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'python2-pysocks-1.6.8-6.module+el8.9.0+1531+a18208f5.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-requests-2.20.0-4.module+el8.10.0+1817+0b01df83.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-setuptools-39.0.1-14.module+el8.10.0+1813+4b021305.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-six-1.11.0-6.module+el8.9.0+1531+a18208f5.noarch', it cannot be installed on the system
No available modular metadata for modular package 'libslirp-4.4.0-2.module+el8.10.0+1825+623b0c20.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'perl-IO-Socket-SSL-2.066-4.module+el8.9.0+1517+e71a7a62.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Mozilla-CA-20160104-7.module+el8.9.0+1521+0101edce.noarch', it cannot be installed on the system
No available modular metadata for modular package 'perl-Net-SSLeay-1.88-2.module+el8.9.0+1517+e71a7a62.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'python2-2.7.18-17.module+el8.10.0+1813+4b021305.rocky.0.2.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'python2-backports-ssl_match_hostname-3.5.0.1-12.module+el8.9.0+1531+a18208f5.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-libs-2.7.18-17.module+el8.10.0+1813+4b021305.rocky.0.2.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'python2-pip-wheel-9.0.3-19.module+el8.9.0+1531+a18208f5.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-pytz-2017.2-13.module+el8.10.0+1817+0b01df83.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-pyyaml-3.12-16.module+el8.9.0+1531+a18208f5.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'python2-setuptools-wheel-39.0.1-14.module+el8.10.0+1813+4b021305.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python36-3.6.8-39.module+el8.10.0+1592+61442852.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'container-selinux-2:2.229.0-2.module+el8.10.0+1825+623b0c20.noarch', it cannot be installed on the system
No available modular metadata for modular package 'fuse-overlayfs-1.13-1.module+el8.10.0+1825+623b0c20.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'mariadb-common-3:10.3.39-1.module+el8.8.0+1452+2a7eab68.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'python2-backports-1.0-16.module+el8.9.0+1531+a18208f5.x86_64', it cannot be installed on the system
No available modular metadata for modular package 'python2-chardet-3.0.4-10.module+el8.9.0+1531+a18208f5.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-idna-2.5-7.module+el8.9.0+1531+a18208f5.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-ipaddress-1.0.18-6.module+el8.9.0+1531+a18208f5.noarch', it cannot be installed on the system
No available modular metadata for modular package 'python2-urllib3-1.24.2-4.module+el8.10.0+1813+4b021305.noarch', it cannot be installed on the system
No available modular metadata for modular package 'slirp4netns-1.2.3-1.module+el8.10.0+1825+623b0c20.x86_64', it cannot be installed on the system
Error: No available modular metadata for modular package
I will try create the repo with createrepo from Rocky LInux 8 but just wanted to see if someone had some pointers on the right way to do this before I carry on stumbling in the dark
Thanks,
Pico