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
  • 1.  dnf not fund after dnf update which installed python3.9

    Posted Mon July 03, 2023 12:08 PM
    Edited by Glenn Robinson Mon July 03, 2023 12:09 PM

    AIX 7.2.

    I've used dnf_aixtoolbox.sh to update rpm.rte, dnf and python.

    I then ran dnf update and there were around 30 packages to update so I updated them.

    The updates from the repos were successfull but now when I run dnf I get an error.

    # dnf
    bash: /usr/bin/dnf: /opt/freeware/bin/python3_32: bad interpreter: A file or directory in the path name does not exist.
    

    I check for dnf and python using rpm -qa:

    # rpm -qa | grep -E "dnf|python"
    python3-3.9.16-2.ppc
    python3.9-libcomps-0.1.15-101.ppc
    rpm-python3-4.15.1-32_2.ppc
    dnf-data-4.2.17-32_51.ppc
    python3.9-libdnf-0.39.1-32_52.ppc
    python3.9-dnf-4.2.17-32_51.ppc
    dnf-4.2.17-32_51.ppc
    python3-librepo-1.11.0-102.ppc
    python3-libdnf-0.39.1-32_52.ppc
    python3-gpg-1.13.1-101.ppc
    python3.9-3.9.16-2.ppc
    python3.9-gpg-1.13.1-101.ppc
    rpm-python3.9-4.15.1-32_2.ppc
    libdnf-0.39.1-32_52.ppc
    python3.9-hawkey-0.39.1-32_52.ppc
    python3-dnf-4.2.17-32_51.ppc
    python3.9-librepo-1.11.0-102.ppc
    dnf-automatic-4.2.17-32_51.ppc
    python3-hawkey-0.39.1-32_52.ppc
    python3-libcomps-0.1.15-101.ppc

    That looks OK.

    So it seems like something to do with python3_32.

    If I run /opt/freeware/bin/dnf it work fine.

    I have /opt/freeware/bin in my $PATH envvar. Have done for years :-)

    Any suggestions on how to fix this?



    ------------------------------
    Glenn Robinson
    ------------------------------


    #AIXOpenSource


  • 2.  RE: dnf not fund after dnf update which installed python3.9
    Best Answer

    Posted Tue July 04, 2023 09:13 AM

    Hi Glenn,

    Now we don't ship /usr/bin/dnf.

    This looks like somehow been left and PATH environment variable is picking from the /usr/bin first since this dangling file is still present.

     



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



  • 3.  RE: dnf not fund after dnf update which installed python3.9

    Posted Tue July 04, 2023 02:20 PM

    I renamed /usr/bin/dnf and now dnf works fine.

    Thank you.



    ------------------------------
    Glenn Robinson
    ------------------------------