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 update failed after installing

    Posted Thu September 07, 2023 03:30 AM

    Hi, after following this instruction to install dnf

    To install dnf on AIX...

    1. Browse to https://www.ibm.com/support/pages/node/6585774 
    2. Click on the dnf_aixtoolbox.sh link to download the install script
    3. Copy the dnf_aixtoolbox.sh script to the /tmp directory on the system where you want it installed
    4. Log on to the system and, as root, run the following commands...
                # /usr/sbin/updtvpkg
                # cd /tmp
                # chmod +x dnf_aixtoolbox.sh
                # ./dnf_aixtoolbox.sh -y  
    5. After the script runs, edit environment variable path...  
                # vi /etc/environment  
                          append the following to the end of the PATH environment variable...    :/opt/freeware/bin
                # . /etc/environment
    6. Update
                # dnf update

    I got this error for command dnf update:

    # dnf update
    AIX generic repository                          0.0  B/s |   0  B     00:00    
    Errors during downloading metadata for repository 'AIX_Toolbox':
      - Curl error (7): Couldn't connect to server for 

    http://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml

     [Failed to connect to public.dhe.ibm.com port 80: Connection refused]
    Error: Failed to download metadata for repo 'AIX_Toolbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

    Is there any authorization that I miss?

    Thank you.



    ------------------------------
    Michelle Huynh
    ------------------------------

    #AIXOpenSource


  • 2.  RE: dnf update failed after installing

    Posted Fri September 08, 2023 02:09 AM

    Hi Michelle,

    find the file /opt/freeware/etc/dnf/dnf.conf and change there http:// to https://. 



    ------------------------------
    Andrey Klyachkin

    https://www.power-devops.com
    ------------------------------