Hi Sangamesh,
Thank you for helping .. I found this and fixed the problem..
when i checked yum command which is point to dnf-3 is working as expected.. So i viewed the dnf and dnf-3 files under
/opt/freeware/bin
lrwxrwxrwx 1 root system 5 Jan 26 17:48 yum -> dnf-3
dnf-3 shows
#!/opt/freeware/libexec/python3.12_32
# The dnf executable script.
dnf shows :
#!/opt/freeware/bin/python3.12
# The dnf executable script.
I modified dnf script and point to the same
after update:
#!/opt/freeware/libexec/python3.12_32
# The dnf executable script.
dnf start working as expected ..
Hopefully some bug in dnf script and it will be update in new releases.
------------------------------
Ravindra Srimandapati
------------------------------
Original Message:
Sent: Wed January 28, 2026 12:05 PM
From: SANGAMESH MALLAYYA
Subject: dnf version 4.23 had problems after installed
Please provide the output of "head /opt/freeware/bin/dnf-3" and "rpm -qf /opt/freeware/bin/dnf".
------------------------------
SANGAMESH
Original Message:
Sent: Wed January 28, 2026 04:38 AM
From: Ravindra Srimandapati
Subject: dnf version 4.23 had problems after installed
Hi Team,
Anyone had this type of issue before.
We are running AIX 7.2 and we installed dnf-4.23 version and its python dependencies ..
python3-dnf-plugin-migrate-4.10.1-32_1.noarch
libdnf-0.74.0-32_3.ppc
dnf-automatic-4.23.0-32_2.noarch
python3-dnf-4.23.0-32_2.noarch
python3-libdnf-0.74.0-32_3.ppc
python3-dnf-plugins-core-4.10.1-32_1.noarch
dnf-4.23.0-32_2.noarch
dnf-data-4.23.0-32_2.noarch
python3.12-libdnf-0.74.0-32_3.ppc
python3.12-dnf-4.23.0-32_2.noarch
----
-bash-3.2# rpm -qa | grep python
python-devel-2.7.18-4.ppc
python3.12-3.12.12-1.ppc
python3.11-3.11.9-1.ppc
python3-3.12.12-1.ppc
python3-tkinter-3.12.11-0.ppc
python3-dateutil-2.9.0.post0-1.noarch
python3-gpg-1.24.3-32_1.ppc
python3-libcomps-0.1.22-32_1.ppc
python3-librepo-1.20.0-32_1.ppc
python3-gpgme-1.13.1-1.ppc
python3-dnf-plugin-migrate-4.10.1-32_1.noarch
python3.12-hawkey-0.74.0-32_3.ppc
python3.12-gpg-1.24.3-32_1.ppc
python3.12-libcomps-0.1.22-32_1.ppc
python3.9-3.9.20-1.ppc
python3.9-pip-23.3.1-1.noarch
python-2.7.18-4.ppc
python3.9-devel-3.9.20-1.ppc
python3.12-devel-3.12.12-1.ppc
python3.12-setuptools-rust-1.11.1-1.noarch
rpm-python3-4.15.1-32_3.ppc
python3-six-1.17.0-1.noarch
python3-idle-3.12.11-0.ppc
python3-dnf-4.23.0-32_2.noarch
python3-hawkey-0.74.0-32_3.ppc
python3-libdnf-0.74.0-32_3.ppc
python3-test-3.12.11-0.ppc
python3-dnf-plugins-core-4.10.1-32_1.noarch
python3-devel-3.12.11-0.ppc
python3.12-libdnf-0.74.0-32_3.ppc
rpm-python3.12-4.15.1-32_3.ppc
python3.12-dnf-4.23.0-32_2.noarch
python3.12-librepo-1.20.0-32_1.ppc
-bash-3.2#
----
-bash-3.2# echo $LIBPATH
/opt/freeware/lib:/usr/lib
-bash-3.2# echo $PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin:/opt/freeware/bin
-bash-3.2#
but when we run dnf command we are getting below error
-bash-3.2# dnf list
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 56, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.12/site-packages/dnf/__init__.py", line 32, in <module>
import dnf.base
File "/opt/freeware/lib/python3.12/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/opt/freeware/lib/python3.12/site-packages/libdnf/__init__.py", line 8, in <module>
from . import error
File "/opt/freeware/lib/python3.12/site-packages/libdnf/error.py", line 13, in <module>
from . import _error
ImportError: 0509-022 Cannot load module /opt/freeware/lib/python3.12/site-packages/libdnf/_error.so.
0509-026 System error: Cannot run a file that does not have a valid format.
-bash-3.2#
Can someone please help me on this.
------------------------------
Ravindra Srimandapati
------------------------------