Migration to Rocky 8 via local files?

Hi Peter,

I hope you’re doing well.

I have successfully downloaded the Rocky Linux repositories and placed them in a local directory at /home/wmclaughlin/rocky8repos. Additionally, I have saved the GPG key at /home/wmclaughlin/RPM-GPG-KEY-rockyofficial.

I plan to modify the migrate2rocky.sh script with the following changes:

Replace the lines around 141 and 1279 to use the pre-downloaded GPG key:

gpg_key_url=“/home/wmclaughlin/RPM-GPG-KEY-rockyofficial”

Modify the repo URLs around line 149:

repo_urls=(

[rockybaseos]="/home/wmclaughlin/rocky8repos/BaseOS/$ARCH/os/"

[rockyappstream]="/home/wmclaughlin/rocky8repos/AppStream/$ARCH/os/"

)

Add code around line 1098 to modify the rocky*.repo files:

sed -i 's|baseurl=.|baseurl=file:/home/wmclaughlin/rocky8repos/BaseOS/|’ /etc/yum.repos.d/rocky.repo

sed -i 's|baseurl=.|baseurl=file:/home/wmclaughlin/rocky8repos/AppStream/|’ /etc/yum.repos.d/rocky.repo

Unfortunately, I was unable to download the CentOS Stream 8 repositories to create a local copy. I attempted to use the mirror at https://vault.centos.org/, but I was only able to retrieve a robots.txt file.

Could you please advise if the planned modifications look correct for proceeding with the migration using the local files? I am still using an intermediate machine to transfer files from the web, and I have not yet been able to establish an open internet connection on the target machine.

Thank you for your assistance.

Sincerely,

Bill