运维联盟俱乐部

 找回密码
 立即注册
查看: 1949|回复: 0

centos7切换为oracle linux

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2022-4-8 10:03:29 | 显示全部楼层 |阅读模式
    https://github.com/oracle/centos2ol
    centos2ol.txt (22.99 KB, 下载次数: 0)

    1. Switch from CentOS to Oracle Linux

    2. This script is designed to automatically switch a CentOS instance to Oracle Linux by removing any CentOS-specific packages or replacing them with the Oracle Linux equivalent.
    3. Supported versions and architectures

    4. This script currently supports switching CentOS Linux 6, CentOS Linux 7, CentOS Linux 8, and Rocky Linux on both x86_64 and aarch64 architectures. It does not support CentOS Stream.

    5.     Support for switching Rocky Linux should be considered experimental due to limited testing. Likewise, switching any of the operating systems mentioned above on aarch64 hosts should be considered experimental.

    6.     Please ensure you have a complete working backup before attempting to switch and report any issues you encounter during the process.

    7. Before you start

    8. IMPORTANT: this script is a work-in-progress and is not designed to handle all possible configurations. Please ensure you have a complete working backup of the system before you start this process in the event the script is unable to convert the system successfully or unable to rollback the changes it made.

    9. NOTE: CentOS 8 has reached end-of-life and its repos have moved to vault.centos.org. Please ensure that your CentOS 8 system is up-to-date and able to access those repos before you start.
    10. Remove all non-standard kernels

    11. Because of the GRUB2 BootHole vulnerability, our SecureBoot shim can only boot kernels signed by Oracle and we can only replace the default CentOS kernels. While this may not have an impact if SecureBoot is currently disabled, enabling it at a later date could render the system unbootable. For that reason, we strongly recommend removing all non-standard kernels, i.e. any kernel that is installed that is not provided by either the base or updates repo. This includes the centosplus kernels.

    12.     Ensure your CentOS yum or dnf configuration is working, i.e. there are no stale repositories.
    13.     Disable all non-CentOS repositories. You can re-enable the repos after the switch.
    14.     Ensure you have at least 5GB of free space in /var/cache.
    15.     All automatic updates, e.g. via yum-cron should be disabled.

    16. Usage

    17.     Login to your CentOS Linux 6, 7 or 8 instance as a user who has sudo privileges.
    18.     Either clone this repository or download the centos2ol.sh script.
    19.     Run sudo bash centos2ol.sh to switch your CentOS instance to Oracle Linux.

    20. Usage options

    21.     -r Reinstalls all CentOS RPMs with Oracle Linux RPMs

    22.     If a system is switched to Oracle Linux and there is no newer Oracle Linux version of a package already installed then the CentOS version remains. This option proceeds to reinstall any CentOS RPM with an identical version from Oracle Linux. This is not necessary for support and has no impact to a systems functionality but is offered so a user can remove CentOS GPG keys from the truststore. A list of all non-Oracle RPMs will be displayed after the reinstall process.

    23.     -k Do not install the UEK kernel and disable UEK repos

    24.     This option will not install the UEK kernel and will disable all UEK yum repositories.

    25.     -V Verify RPM information before and after the switch

    26.     This option creates four output files in /var/tmp/:
    27.         ${hostname}-rpms-list-[before|after].log: a sorted list of installed packages before and after the switch to Oracle Linux.
    28.         ${hostname}-rpms-verified-[before|after].log: the RPM verification results for all installed packages before and after the switch to Oracle Linux.

    29. Testing

    30. See TESTING.md for instructions on the available tests and how to run them.
    31. Known issues

    32.     There is a reported issue with the upstream OpenJDK package resetting the alternatives configuration during a dnf reinstall transaction.

    33.     We recommend recording the output of alternatives --list prior to running centos2ol.sh and reviewing the same output after switching. If you experience an issue with a package other than OpenJDK, please open an issue

    34. Limitations

    35.     The script currently needs to be able communicate with the CentOS and Oracle Linux yum repositories either directly or via a proxy.
    36.     The script currently does not support instances that are registered to a third-party management tool like Spacewalk, Foreman or Uyuni.
    37.     Compatibility with packages installed from third-party repositories is expected but not guaranteed. Some software doesn't like the existence of an /etc/oracle-release file, for example.
    38.     Packages that install third-party and/or closed-source kernel modules, e.g. commercial anti-virus products, may not work after switching.
    39.     The script only enables the base repositories required to enable switching to Oracle Linux. Users may need to enable additional repositories to obtain updates for packages already installed (see issue #1.

    40. Debugging

    41. Run sudo bash -x centos2ol.sh to switch your CentOS instance to Oracle Linux in debug mode. This will print a trace of commands and their arguments or associated word lists after they are expanded but before they are executed.
    42. Get involved

    43. We welcome contributions! See our contribution guidelines.
    44. Support

    45.     Open a GitHub issue for non-security related bug reports, questions, or requests for enhancements.
    46.     To report a security issue or vulnerability, please follow the reporting security vulnerabilities instructions.

    47. Resources

    48. For more information on Oracle Linux, please visit oracle.com/linux.
    49. License

    50. Copyright (c) 2020, 2021 Oracle and/or its affiliates.

    51. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
    复制代码






    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-4 14:25 , Processed in 0.052767 second(s), 24 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表