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.  how to get DNF working on AIX 7.3 Beta

    Posted Wed October 27, 2021 04:32 AM
    Hello All,
    I tried to get dnf working on AIX 7.3 but so far not successfully.
    I installed the dnf bundle tar file and this went ok without any problem.


    We use one central download LPAR for downloading the repositories and on this server a simple ksh script is running to sync the repos see below:

    #!/bin/ksh93
    set -x
    # remove old logs
    oldlog=`ls /tmp/reposync-log.*`

    if [[ -e ${oldlog} ]]
    then
       rm ${oldlog}
    fi

    datum=`date +%m-%d-%y-%H_%M`
    log="/tmp/reposync-log".${datum}

    touch ${log}
    export https_proxy='proxyserverfqdn:80'
    export http_proxy='proxyserverfqdn:80'
    target="/install/AIX/yum_repo"

    reposync -p ${target} -r AIX_Toolbox -a ppc >${log} 2>&1
    reposync -p ${target} -r AIX_Toolbox_61 -a ppc >>${log} 2>&1
    reposync -p ${target} -r AIX_Toolbox_71 -a ppc >>${log} 2>&1
    reposync -p ${target} -r AIX_Toolbox_72 -a ppc >>${log} 2>&1
    reposync -p ${target} -r AIX_Toolbox_73 -a ppc >>${log} 2>&1
    reposync -p ${target} -r AIX_Toolbox_noarch >>${log} 2>&1

    # cleanup empty files
    find ${target} -size 0 -ls |awk '{ print $11}' |xargs -n 1 rm >>${log} 2>&1

    createrepo ${target}/AIX_Toolbox >>${log} 2>&1
    createrepo ${target}/AIX_Toolbox_61 >>${log} 2>&1
    createrepo ${target}/AIX_Toolbox_71 >>${log} 2>&1
    createrepo ${target}/AIX_Toolbox_72 >>${log} 2>&1
    createrepo ${target}/AIX_Toolbox_73 >>${log} 2>&1
    createrepo ${target}/AIX_Toolbox_noarch >>${log} 2>&1

     The AIX 7.3 repo does not contain many files but anyway it's doing something:

    [Toolbox_73/repodata] ls -altr
    total 32
    -rw-r----- 1 root system  134 Oct 27 09:40 dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9-primary.xml.gz
    -rw-r----- 1 root system  123 Oct 27 09:40 6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670-other.xml.gz
    -rw-r----- 1 root system  123 Oct 27 09:40 401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93-filelists.xml.gz
    -rw-r----- 1 root system  583 Oct 27 09:40 1bcb7b5b8899ef71a222cda0e9ee0c45cb263e0b67eddfb814e0ea8f58a750d7-other.sqlite.bz2
    -rw-r----- 1 root system 2964 Oct 27 09:40 repomd.xml
    -rw-r----- 1 root system 1117 Oct 27 09:40 eea6ddcf72674fb17e9442153e81c5c493ccfc379ad1da7ae9b814eee933a488-primary.sqlite.bz2
    -rw-r----- 1 root system  601 Oct 27 09:40 4f3c52301d5d5d77c3c591842aee1eac682d3931531773279df565c314ce9578-filelists.sqlite.bz2

    On the new AIX 7.3 client we use a nfs mount for accessing the repodata on the central server.

    The problem that I got on the new client is the following:

     testlpar1@/opt/freeware/etc/dnf>dnf update   

    Last metadata expiration check: 0:22:32 ago on Wed Oct 27 10:01:21 CEST 2021.
    Error:
    Problem 1: cannot install the best update candidate for package tk-8.4.7-3.ppc
    - nothing provides libX11.a(shr4.o) needed by tk-8.6.11-1.ppc
    - nothing provides libXext.a(shr.o) needed by tk-8.6.11-1.ppc
    - nothing provides libX11.a(shr_64.o) needed by tk-8.6.11-1.ppc
    - nothing provides libXext.a(shr_64.o) needed by tk-8.6.11-1.ppc
    Problem 2: package tcl-8.6.11-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
    - cannot install the best update candidate for package tcl-8.4.7-3.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-1:8-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-2.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-3.ppc
    Problem 3: package python3-3.7.11-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
    - cannot install the best update candidate for package python3-3.7.9-0.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-1:8-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-2.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-3.ppc
    Problem 4: package p11-kit-0.23.22-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
    - cannot install the best update candidate for package p11-kit-0.23.16-0.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-1:8-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-2.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-3.ppc
    Problem 5: package expect-5.45.4-2.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
    - cannot install the best update candidate for package expect-5.42.1-3.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-1:8-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-2.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-3.ppc
    Problem 6: package p11-kit-tools-0.23.22-1.ppc requires libtasn1 >= 4.16.0, but none of the providers can be installed
    - package libtasn1-4.16.0-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
    - cannot install the best update candidate for package p11-kit-tools-0.23.16-0.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-1:8-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-2.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-3.ppc
    Problem 7: package ca-certificates-2020.06.01-2.ppc requires p11-kit-tools >= 0.23.16-2, but none of the providers can be installed
    - package p11-kit-tools-0.23.16-2.ppc requires libtasn1 >= 4.16.0, but none of the providers can be installed
    - package p11-kit-tools-0.23.22-1.ppc requires p11-kit = 0.23.22, but none of the providers can be installed
    - package libtasn1-4.16.0-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
    - package p11-kit-0.23.22-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
    - cannot install the best update candidate for package ca-certificates-2020.06.01-0.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-1:8-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-1.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-2.ppc
    - nothing provides AIX-rpm < 7.3.0.0 needed by libgcc-8.3.0-3.ppc

    (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

     

    Dnf repolist seems to be ok see below:

    testlpar1@/opt/freeware/etc/dnf>dnf repolist

    repo id                                                                                      repo name
    AIX_Toolbox                                                                                  AIX generic repository
    AIX_Toolbox_72                                                                               AIX 7.2 specific repository
    AIX_Toolbox_73                                                                               AIX 7.3 specific repository
    AIX_Toolbox_noarch                                                                           AIX noarch repository


    Also a dnf check is ok no output.

     

    Can anybody help me with this problem? It would be nice if I get this working on AIX 7.3

     Thanks in advance!

    Greetings Christian Sonnemans.



    ------------------------------
    Christian Sonnemans
    Tactical Unix system engineer
    De Volksbank
    Den Bosch
    +31 (0) 6 53 27 15 71
    ------------------------------

    #AIXOpenSource


  • 2.  RE: how to get DNF working on AIX 7.3 Beta

    Posted Wed October 27, 2021 07:02 AM
    Hi Christian,

    Please check if all the gcc related packages properly synced in ${target}/AIX_Toolbox_73.
    Please check the paths and gcc related files we have it in 7.3.
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.3/

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



  • 3.  RE: how to get DNF working on AIX 7.3 Beta

    Posted Thu October 28, 2021 03:01 AM
    I think you have missing AIX-rpm virtual package.
    Please verify it is present by running following command.
    $ rpm -qa | grep AIX-rpm

    If it is not present then run "updtvpkg" command and then try again to install packages using dnf.

    ------------------------------
    SANKET RATHI
    ------------------------------