AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Yum downloadonly along with all required dependencies

    Posted Tue November 09, 2021 03:23 PM

    Hi folks
    Although I was able to install SUDO (latest version) in my AIX 7.2 box, however I need to repeat this task on multiple hundreds of AIX Power 8.
    My challenge is when  I used yumdownloader the sudo package, I got only one file with no dependency along.

    sudo-1.9.5p2-1.aix6.1.ppc.rpm

    When i tried to install this, there come a few dependencies that are required:

     $rpm -Uvh sudo-1.9.5p2-1.aix6.1.ppc.rpm
    error: Failed dependencies:
            gettext >= 0.19.8.1 is needed by sudo-1.9.5p2-1.ppc
            liblber.a(liblber-2.4.so.2) is needed by sudo-1.9.5p2-1.ppc
            libldap.a(libldap-2.4.so.2) is needed by sudo-1.9.5p2-1.ppc
            openldap >= 2.4.48-1 is needed by sudo-1.9.5p2-1.ppc
            zlib >= 1.2.11-1 is needed by sudo-1.9.5p2-1.ppc

    So upon researching and more readings , i tried the next trick without any luck:


    yum install --downloadonly --downloaddir=/ws/sudodpn/sudopkg sudo
    Loaded plugins: downloadonly
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package sudo.ppc 0:1.9.5p2-1 will be installed
    --> Processing Conflict: sudo_noldap-1.9.5p2-1.ppc conflicts sudo
    --> Finished Dependency Resolution
    Error: sudo_noldap conflicts with sudo-1.9.5p2-1.ppc
    You could try using --skip-broken to work around the problem
    ** Found 7 pre-existing rpmdb problem(s), 'yum check' output follows:
    nut-2.6.5-1.ppc has missing requires of libcrypto.so
    nut-2.6.5-1.ppc has missing requires of libltdl.a(libltdl.so.7)
    nut-2.6.5-1.ppc has missing requires of libneon.a(libneon.so.27)
    nut-2.6.5-1.ppc has missing requires of libnetsnmp.a(libnetsnmp.so.30)
    nut-2.6.5-1.ppc has missing requires of libssl.so
    nut-client-2.6.5-1.ppc has missing requires of libcrypto.so
    nut-client-2.6.5-1.ppc has missing requires of libssl.so
    root @ $

    I thought yum will provide these dependencies within IBM AIX Tool Box

    Anyone can please provide me  some  feedbacks/solutions on how to work around this please

    Thanks
    Dharma


    ------------------------------
    Dharma Sanassy
    ------------------------------


  • 2.  RE: Yum downloadonly along with all required dependencies

    Posted Wed November 10, 2021 10:53 AM
    Hi Dharma,
    It will download only packages those are not already installed on the system. 
    If your system already have dependencies installed then they might not get downloaded.

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



  • 3.  RE: Yum downloadonly along with all required dependencies

    Posted Wed November 17, 2021 05:48 AM
    Hi,

    look at the error-message: Error: sudo_noldap conflicts with sudo-1.9.5p2-1.ppc

    you installed sudo_noldap and now you try to install "normal" sudo with openldap-dependencies  (openldap >= 2.4.48-1 is needed by sudo-1.9.5p2-1.ppc)

    try to update/install sudo_noldap or delete first the installed sudo_noldap, then install the default, "normal" sudo with openldap-dependencies.




    ------------------------------
    Juergen Maehlmann
    ------------------------------