Why is this line in my /etc/yum.conf after upgrade to alma8?

why is this line in my /etc/dnf/dnf.conf (symlink from /etc/yum.conf) after upgrade to alma8? (from Centos7)

exclude=python2-leapp,snactor,leapp-upgrade-el7toel8,leapp

it seems to block yum upate.

yum update
Last metadata expiration check: 0:06:34 ago on Tue 06 May 2025 07:30:05 AEST.
Error: 
 Problem: package python3-future-0.18.3-4.el8.noarch from epel obsoletes python2-future < 0.18.3-4.el8 provided by python2-future-0.18.2-2.el7.noarch from @System
  - package python2-parsedatetime-2.4-6.el7.noarch from @System requires python2-future, but none of the providers can be installed
  - cannot install the best update candidate for package python2-future-0.18.2-2.el7.noarch
  - problem with installed package python2-parsedatetime-2.4-6.el7.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

I have these active repos. I disabled ElevateTesting because it seems wrong to be there still.

Node.js Packages for Linux RPM based distros - x86_64                                                                                                                                
N|Solid Packages for Linux RPM based distros - x86_64                                                                                                                                                                                                                                                             
AlmaLinux 8 - BaseOS                                                                                                                                                               
AlmaLinux 8 - AppStream                                                                                                                                                             
AlmaLinux 8 - Extras                                                                                                                                                                
Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                     
Remi's Modular repository for Enterprise Linux 8 - x86_64                                                                                                                          
Safe Remi's RPM repository for Enterprise Linux 8 - x86_64                                                                                                                         
Virtualmin Distribution Neutral Packages                                                                                                                                           
Webmin Releases  

I’m noticing I should do all the things in the /var/log/leapp/leapp-report.txt but none of the upgrade guides mentioned this.

so starting with running alternatives --set python /usr/bin/python3

man unversioned-python writes:

unversioned-python The “unversioned” python command (/usr/bin/python) is missing by default. We recommend using python3 or python2 instead.

and:

please review the support lifecycle of python2 before relying on it

That lifecycle is already in state “dead” … (use wooden stakes, silver, headshot, …)


Nothing in that error message seems to refer to the excluded packages. What it has is:

- problem with installed package python2-parsedatetime-2.4-6.el7.noarch

Which looks wrong as there should not be ‘el7’ packages in proper el8 system, nor python2 packages. I would remove the el7 packages.


Disclaimer: I have never used leapp.

I did a bunch of stuff in the leapp-report.txt, seems better now and I can dnf update.
setting python3 also worked.
removed the exclude line.