Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

dnf repolist error

  • 1.  dnf repolist error

    Posted Fri August 29, 2025 06:09 AM

    Hi Ranjit,

    upon running dnf repolist  getting below error

    root@test2:/mnt1>> /opt/freeware/bin/dnf repolist
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError:    0509-022 Cannot load module /opt/freeware/lib64/libdnf.a(libdnf.so.2).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1) could not be loaded.
            0509-152   Member libcrypto.so.1.1 is not found in archive
    root@test2:/mnt1>>

    I have removed many rpm still getting this error

    please suggest

    Also below is the installation status ...some of them are showing less than 100 % , is that ok or not installed correctly.

    pm-python3.9-4.15.1-64_4 is already installed
    yum-4.2.17-64_6 will be installed
    zchunk-libs-1.1.4-64_3 is already installed

    Installing the packages...

    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:librepo-1.11.0-64_2              ################################# [  8%]
       2:libdnf-0.39.1-64_5               ################################# [ 15%]
       3:python3.9-libdnf-0.39.1-64_5     ################################# [ 23%]
       4:python3.9-hawkey-0.39.1-64_5     ################################# [ 31%]
       5:python3.9-dnf-4.2.17-64_6        ################################# [ 38%]
       6:python3-dnf-4.2.17-64_6          ################################# [ 46%]
       7:dnf-4.2.17-64_6                  ################################# [ 54%]
       8:python3.9-librepo-1.11.0-64_2    ################################# [ 62%]
       9:python3-librepo-1.11.0-64_2      ################################# [ 69%]
      10:dnf-automatic-4.2.17-64_6        ################################# [ 77%]
      11:yum-4.2.17-64_6                  ################################# [ 85%]
      12:python3-hawkey-0.39.1-64_5       ################################# [ 92%]
      13:python3-libdnf-0.39.1-64_5       ################################# [100%]

    dnf installed successfully.
    Please run 'dnf update' to update packages to the latest level.

    Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
    RPM packages install files go under the path /opt.
    Hence it is recommended to always keep at least 512MB of free space in /var & /opt
    to avoid any download and installation/update failures.

    Creating the dnf.conf file with required locale repositories.
    The default /opt/freeware/etc/dnf/dnf.conf has been saved as /opt/freeware/etc/dnf/dnf.conf_local_bak

    Thanks

    Shahir



    ------------------------------
    Shahir Ali FR
    ------------------------------

    #AIXOpenSource


  • 2.  RE: dnf repolist error

    Posted Fri August 29, 2025 06:12 AM

    root@AIXHOST/mnt1/RPMS>> rpm -qa
    bash-4.3-12.ppc
    expat-2.1.0-1.ppc
    fetchmailconf-5.9.10-1.ppc
    gettext-0.10.40-8.ppc
    pci.df1000f9-3-93a0.noarch
    pci.df1000fd-2-10x8.noarch
    prngd-0.9.23-2.ppc
    python-2.7.5-1.ppc
    readline-6.2-3.ppc
    tk-8.4.7-3.ppc
    zlib-1.2.3-4.ppc
    snowagent-6.2.3-1.noarch
    python3.9-3.9.16-0.ppc
    libzstd-1.4.4-64_2.ppc
    libsolv-0.7.9-64_4.ppc
    zchunk-libs-1.1.4-64_3.ppc
    python3.9-gpg-1.13.1-64_3.ppc
    dnf-data-4.2.17-64_6.noarch
    p11-kit-0.23.22-0.ppc
    libcomps-0.1.15-64_1.ppc
    ca-certificates-2023.2.60-0.ppc
    python3-gpg-1.13.1-64_3.ppc
    libdnf-0.39.1-64_5.ppc
    python3.9-hawkey-0.39.1-64_5.ppc
    python3-dnf-4.2.17-64_6.noarch
    python3.9-librepo-1.11.0-64_2.ppc
    dnf-automatic-4.2.17-64_6.noarch
    python3-hawkey-0.39.1-64_5.ppc
    db-3.3.11-4.ppc
    fetchmail-5.9.10-1.ppc
    gdbm-1.8.3-2.ppc
    info-5.1-2.ppc
    openssl-1.0.1g-1.ppc
    pci.df1000fa-1-191A5.noarch
    pci.df1080f9-1-91x4.noarch
    procmail-3.21-1.ppc
    python-iniparse-0.4-1.noarch
    tcl-8.4.7-3.ppc
    unzip-6.0-2.ppc
    AIX-rpm-7.3.1.2-13.ppc
    python3-3.9.16-0.ppc
    libmodulemd-1.5.2-64_2.ppc
    libsmartcols-2.34-64_1.ppc
    rpm-python3.9-4.15.1-64_4.ppc
    rpm-python3-4.15.1-64_4.ppc
    p11-kit-tools-0.23.22-0.ppc
    python3.9-libcomps-0.1.15-64_1.ppc
    python3-libcomps-0.1.15-64_1.ppc
    librepo-1.11.0-64_2.ppc
    python3.9-libdnf-0.39.1-64_5.ppc
    python3.9-dnf-4.2.17-64_6.noarch
    dnf-4.2.17-64_6.noarch
    python3-librepo-1.11.0-64_2.ppc
    yum-4.2.17-64_6.noarch
    python3-libdnf-0.39.1-64_5.ppc
    root@AIXHOST/mnt1/RPMS>>


    root@AIXHOST/mnt1/RPMS>> ldd  /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so
    /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so needs:
             /opt/freeware/lib/libgcc_s.a(shr.o)
             /usr/lib/libc.a(shr_64.o)
             /usr/lib/libpthread.a(shr_xpg5_64.o)
             /opt/freeware/lib64/libpython3.9.a(libpython3.9.so)
             /opt/freeware/lib/libstdc++.a(libstdc++.so.6)
             /opt/freeware/lib64/libzstd.a(libzstd.so.1.4.4)
             /opt/freeware/lib64/libdnf.a(libdnf.so.2)
             /opt/freeware/lib64/librepo.a(librepo.so.0)
             /opt/freeware/lib64/libsolv.a(libsolv.so.1)
             /opt/freeware/lib64/libsolvext.a(libsolvext.so.1)
             /opt/freeware/lib64/libmodulemd.a(libmodulemd.so.1)
             /opt/freeware/lib64/libsmartcols.a(libsmartcols.so.2.34.0)
             /usr/lib/libc.a(_shr_64.o)
             /unix
             /usr/lib/libcrypt.a(shr_64.o)
             /usr/lib/libpthread.a(_shr_xpg5_64.o)
             /usr/lib/libdl.a(shr_64.o)
             /opt/freeware/lib/libz.a(libz.so.1)
             /usr/opt/rpm/lib64/librpmio.a(librpmio.so.9)
             /usr/opt/rpm/lib64/librpm.a(librpm.so.9)
             /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1)
    ar: 0707-109 Member name libcrypto.so.1.1 does not exist.
    dump: /tmp/tmpdir19333618/extract/libcrypto.so.1.1: 0654-106 Cannot open the specified file.
             /opt/freeware/lib64/libzck.a(libzck.so.1.1.4)
             /opt/freeware/lib/libssl.a(libssl.so.1.1)
    ar: 0707-109 Member name libssl.so.1.1 does not exist.
    dump: /tmp/tmpdir19333618/extract/libssl.so.1.1: 0654-106 Cannot open the specified file.
             /usr/opt/rpm/lib/libintl.a(libintl.so.8)
             /usr/opt/rpm/lib64/libnss3.so
             /usr/opt/rpm/lib/libpopt.a(libpopt.so.0)
             /usr/opt/rpm/lib/libbz2.a(libbz2.so.1)
             /usr/opt/rpm/lib/libz.a(libz.so.1)
             /usr/opt/rpm/lib/liblua.a(liblua-5.3.so)
             /usr/opt/rpm/lib/libdb-4.8.a(libdb-4.8.so)
             /usr/lib/libcrypto.a(libcrypto.so.1.1)
             /usr/opt/rpm/lib64/libnspr4.so
             /usr/opt/rpm/lib64/libnssutil3.so
             /usr/opt/rpm/lib64/libplc4.so
             /usr/opt/rpm/lib64/libplds4.so
             /opt/freeware/lib/libintl.a(libintl.so.8)
             /usr/lib/libodm.a(shr_64.o)
             /usr/lib/libcfg.a(shr_64.o)
             /usr/lib/libiconv.a(shr4_64.o)
    root@AIXHOST/mnt1/RPMS>>



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 3.  RE: dnf repolist error

    Posted Fri August 29, 2025 06:37 AM

    @Shahir Ali FR

    While Ranjit replies,
    Try removing openssl manually.

    rpm -e openssl-1.0.1g-1.ppc

    The reason being we need to get dnf to use libcrypto from /usr/lib and then try dnf update??



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 4.  RE: dnf repolist error

    Posted Sun August 31, 2025 11:08 PM

    Hi Aditya

    root@AIXHOST:/>> rpm -qa|grep -i openssl
    openssl-1.0.1g-1.ppc
    root@AIXHOST:/>> rpm -e openssl-1.0.1g-1.ppc
    error: Failed dependencies:
            libcrypto.a(libcrypto.so.0.9.8) is needed by (installed) python-2.7.5-1.ppc
            libssl.a(libssl.so.0.9.8) is needed by (installed) python-2.7.5-1.ppc
    root@AIXHOST:/>> rpm -e python-2.7.5-1.ppc
    error: Failed dependencies:
            python is needed by (installed) fetchmailconf-5.9.10-1.ppc
            python >= 2.7 is needed by (installed) python-iniparse-0.4-1.noarch
    root@AIXHOST:/>> rpm -e python-iniparse-0.4-1.noarch
    root@AIXHOST:/>> rpm -e python-2.7.5-1.ppc
    error: Failed dependencies:
            python is needed by (installed) fetchmailconf-5.9.10-1.ppc
    root@AIXHOST:/>> rpm -e fetchmailconf-5.9.10-1.ppc
    root@AIXHOST:/>> rpm -e python-2.7.5-1.ppc
    root@AIXHOST:/>> rpm -e openssl-1.0.1g-1.ppc
    warning: file /var/ssl/misc/tsget: remove failed: A file or directory in the path name does not exist.
    warning: file /var/ssl/misc/c_name: remove failed: A file or directory in the path name does not exist.
    warning: file /var/ssl/misc/c_issuer: remove failed: A file or directory in the path name does not exist.
    warning: file /var/ssl/misc/c_info: remove failed: A file or directory in the path name does not exist.
    warning: file /var/ssl/misc/c_hash: remove failed: A file or directory in the path name does not exist.
    warning: file /var/ssl/misc/CA.sh: remove failed: A file or directory in the path name does not exist.
    root@AIXHOST:/>> rpm -qa|grep -i openssl
    root@AIXHOST:/>>



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 5.  RE: dnf repolist error

    Posted Sun August 31, 2025 11:10 PM

    Hi Aditya

    What do you mean by "The reason being we need to get dnf to use libcrypto from /usr/lib and then try dnf update??"

    Please clarify.

    Thanks

    Shahir



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 6.  RE: dnf repolist error

    Posted Sun August 31, 2025 11:12 PM

    root@AIXHOST:/>> opt/freeware/bin/dnf repolist
    ksh: opt/freeware/bin/dnf:  not found.
    root@AIXHOST:/>>



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 7.  RE: dnf repolist error

    Posted Mon September 01, 2025 12:33 AM
    Edited by Aditya Kamath Mon September 01, 2025 12:34 AM

    From your rpm -qa output I do not see python3.9 installed in your system.

    # rpm -qa | grep python3.9-3.9
    python3.9-3.9.23-1.ppc

    Do you have something like the above? We need Python 3.9 installed in your system. 

    > What do you mean by "The reason being we need to get dnf to use libcrypto from /usr/lib and then try dnf update??"

    > Please clarify.

    Toolbox packages are compiled using openssl 3 now and formerly openssl 1. libcrypto comes in AIX base. So we need to get the libdnf library to use the libcrypto coming from the AIX base openssl. 

    It looks like your system uses an older openssl rpm, which toolbox used to ship back then, which dnf does not need. 

    So do you have Python 3.9 toolbox in your system??



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 8.  RE: dnf repolist error

    Posted Mon September 01, 2025 01:06 AM

    root@AIXHost:/>> rpm -qa | grep python3.9-3.9
    python3.9-3.9.16-0.ppc
    root@AIXHost:/>>



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 9.  RE: dnf repolist error

    Posted Mon September 01, 2025 12:42 AM

    Also, what is the output of
    ls -l opt/freeware/bin/dnf

    Do you see something like this?? 
    # ls -l opt/freeware/bin/dnf
    lrwxrwxrwx 1 root system 5 May 14 02:50 opt/freeware/bin/dnf -> dnf-3



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 10.  RE: dnf repolist error

    Posted Mon September 01, 2025 01:09 AM

    Hi Aditya

    PFB

    root@AIXHost:/>> ls -l opt/freeware/bin/dnf
    /opt/freeware/bin/ls: opt/freeware/bin/dnf: A file or directory in the path name does not exist.
    root@AIXHost:/>>

    Thanks



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 11.  RE: dnf repolist error

    Posted Mon September 01, 2025 04:41 AM

    Hi,

    Hmm, that is surprising now. 

    Did you remove dnf by mistake??

    Before we could suggest anything else, 
    What is the output of ls -l opt/freeware/bin/dnf-3 and ls -l /opt/freeware/lib/libdnf.a



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 12.  RE: dnf repolist error

    Posted Mon September 01, 2025 04:44 AM

    Normally when someone removes openssl RPM dnf should pick up the correct libcrypto and must work. 



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 13.  RE: dnf repolist error

    Posted Mon September 01, 2025 10:31 PM
    Yes because of the dependency. But I know it is .....!!!
    root@AIXHost:/mnt1>> rpm -e librepo-1.11.0-64_2.ppc
    error: Failed dependencies:
            librepo >= 1.11.0 is needed by (installed) libdnf-0.39.1-64_5.ppc
            librepo.a(librepo.so.0) is needed by (installed) libdnf-0.39.1-64_5.ppc
            librepo.a(librepo.so.0) is needed by (installed) python3.9-libdnf-0.39.1-64_5.ppc
            librepo.a(librepo.so.0) is needed by (installed) python3.9-hawkey-0.39.1-64_5.ppc
    root@AIXHost:/mnt1>> rpm -e python3.9-hawkey-0.39.1-64_5.ppc
    root@AIXHost:/mnt1>> rpm -e python3.9-libdnf-0.39.1-64_5.ppc
    error: Failed dependencies:
            python3.9-libdnf = 0.39.1-64_5 is needed by (installed) python3-libdnf-0.39.1-64_5.ppc
    root@AIXHost:/mnt1>> rpm -e python3-libdnf-0.39.1-64_5.ppc
    root@AIXHost:/mnt1>> rpm -e librepo-1.11.0-64_2.ppc
    error: Failed dependencies:
            librepo >= 1.11.0 is needed by (installed) libdnf-0.39.1-64_5.ppc
            librepo.a(librepo.so.0) is needed by (installed) libdnf-0.39.1-64_5.ppc
            librepo.a(librepo.so.0) is needed by (installed) python3.9-libdnf-0.39.1-64_5.ppc
    root@AIXHost:/mnt1>> rpm -e python3.9-libdnf-0.39.1-64_5.ppc
    root@AIXHost:/mnt1>> rpm -e libdnf-0.39.1-64_5.ppc
    error: Failed dependencies:
            libgcc_s.a(shr.o) is needed by (installed) openldap-2.4.45-1.ppc
    root@AIXHost:/mnt1>> rpm -e openldap-2.4.45-1.ppc
    error: Failed dependencies:
            liblber.a(liblber-2.4.so.2) is needed by (installed) sudo-1.8.15-2.ppc
            libldap.a(libldap-2.4.so.2) is needed by (installed) sudo-1.8.15-2.ppc
            openldap >= 2.4.40 is needed by (installed) sudo-1.8.15-2.ppc
    root@AIXHost:/mnt1>> rpm -e sudo-1.8.15-2.ppc
    warning: /etc/sudoers saved as /etc/sudoers.rpmsave
    root@AIXHost:/mnt1>> rpm -e sudo-1.8.15-2.ppc
    error: package sudo-1.8.15-2.ppc is not installed
    root@AIXHost:/mnt1>> rpm -e sudo-1.8.15-2.ppc
    error: package sudo-1.8.15-2.ppc is not installed
    root@AIXHost:/mnt1>> rpm -qa sudo
    root@AIXHost:/mnt1>>
    root@AIXHost:/>> ls -l opt/freeware/bin/dnf-3
    /opt/freeware/bin/ls: opt/freeware/bin/dnf-3: A file or directory in the path name does not exist.
    root@AIXHost:/>> ls -l opt/freeware/bin/dn*
    /opt/freeware/bin/ls: opt/freeware/bin/dn*: A file or directory in the path name does not exist.
    root@AIXHost:/>> ls -l /opt/freeware/lib/libdnf.a
    /opt/freeware/bin/ls: /opt/freeware/lib/libdnf.a: A file or directory in the path name does not exist.
    root@AIXHost:/>>
    Do you want me to do dnf install again do go from there please? Let me know how we can get around this.
    Thank you.


    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 14.  RE: dnf repolist error

    Posted Tue September 02, 2025 01:48 AM

    Hi Shahir,
    root@test2:/mnt1>>
    root@AIXHost:/

    Are you using two LPARs??

    > Do you want me to do dnf install again do go from there please? Let me know how we can get around this.

    Yes, please install dnf once again using the script from the website. Your LPAR root@AIXHost does not have dnf in it. 






    ------------------------------
    Aditya Kamath
    ------------------------------



  • 15.  RE: dnf repolist error

    Posted Tue September 02, 2025 02:32 AM

    Hi Aditya

    It is same , single LPAR. I am just using / working on one. The host name get changed during sanitation from security team.

    I did reinstall dnf 

    What is next please?

    Thanks

    Shahir



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 16.  RE: dnf repolist error

    Posted Tue September 02, 2025 02:37 AM
    Edited by Aditya Kamath Tue September 02, 2025 02:37 AM

    Hi Shahir,

    Is the output of  ls -l /opt/freeware/bin/dnf coming as dnf-3 if you have reinstalled?



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 17.  RE: dnf repolist error

    Posted Tue September 02, 2025 02:42 AM

    RPMs before re install

    root@AIXHost:/>> rpm -qa
    bash-4.3-12.ppc
    expat-2.1.0-1.ppc
    gettext-0.10.40-8.ppc
    pci.df1000f9-3-93a0.noarch
    pci.df1000fd-2-10x8.noarch
    prngd-0.9.23-2.ppc
    readline-6.2-3.ppc
    tk-8.4.7-3.ppc
    zlib-1.2.3-4.ppc
    snowagent-6.2.3-1.noarch
    python3.9-3.9.16-0.ppc
    libzstd-1.4.4-64_2.ppc
    libsolv-0.7.9-64_4.ppc
    zchunk-libs-1.1.4-64_3.ppc
    python3.9-gpg-1.13.1-64_3.ppc
    dnf-data-4.2.17-64_6.noarch
    p11-kit-0.23.22-0.ppc
    libcomps-0.1.15-64_1.ppc
    ca-certificates-2023.2.60-0.ppc
    python3-gpg-1.13.1-64_3.ppc
    db-3.3.11-4.ppc
    fetchmail-5.9.10-1.ppc
    gdbm-1.8.3-2.ppc
    info-5.1-2.ppc
    pci.df1000fa-1-191A5.noarch
    pci.df1080f9-1-91x4.noarch
    procmail-3.21-1.ppc
    tcl-8.4.7-3.ppc
    unzip-6.0-2.ppc
    AIX-rpm-7.3.1.2-13.ppc
    python3-3.9.16-0.ppc
    libmodulemd-1.5.2-64_2.ppc
    libsmartcols-2.34-64_1.ppc
    rpm-python3.9-4.15.1-64_4.ppc
    rpm-python3-4.15.1-64_4.ppc
    p11-kit-tools-0.23.22-0.ppc
    python3.9-libcomps-0.1.15-64_1.ppc
    python3-libcomps-0.1.15-64_1.ppc
    root@AIXHost:/>>

    rpm-python3-4.15.1-64_4 is already installed
    rpm-python3.9-4.15.1-64_4 is already installed
    yum-4.2.17-64_6 will be installed
    zchunk-libs-1.1.4-64_3 is already installed

    Installing the packages...

    Verifying...                          ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:librepo-1.11.0-64_2              ################################# [  8%]
       2:libdnf-0.39.1-64_5               ################################# [ 15%]
       3:python3.9-libdnf-0.39.1-64_5     ################################# [ 23%]
       4:python3.9-hawkey-0.39.1-64_5     ################################# [ 31%]
       5:python3.9-dnf-4.2.17-64_6        ################################# [ 38%]
       6:python3-dnf-4.2.17-64_6          ################################# [ 46%]
       7:dnf-4.2.17-64_6                  ################################# [ 54%]
       8:python3.9-librepo-1.11.0-64_2    ################################# [ 62%]
       9:python3-librepo-1.11.0-64_2      ################################# [ 69%]
      10:dnf-automatic-4.2.17-64_6        ################################# [ 77%]
      11:yum-4.2.17-64_6                  ################################# [ 85%]
      12:python3-hawkey-0.39.1-64_5       ################################# [ 92%]
      13:python3-libdnf-0.39.1-64_5       ################################# [100%]

    dnf installed successfully.
    Please run 'dnf update' to update packages to the latest level.

    Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
    RPM packages install files go under the path /opt.
    Hence it is recommended to always keep at least 512MB of free space in /var & /opt
    to avoid any download and installation/update failures.

    Creating the dnf.conf file with required locale repositories.
    The default /opt/freeware/etc/dnf/dnf.conf has been saved as /opt/freeware/etc/dnf/dnf.conf_local_bak
    root@AIXHost:/>> echo $?
    0
    root@AIXHost:/>>



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 18.  RE: dnf repolist error

    Posted Tue September 02, 2025 02:44 AM

    What happens when you run dnf update??



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 19.  RE: dnf repolist error

    Posted Tue September 02, 2025 02:47 AM

    Looks promising Aditya

    update you soon :)



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 20.  RE: dnf repolist error

    Posted Tue September 02, 2025 03:25 AM

    I have installed and updated the sudo 



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 21.  RE: dnf repolist error

    Posted Tue September 02, 2025 02:59 AM
    Edited by Shahir Ali FR Tue September 02, 2025 03:01 AM

    wow ... looks like it's a success

     Verifying        : libsolv-0.7.9-64_52.ppc                                                                                                                                          111/124
      Verifying        : libsolv-0.7.9-64_4.ppc                                                                                                                                           112/124
      Verifying        : python3-dnf-4.2.17-64_53.ppc                                                                                                                                     113/124
      Verifying        : python3-dnf-4.2.17-64_6.noarch                                                                                                                                   114/124
      Verifying        : python3-hawkey-0.39.1-64_52.ppc                                                                                                                                  115/124
      Verifying        : python3-hawkey-0.39.1-64_5.ppc                                                                                                                                   116/124
      Verifying        : python3-libdnf-0.39.1-64_52.ppc                                                                                                                                  117/124
      Verifying        : python3-libdnf-0.39.1-64_5.ppc                                                                                                                                   118/124
      Verifying        : python3.9-dnf-4.2.17-64_53.ppc                                                                                                                                   119/124
      Verifying        : python3.9-dnf-4.2.17-64_6.noarch                                                                                                                                 120/124
      Verifying        : python3.9-hawkey-0.39.1-64_52.ppc                                                                                                                                121/124
      Verifying        : python3.9-hawkey-0.39.1-64_5.ppc                                                                                                                                 122/124
      Verifying        : python3.9-libdnf-0.39.1-64_52.ppc                                                                                                                                123/124
      Verifying        : python3.9-libdnf-0.39.1-64_5.ppc                                                                                                                                 124/124

    Upgraded:
      bash-5.2.21-1.ppc                   ca-certificates-2024.2.66-1.ppc       db-1:5.3.28-1.ppc                    expat-2.6.3-1.ppc                     gdbm-1.23-1.ppc
      gettext-0.21-2.ppc                  info-7.0.2-1.ppc                      libcomps-0.1.15-101.ppc              libmodulemd-1.5.2-100.ppc             librepo-1.11.0-103.ppc
      libsmartcols-2.34-101.ppc           libzstd-1.5.2-3.ppc                   p11-kit-0.24.1-1.ppc                 p11-kit-tools-0.24.1-1.ppc            prngd-0.9.29-1.ppc
      python3-3.9.20-1.ppc                python3-gpg-1.13.1-101.ppc            python3-libcomps-0.1.15-101.ppc      python3-librepo-1.11.0-103.ppc        python3.9-3.9.20-1.ppc
      python3.9-gpg-1.13.1-101.ppc        python3.9-libcomps-0.1.15-101.ppc     python3.9-librepo-1.11.0-103.ppc     readline-8.2-1.ppc                    tcl-8.6.13-1.ppc
      tk-8.6.13-1.ppc                     unzip-6.0-3.ppc                       zchunk-libs-1.1.4-103.ppc            zlib-1.2.13-1.ppc                     dnf-4.2.17-64_53.ppc
      dnf-automatic-4.2.17-64_53.ppc      dnf-data-4.2.17-64_53.ppc             libdnf-0.39.1-64_52.ppc              libsolv-0.7.9-64_52.ppc               python3-dnf-4.2.17-64_53.ppc
      python3-hawkey-0.39.1-64_52.ppc     python3-libdnf-0.39.1-64_52.ppc       python3.9-dnf-4.2.17-64_53.ppc       python3.9-hawkey-0.39.1-64_52.ppc     python3.9-libdnf-0.39.1-64_52.ppc

    Installed:
      pinentry-1.0.0-1.ppc        bzip2-1.0.8-2.ppc               check-0.13.0-1.ppc      curl-8.9.1-1.ppc        cyrus-sasl-2.1.28-1.ppc   fontconfig-2.14.2-1.ppc   freetype2-2.12.1-1.ppc
      glib2-2.81.0-1.ppc          gmp-6.3.0-1.ppc                 gnupg2-2.4.3-1.ppc      gnutls-3.8.7-1.ppc      gpgme-1.13.1-101.ppc      json-c-0.17-1.ppc         krb5-libs-1.21.3-1.ppc
      libXft-2.3.2-4waixX11.ppc   libXrender-0.9.8-3waixX11.ppc   libassuan-2.5.6-1.ppc   libffi-3.4.4-2.ppc      libgcrypt-1.10.3-1.ppc    libgpg-error-1.49-1.ppc   libiconv-1.17-1.ppc
      libksba-1.6.3-1.ppc         libnghttp2-1.62.1-1.ppc         libpng-1.6.42-1.ppc     libssh2-1.11.0-1.ppc    libtasn1-4.19.0-1.ppc     libtextstyle-0.21-2.ppc   libunistring-1.1-1.ppc
      libxml2-2.12.9-1.ppc        libyaml-0.2.5-1.ppc             ncurses-6.4-1.ppc       nettle-3.9.1-1.ppc      npth-1.5-1.ppc            openldap-2.5.16-1.ppc     pcre2-10.40-1.ppc
      sqlite-3.45.3-1.ppc         xz-libs-5.4.3-1.ppc             libgcc-1:10-2.ppc       libgcc10-10.3.0-6.ppc   libgomp-1:10-2.ppc        libgomp10-10.3.0-6.ppc    libstdc++-1:10-2.ppc
      libstdc++10-10.3.0-6.ppc

    Complete!
    root@AIXHost:/>> echo $?
    0
    root@AIXHost:/>>

    userid@AIXHost:/>>rpm -qa
    pci.df1000f9-3-93a0.noarch
    pci.df1000fd-2-10x8.noarch
    snowagent-6.2.3-1.noarch
    libgcc-10-2.ppc
    libffi-3.4.4-2.ppc
    libzstd-1.5.2-3.ppc
    ncurses-6.4-1.ppc
    expat-2.6.3-1.ppc
    libtasn1-4.19.0-1.ppc
    check-0.13.0-1.ppc
    db-5.3.28-1.ppc
    libgomp-10-2.ppc
    openldap-2.5.16-1.ppc
    freetype2-2.12.1-1.ppc
    tcl-8.6.13-1.ppc
    libyaml-0.2.5-1.ppc
    pcre2-10.40-1.ppc
    libxml2-2.12.9-1.ppc
    glib2-2.81.0-1.ppc
    libiconv-1.17-1.ppc
    info-7.0.2-1.ppc
    libmodulemd-1.5.2-100.ppc
    readline-8.2-1.ppc
    libsmartcols-2.34-101.ppc
    fontconfig-2.14.2-1.ppc
    p11-kit-tools-0.24.1-1.ppc
    libksba-1.6.3-1.ppc
    nettle-3.9.1-1.ppc
    krb5-libs-1.21.3-1.ppc
    zchunk-libs-1.1.4-103.ppc
    gnupg2-2.4.3-1.ppc
    librepo-1.11.0-103.ppc
    gdbm-1.23-1.ppc
    python3-3.9.20-1.ppc
    python3.9-hawkey-0.39.1-64_52.ppc
    python3.9-librepo-1.11.0-103.ppc
    python3.9-libcomps-0.1.15-101.ppc
    python3.9-dnf-4.2.17-64_53.ppc
    dnf-4.2.17-64_53.ppc
    libXft-2.3.2-4waixX11.ppc
    dnf-automatic-4.2.17-64_53.ppc
    python3-librepo-1.11.0-103.ppc
    python3-hawkey-0.39.1-64_52.ppc
    unzip-6.0-3.ppc
    fetchmail-5.9.10-1.ppc
    pci.df1000fa-1-191A5.noarch
    pci.df1080f9-1-91x4.noarch
    procmail-3.21-1.ppc
    AIX-rpm-7.3.1.2-13.ppc
    rpm-python3.9-4.15.1-64_4.ppc
    rpm-python3-4.15.1-64_4.ppc
    libgcc10-10.3.0-6.ppc
    zlib-1.2.13-1.ppc
    libstdc++10-10.3.0-6.ppc
    libstdc++-10-2.ppc
    bzip2-1.0.8-2.ppc
    json-c-0.17-1.ppc
    xz-libs-5.4.3-1.ppc
    gmp-6.3.0-1.ppc
    libgomp10-10.3.0-6.ppc
    cyrus-sasl-2.1.28-1.ppc
    libpng-1.6.42-1.ppc
    libssh2-1.11.0-1.ppc
    libnghttp2-1.62.1-1.ppc
    npth-1.5-1.ppc
    libtextstyle-0.21-2.ppc
    libunistring-1.1-1.ppc
    bash-5.2.21-1.ppc
    gettext-0.21-2.ppc
    libgpg-error-1.49-1.ppc
    libassuan-2.5.6-1.ppc
    sqlite-3.45.3-1.ppc
    libgcrypt-1.10.3-1.ppc
    p11-kit-0.24.1-1.ppc
    ca-certificates-2024.2.66-1.ppc
    pinentry-1.0.0-1.ppc
    gnutls-3.8.7-1.ppc
    curl-8.9.1-1.ppc
    libsolv-0.7.9-64_52.ppc
    gpgme-1.13.1-101.ppc
    libdnf-0.39.1-64_52.ppc
    python3.9-3.9.20-1.ppc
    python3.9-libdnf-0.39.1-64_52.ppc
    python3.9-gpg-1.13.1-101.ppc
    libcomps-0.1.15-101.ppc
    dnf-data-4.2.17-64_53.ppc
    python3-dnf-4.2.17-64_53.ppc
    libXrender-0.9.8-3waixX11.ppc
    tk-8.6.13-1.ppc
    python3-libcomps-0.1.15-101.ppc
    python3-gpg-1.13.1-101.ppc
    python3-libdnf-0.39.1-64_52.ppc
    prngd-0.9.29-1.ppc
    userid@AIXHost:/>>

    Can you please summarise what we did to achieve this please?  Thanks.

    And the issue facing now  is

    userid@AIXHost:/>>sudo su -
    -bash: sudo: command not found
    userid@AIXHost:/>>

    May be because we have removed sudo for openssl rpm ??

    Thanks



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 22.  RE: dnf repolist error

    Posted Tue September 02, 2025 03:29 AM

    Hi,

    > May be because we have removed sudo for openssl rpm ??

    Yes. A good practice will be to continuously run dnf update once in two weeks. 




    ------------------------------
    Aditya Kamath
    ------------------------------



  • 23.  RE: dnf repolist error

    Posted Tue September 02, 2025 03:34 AM

    Now that the dnf is working, you can install anything from the AIX toolbox.

    Like dnf install sudo.

    To check what all we have, you can run the command dnf list.



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 24.  RE: dnf repolist error

    Posted Thu September 04, 2025 01:34 AM

    Hi Aditya,

    I have no internet connection.

    I have downloaded the iso and did and install.

    In this case how do you recommend.

    Thanks

    Shahir



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 25.  RE: dnf repolist error

    Posted Thu September 04, 2025 09:20 AM

    CC: @SANGAMESH MALLAYYA



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 26.  RE: dnf repolist error

    Posted Sat September 06, 2025 05:29 AM

    Hi Shahir,

    The output you pasted in discussion number:21 is from the downloaded iso ?

    Can you send the output of "dnf repolist" ?

    With iso if one runs "dnf update" then the packages will be updated to available latest versions from the iso image.



    ------------------------------
    SANGAMESH
    ------------------------------



  • 27.  RE: dnf repolist error

    Posted Fri September 12, 2025 02:16 AM

    Hi Sangamesh

    Yes 

    correct.

    Ok PFB.

    root@Bad Host:/>> /opt/freeware/bin/dnf repolist
    repo id                                                                                    repo name
    Local_AIX_Toolbox                                                                          Local AIX generic repository
    Local_AIX_Toolbox_73                                                                       Local AIX 7.3 specific repository
    Local_AIX_Toolbox_noarch                                                                   Local AIX noarch repository
    root@Bad Host:/>>

    Thanks



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 28.  RE: dnf repolist error

    Posted Tue September 30, 2025 06:32 AM

    Hi Team

    @Aditya Kamath  @Ranjit Ranjan

    With this above out put  ( putting it below again) 

    Meanwhile.... with the DNF install, update we are doing ...

    My understanding was , that the DNF repository,( for AIX , i.e the toolbox Linux source) would be on our NIM server. And we did  NFS exported to all AIX servers.

    But from the below command and output , that it is referencing a 'local' DNF repository. On each server we do DNF install

    root@AIX HostName:/>> dnf repolist

    repo id                                         repo name

    Local_AIX_Toolbox                     Local AIX generic repository

    Local_AIX_Toolbox_73               Local AIX 7.3 specific repository

    Local_AIX_Toolbox_noarch           Local AIX noarch repository

    root@AIX HostName:/>>

    Does this means that each server will need to have a local repository created ?

    Or how this is working?

    Thank you

    Shahir



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 29.  RE: dnf repolist error

    Posted Mon October 06, 2025 12:42 AM

    cc: @SANGAMESH MALLAYYA



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 30.  RE: dnf repolist error

    Posted Mon October 06, 2025 10:58 AM

    Hi Shahir,

    You have a flexibility in having DNF local repository.

    There are 2 options.

    1. Creating local repo using AIX toolbox iso media image.  
      https://community.ibm.com/community/user/blogs/sangamesh-mallayya1/2022/02/09/creating-local-repo-with-dnf-and-aix-toolbox-media
    2. Using reposync to sync AIX Toolbox packages to one of the repo server.
      https://community.ibm.com/community/user/blogs/sumitra-dawn/2025/06/03/configuring-dnf-and-creating-local-repositories-on

    Option 1, can again be used in two different ways.

    1.1. Use iso media to mount it in a single par.

    1.2. Mount iso media in one of the server and export the mount path using nfs.

     The disadvantage with 1.2. is that you would be exporting mount to multiple clients without getting regular packages updates from AIX toolbox.

    Anyway, In case of option 1 you are restricted to installing packages available in the iso media only. 

    Hence, if you are export nfs mount to multiple clients lpar then it is recommended to use option 2.     



    ------------------------------
    SANGAMESH
    ------------------------------



  • 31.  RE: dnf repolist error

    Posted Fri September 12, 2025 02:26 AM

    New error

    started a new thread  -  https://community.ibm.com/community/user/discussion/dnf-repolist-error-2   

    @Aditya Kamath  @Ranjit Ranjan



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 32.  RE: dnf repolist error

    Posted Thu September 18, 2025 11:10 PM

    Hi Aditya

    @Aditya Kamath  @Ranjit Ranjan

    On this thread  https://community.ibm.com/community/user/discussion/dnf-repolist-error-2    I am unable to reply or do anything there.

    So thought of asking here.

    There you asked me to remove openssl and then try dnf update.

    Why we are doing this please?

    What if the application and the team requires this rpm ?

    Also I can not see this rpm on servers where I did dnf update.

    How we are going to address this please?

    Thanks

    Shahir



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 33.  RE: dnf repolist error

    Posted Fri September 19, 2025 01:14 AM

    Hi,

    > There you asked me to remove openssl and then try dnf update.

    > Why we are doing this please?

    AIX now has openssl version 3 in AIX base. Not part of AIX toolbox like before. Even dnf and aix toolbox packages are linked to openssl version 3 coming from AIX base. So that old openssl RPM is no longer needed.
    See: ls -l /usr/lib/libssl.a
    ls -l /usr/lib/libcrypto.a

    If you have these two then you have openssl from AIX base. So no problem if you do not have toolbox openssl and your application needs.

    > What if the application and the team requires this rpm ?
    If your application needs then link it to openssl from AIX base as mentioned above.

    > Also I can not see this rpm on servers where I did dnf update.

    Yes, because AIX users no longer need openssl rpm.

    > How we are going to address this please?
    By using those two and other libraries from AIX base openssl v3.

    Hope this helps.



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 34.  RE: dnf repolist error

    Posted 7 days ago

    Hi Team,

    We have done this tasks ( DNF installation and update ) inorder to fix an LDAP login issue on AIX 7.3 servers along with the efix  IJ46727s2a.230509.AIX73TL01SP02.epkg.Z .

    Can we do the same - ( DNF installation and update ) - on our AIX 7.2 servers as well?  Is that ok and recommended. Or will have any issues ? 

    Please let me know.

    Thanks

    Shahir

    @Aditya Kamath  @Ranjit Ranjan @SANGAMESH MALLAYYA



    ------------------------------
    Shahir Ali FR
    ------------------------------



  • 35.  RE: dnf repolist error

    Posted 7 days ago

    Hi,

    > Can we do the same - ( DNF installation and update ) - on our AIX 7.2 servers as well?  Is that ok and recommended. Or will have any issues ? 
    Yes. Ideally you should not see any issues. If you hit issues then feel free to post.



    ------------------------------
    Aditya Kamath
    ------------------------------