oracle/centos2ol

Script and documentation to switch to Oracle Linux

367

stars

42

commits

Shell

primary language

May 6, 2026

updated

github.com/oracle/migrate-to-ol
centos
hacktoberfest
linux
oracle
oracle-linux
switch

README

๐Ÿง migrate-to-oracle-linux

This repository contains two scripts for Oracle Linux migration workflows:

  • ๐Ÿ”„ migrate-to-oracle-linux.sh migrates supported Enterprise Linux systems to Oracle Linux, including the Amazon Linux 2 to Oracle Linux 7 exception.
  • ๐Ÿชž mirror-oracle-linux-yum.sh builds an Oracle Linux yum mirror that migration targets can use instead of reaching yum.oracle.com directly.

NOTE: those scripts are based on a community effort and are not officially supported by Oracle.

๐Ÿ“ Where To Run Each Script

๐Ÿชž 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.

๐Ÿ“š Main Documentation

๐Ÿš€ Typical Workflow

  1. ๐Ÿชž 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
    
  2. ๐Ÿ“ Note the --yum-mirror value reported by the mirror script.

  3. ๐ŸŽฏ 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

๐ŸŒ Direct Internet Workflow

If migration targets can reach yum.oracle.com directly, the mirror is optional:

sudo ./migrate-to-oracle-linux.sh -y

For 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.

๐Ÿงช Development

make check

The Vagrant scaffolding under tests/vagrant is for smoke testing. It is not a substitute for testing real subscribed RHEL systems.

โš–๏ธ License

The shell scripts use UPL-1.0. See LICENSE.txt.

Contributors

Djelibeybi

17 commits

mark-au

8 commits

scoter-oracle

4 commits

graham1228

2 commits

oracle/centos2ol

Script and documentation to switch to Oracle Linux

367

stars

42

commits

Shell

primary language

May 6, 2026

updated

github.com/oracle/migrate-to-ol
centos
hacktoberfest
linux
oracle
oracle-linux
switch

README

๐Ÿง migrate-to-oracle-linux

This repository contains two scripts for Oracle Linux migration workflows:

  • ๐Ÿ”„ migrate-to-oracle-linux.sh migrates supported Enterprise Linux systems to Oracle Linux, including the Amazon Linux 2 to Oracle Linux 7 exception.
  • ๐Ÿชž mirror-oracle-linux-yum.sh builds an Oracle Linux yum mirror that migration targets can use instead of reaching yum.oracle.com directly.

NOTE: those scripts are based on a community effort and are not officially supported by Oracle.

๐Ÿ“ Where To Run Each Script

๐Ÿชž 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.

๐Ÿ“š Main Documentation

๐Ÿš€ Typical Workflow

  1. ๐Ÿชž 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
    
  2. ๐Ÿ“ Note the --yum-mirror value reported by the mirror script.

  3. ๐ŸŽฏ 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

๐ŸŒ Direct Internet Workflow

If migration targets can reach yum.oracle.com directly, the mirror is optional:

sudo ./migrate-to-oracle-linux.sh -y

For 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.

๐Ÿงช Development

make check

The Vagrant scaffolding under tests/vagrant is for smoke testing. It is not a substitute for testing real subscribed RHEL systems.

โš–๏ธ License

The shell scripts use UPL-1.0. See LICENSE.txt.

Contributors

Djelibeybi

17 commits

mark-au

8 commits

scoter-oracle

4 commits

graham1228

2 commits

Languages

Shell

65.4%

HTML

34.5%