This repository contains two scripts for Oracle Linux migration workflows:
- 🔄
migrate-to-oracle-linux.shmigrates supported Enterprise Linux systems to Oracle Linux, including the Amazon Linux 2 to Oracle Linux 7 exception. - 🪞
mirror-oracle-linux-yum.shbuilds an Oracle Linux yum mirror that migration targets can use instead of reachingyum.oracle.comdirectly.
🪞 Run mirror-oracle-linux-yum.sh only on the yum mirror system.
🎯 Run migrate-to-oracle-linux.sh on each system that will be migrated to Oracle
Linux.
These are separate roles. The mirror script prepares and serves Oracle Linux repositories. The migration script changes the operating system installed on a target host.
-
🪞 On the yum mirror system, build and publish the Oracle Linux mirror:
sudo ./mirror-oracle-linux-yum.sh \ --dest /srv/mirror \ --public-base-url https://yum-mirror.example.com \ --jobs 4
-
📝 Note the
--yum-mirrorvalue reported by the mirror script. -
🎯 On each system being migrated, run the migration script:
sudo ./migrate-to-oracle-linux.sh -y --yum-mirror https://yum-mirror.example.com
The mirror script writes the migration mirror value to:
<dest>/migrate-to-oracle-linux-yum-mirror.txt
If migration targets can reach yum.oracle.com directly, the mirror is optional:
sudo ./migrate-to-oracle-linux.sh -yFor proxied internet access, run the migration script on the target system with
--proxy:
sudo ./migrate-to-oracle-linux.sh -y --proxy http://myproxy.example.com:3128--proxy cannot be used with --yum-mirror.
make checkThe Vagrant scaffolding under tests/vagrant is for smoke testing. It is not a
substitute for testing real subscribed RHEL systems.
The shell scripts use UPL-1.0. See LICENSE.txt.