https://www.publickey1.jp/blog/24/centos_67linux_oselevate.html
https://qiita.com/pjam1x4/items/b1712eb264b801355db0
https://wiki.almalinux.org/elevate/ELevate-quickstart-guide.html
https://wiki.almalinux.org/elevate/ELevating-CentOS7-to-AlmaLinux-9.html
CentOS 7 -> AlmaLinux 9
-- 1. Upgrade CentOS 7 to AlmaLinux 8
curl -o /etc/yum.repos.d/CentOS-Base.repo https://el7.repo.almalinux.org/centos/CentOS-Base.repo
yum upgrade -y
reboot
yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
yum install -y leapp-upgrade leapp-data-almalinux
leapp preupgrade
cat /var/log/leapp/leapp-report.txt
modprobe -r pata_acpi
leapp answer --section remove_pam_pkcs11_module_check.confirm=True
leapp preupgrade
cat /var/log/leapp/leapp-report.txt
leapp upgrade
reboot
alternatives --set python /usr/bin/python3
cat /etc/redhat-release
cat /etc/os-release
rpm -qa | grep el7
cat /var/log/leapp/leapp-report.txt
-- 2. Prepare the system for upgrade to AlmaLinux 9
You need to remove everything from the exclude line
vim /etc/dnf/dnf.conf
You need to remove everything from the exclude line
表示された全パッケージを削除
rpm -e --nodeps kernel-3.10.0-1160.119.1.el7.x86_64
rpm -e --nodeps elevate-release-1.0-2.el7.noarch
rpm -e --nodeps leapp-data-almalinux-0.2-15.el7.20230823.noarch
rpm -e --nodeps leapp-0.16.0-2.el7.noarch
rpm -e --nodeps kernel-3.10.0-1160.90.1.el7.x86_64
rpm -e --nodeps python2-leapp-0.16.0-2.el7.noarch
rpm -e --nodeps leapp-upgrade-el7toel8-0.19.0-7.1.el7.noarch
rpm -qa | grep elevate
rpm -qa | grep leapp
rpm -e --nodeps leapp-deps-el8-5.0.8-100.202301271308Z.f7c82a24.master.el8.noarch
rpm -e --nodeps leapp-repository-deps-el8-5.0.8-100.202301271308Z.f7c82a24.master.el8.noarch
rm -fr /root/tmp_leapp_py3
dnf clean all
rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'
rpm -e gpg-pubkey-f4a80eb5-53a7ff4b
-- 3. Upgrading AlmaLinux 8 to AlmaLinux 9
yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
yum install -y leapp-upgrade leapp-data-almalinux
leapp preupgrade
cat /var/log/leapp/leapp-report.txt
sed -i 's/PermitRootLogin yes/#PermitRootLogin yes/' /etc/ssh/sshd_config
leapp preupgrade
cat /var/log/leapp/leapp-report.txt
leapp upgrade
reboot
cat /etc/redhat-release
cat /etc/os-release
rpm -qa | grep el8
cat /var/log/leapp/leapp-report.txt
dnf update --allowerasing
rpm -e --nodeps sox-14.4.2.0-29.el8.x86_64
rpm -e --nodeps kernel-modules-extra-4.18.0-553.16.1.el8_10.x86_64
rpm -e --nodeps GeoIP-1.6.12-7.el8.x86_64
rpm -e --nodeps leapp-upgrade-el8toel9-0.19.0-7.1.el8.noarch
rpm -e --nodeps alsa-utils-alsabat-1.2.10-1.el8.x86_64
rpm -e --nodeps vorbis-tools-1.4.0-29.el8.x86_64
rpm -e --nodeps opusfile-0.11-3.el8.x86_64
rpm -e --nodeps kernel-modules-4.18.0-553.16.1.el8_10.x86_64
rpm -e --nodeps leapp-0.16.0-2.el8.noarch
rpm -e --nodeps kernel-4.18.0-553.16.1.el8_10.x86_64
rpm -e --nodeps apache-ivy-2.4.0-14.module_el8.0.0+6004+2fc32706.noarch
rpm -e --nodeps leapp-data-almalinux-0.2-15.el8.20230823.noarch
rpm -e --nodeps GeoIP-GeoLite-data-2018.06-5.el8.noarch
rpm -e --nodeps libbluray-1.0.2-3.el8.x86_64
rpm -e --nodeps python3-leapp-0.16.0-2.el8.noarch
rpm -e --nodeps elevate-release-1.0-2.el8.noarch
rpm -e --nodeps tagsoup-1.2.1-15.el8.noarch
rpm -e --nodeps kernel-core-4.18.0-553.16.1.el8_10.x86_64
rpm -e --nodeps kernel-workaround-0.1-1.el8.noarch
rpm -e --nodeps libid3tag-0.15.1b-30.el8.x86_64
sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config
systemctl restart sshd