# AlmaLinux 8 to 9 upgrade ```shell yum update -y --allowerasing --nogpgcheck --skip-broken && reboot ``` ```shell curl -q -LSsf https://repo.almalinux.org/elevate/testing/elevate-testing.repo -o /etc/yum.repos.d/elevate-testing.repo && rpm --import https://repo.almalinux.org/elevate/RPM-GPG-KEY-ELevate yum makecache ``` ```shell sed -i 's,^SELINUX=.*,SELINUX=disabled,g' /etc/sysconfig/selinux ``` ```shell sed -i 's,^AllowZoneDrifting=yes,AllowZoneDrifting=no,g' /etc/firewalld/firewalld.conf ``` ```shell yum install -y leapp-upgrade leapp-data-almalinux ``` ```shell reboot ``` ```shell leapp preupgrade && leapp upgrade && \ history -c && history -w && reboot ```