- Как перейти с CentOS на Oracle Linux
- ВНИМАНИЕ:
- Подготовка к переходу с CentOS на Oracle Linux
- Переход (Миграция) с CentOS на Oracle Linux
- Заключение
- Oracle В® Linux 7
- Administrator’s Guide
- Oracle Legal Notices
- Oracle Documentation License
- How to see the version of Oracle Linux
- Determine Oracle Linux version
- Other options
- Related files
- Continue reading
- Livepatch: Linux kernel updates without rebooting
- How to secure a Linux system
- The state of Linux security in 2017
- Linux security myths
- Leave a Reply Cancel reply
- About Linux Audit
- Linux and UNIX security automation
- Recent Posts
- Contact
Как перейти с CentOS на Oracle Linux
CentOS широко используется малым бизнесом и разработчиками в серверных средах. Он обеспечивает стабильность и надежность, которые предлагает RHEL абсолютно бесплатно. Будучи версией обкатки и бета-версией для релизов RHEL, CentOS Stream не будет рекомендован для производственных рабочих нагрузок.
Несколько альтернатив были предложены в качестве достойной замены. Например AlmaLinux появился как жизнеспособный кандидат, похожий 1:1 и бинарно совместимым с RHEL. Мы вскоре покажем, как вы можете перейти с CentOS 8 на AlmaLinux 8.4.
Другой рекомендуемой альтернативой является Oracle Linux, который на 100% совместим с RHEL. Это означает, что приложения и функции остаются неизменными для Oracle Linux.
В этом руководстве мы расскажем вам как перейти с CentOS на Oracle Linux.
ВНИМАНИЕ:
В нашем случае переход с CentOS 8 на Oracle Linux прошел гладко, однако мы не можем с уверенностью гарантировать, что то же самое будет воспроизведено и в вашем случае.
В качестве меры предосторожности мы рекомендуем вам выполнить полную резервную копию всех ваших файлов перед началом миграции. Кроме того, убедитесь, что у вас есть быстрое и стабильное подключение к Интернету для обновления системных пакетов и загрузки последних пакетов Oracle Linux.
Тем не менее, выполните следующие действия, чтобы начать миграцию с CentOS на Oracle Linux.
Вам может понравится:
Подготовка к переходу с CentOS на Oracle Linux
Во-первых, войдите в систему CentOS и обновите ее до последней текущей версии. На данный момент последним релизом CentOS является CentOS 8.4.
Обновление займет довольно много времени и будет по большей части зависеть от вашего подключения к Интернету. Чем быстрее ваше подключение к Интернету, тем быстрее будет обновление.
Затем проверьте, была ли ваша система обновлена до последней версии.Введите команду как показано и посмотрите ответ.
Затем загрузите и запустите сценарий миграции, который доступный на Github. Этот сценарий поможет вам переключиться с экземпляра CentOS на Oracle Linux. Он выполняет несколько операций, включая удаление специфичных пакетов для CentOS. Либо найдет замену для Oracle Linux. На данный момент скрипт поддерживает выпуски CentOS 6, 7, 8 и не поддерживает CentOS Stream.
Переход (Миграция) с CentOS на Oracle Linux
Чтобы загрузить скрипт, выполните команду curl, как показано ниже.
$ curl -O https://raw.githubusercontent.com/oracle/centos2ol/main/centos2ol.sh
Эта команда загружает сценарий миграции под названием centos2ol.sh.
Затем назначьте разрешения на выполнение с помощью команды chmod.
Чтобы начать миграцию, запустите сценарий, как показано ниже.
Как уже упоминалось ранее, скрипт выполняет ряд операций. Сначала он проверяет наличие всех пакетов, которые необходимы во время обновления, и устанавливает отсутствующие.
Процесс миграции CentOS в Oracle Linux
Затем он переходит к резервному копированию старых файлов репозитория CentOS.
Резервное копирование Старых репозиториев CentOS
Далее скрипт скачивает приложения Oracle Linux и базовые репозитории ОС. И соответственно удаляет эквивалентные CentOS.
Включить Репозитории Oracle Linux
После перехода в репозитории Oracle Linux он синхронизируется с онлайн-репозиториями и обновляет пакеты Oracle Linux. Он также переустановит некоторые пакеты.
Синхронизация с репозиториями Oracle
Весь процесс довольно длительный потребуется минимум 2-3 часа. После завершения переключения вам будет предложено перезагрузить систему CentOS, как показано на рисунке
Как перейти с CentOS на Oracle Linux
Просто запустите команду:
Во время перезагрузки на экране появится журнал Oracle Linux log.
Перезагрузка Oracle Linux
Вскоре после этого появится меню Grub. Запись сервера Oracle Linux будет первой в списке, поэтому нажмите ENTER на клавиатуре, чтобы загрузиться в Oracle Linux.
Загрузочное меню Oracle Linux
Как только вы войдете в систему, еще раз проверьте версию операционной системы. Сделать это можно следующим образом.
Заключение
Вот и все в перешли с CentOS на Oracle Linux. Как видите нет ничего сложного, за вас все сделал скрипт. Мы надеемся, что это руководство стало для вас полезным. И не могу еще раз не предупредить:
Рекомендуем вам выполнить полную резервную копию всех ваших файлов перед началом перехода с CentOS на Oracle Linux.
Источник
Oracle В® Linux 7
Administrator’s Guide
Oracle Legal Notices
Copyright В© 2014, 2020, Oracle and/or its affiliates.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are «commercial computer software» or «commercial computer software documentation» pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the license contained in the applicable contract. The terms governing the U.S. Government’s use of Oracle cloud services are defined by the applicable contract for such services. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc, and the AMD logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle.
Oracle Documentation License
This document uses the Web-based Help format from DocBook XML. The following license information applies to this format.
Copyright В© 1999-2007 Norman Walsh
Copyright В© 2003 Jiri Kosek
Copyright В© 2004-2007 Steve Ball
Copyright В© 2005-2008 The DocBook Project
Copyright В© 2011-2012 O’Reilly Media
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the «Software»), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Except as contained in this notice, the names of individuals credited with contribution to this software shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the individuals in question.
Any stylesheet derived from this Software that is publicly distributed will be identified with a different name and the version strings in any derived Software will be changed so that no possibility of confusion between the derived package and this Software will exist.
THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Web-based Help from DocBook XML
Copyright В© 2008-2012 Kasun Gajasinghe, David Cramer
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Except as contained in this notice, the names of individuals credited with contribution to this software shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the individuals in question.
Any stylesheet derived from this Software that is publicly distributed will be identified with a different name and the version strings in any derived Software will be changed so that no possibility of confusion between the derived package and this Software will exist.
Warranty: THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL DAVID CRAMER, KASUN GAJASINGHE, OR ANY OTHER CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Certain search characteristics associated with the DocBook XSL webhelp stylesheets are provided as javascript files generated using Apache Lucene and other fourth party technologies, which are licensed under the Apache License reproduced below.
Источник
How to see the version of Oracle Linux
Determine Oracle Linux version
Oracle Linux is based on Red Hat Enterprise Linux. At first, it may be confusing to determine what specific operating system is running. This is because both have the /etc/redhat-release file.
If that file exists, use the cat command to display the contents. Next step is to determine if there is a /etc/oracle-release file as well. If so, then you can be sure that Oracle Linux is running.
Sample output might be: Oracle Linux Server release 6.7
Other options
Next time when you are on a system and not sure what it is running, use this:
This shows you any files that might give a hint on the operating system version.
Related files
- /etc/enterprise-release (older versions of OEL)
- /etc/issue
- /etc/issue.net
- /etc/lsb-release
Keep learning
So you are interested in Linux security? Join the Linux Security Expert training program, a practical and lab-based training ground. For those who want to become (or stay) a Linux security expert.
Run automated security scans and increase your defenses. Lynis is an open source security tool to perform in-depth audits. It helps with system hardening, vulnerability discovery, and compliance.
Continue reading
Livepatch: Linux kernel updates without rebooting
How to secure a Linux system
The state of Linux security in 2017
Linux security myths
Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
About Linux Audit
This blog is part of our mission: help individuals and companies, to scan and secure their systems. We simply love Linux security, system hardening, and questions regarding compliance.
Besides the blog, we have our security auditing tool Lynis. Open source, GPL, and free to use.
For those with enterprise needs, or want to audit multiple systems, there is an Enterprise version.
«One security solution to audit, harden, and secure your Linux/UNIX systems.»
Benefits:
- Perform audits within a few minutes
- Central management
- Powerful reporting
- Compliance checks (e.g. PCI DSS)
- Additional plugins and more tests
Enjoy the articles!
Linux and UNIX security automation
Lynis is a free and open source security scanner. It helps with testing the defenses of your Linux, macOS, and Unix systems. Typical use-cases for this software include system hardening, vulnerability scanning, and checking compliance with security standards (PCI-DSS, ISO27001, etc).
Recent Posts
Contact
This blog is part of our mission to share valuable tips about Linux security. We are reachable via @linuxaudit
Company details
CISOfy
De Klok 28,
5251 DN, Vlijmen, The Netherlands
+31-20-2260055
Источник