# AlmaLinux and “python3-dnf”

**URL:** <https://forum.ansible.com/t/almalinux-and-python3-dnf/44262>\
**Category:** Get Help\
**Tags:** almalinux, ansible, ubuntu\
**Created:** [August 8, 2025, 4:33pm UTC](https://forum.ansible.com/t/almalinux-and-python3-dnf/44262 "2025-08-08T16:33:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Denney-tech](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/denney-tech/32/1556_2.png) [@Denney-tech](https://forum.ansible.com/u/Denney-tech)\
**Post date:** [August 14, 2025, 2:09pm UTC](https://forum.ansible.com/t/almalinux-and-python3-dnf/44262/4 "2025-08-14T14:09:50Z")

</div>

Martin is correct, you cannot use `ansible-core>=2.17` with the yum/dnf modules on EL8 and older OS systems (RHEL/CentOS/Alma/Rocky, etc). The OS upgrade and alternatives configuration have nothing to do with it, and in fact shouldn’t have worked before the CentOS7 → AlmaLinux8 upgrade either.

@sivel has covered this topic extensively. He has a short but detailed explanation here: [Issue with Ansible on Rocky Linux 8.10 (Python 3.12) – "future feature annotations is not defined" - #2 by sivel](https://forum.ansible.com/t/issue-with-ansible-on-rocky-linux-8-10-python-3-12-future-feature-annotations-is-not-defined/41117/2) and a longer and more thorough explanation here: [Python 3.7+ Impact on EL8 (future for EL9) - #13 by sivel](https://forum.ansible.com/t/python-3-7-impact-on-el8-future-for-el9/6229/13)

---

_[View the full topic](https://forum.ansible.com/t/almalinux-and-python3-dnf/44262)._
