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

Easy YUM Installation

  • 1.  Easy YUM Installation

    Posted Fri May 12, 2017 10:14 AM

    Originally posted by: sanket


     

    Installation of yum on AIX has become easier. 

    For ease of use we have created a script yum.sh to download and install latest rpm.rte and all the packages needed for yum.

    Just download and run yum.sh script on your AIX machine and it will setup yum on your AIX system.

    The only requirements are

    1. You should have external connectivity from your AIX system because it gets packages from AIX toolbox.

    2. It uses expect script hence you should have expect.base package already installed on your AIX system.

     

    Thanks 

    Sanket


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: Easy YUM Installation

    Posted Thu August 30, 2018 10:19 AM

    Originally posted by: sdpeck


    It may be easier, but it still isn't easy.

     

    yum.sh requires expect.  expect requires tk.   tk requires tcl, fontconfig and 8 other packages.  tcl requires libgcc_s.a.   This dependency hell never seems to end...


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 3.  Re: Easy YUM Installation

    Posted Thu August 30, 2018 10:36 AM

    Originally posted by: AyappanP


    As mentioned above, it requires expect.base lpp package and not expect rpm. So you won't get into any dependency issues.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 4.  Re: Easy YUM Installation

    Posted Wed November 14, 2018 01:24 PM

    Originally posted by: Peter.Soto


    Soo I need yum.sh , the expect.base, and the sudo pakages to do the install of sudo?


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 5.  Re: Easy YUM Installation

    Posted Thu November 15, 2018 09:57 AM

    Originally posted by: AyappanP


    Yes. To successfully run the yum.sh script you need expect.base fileset. 

    Once yum got successfully installed through the yum.sh script, you can install any package easily. Just "yum update" followed by "yum install <pkg>" . 


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 6.  Re: Easy YUM Installation

    Posted Mon November 19, 2018 04:19 PM

    Originally posted by: Peter.Soto


    Well there's a bunch of stuff with expect but I do not see anything like base.

    Never mind, I  found it.

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 7.  Re: Easy YUM Installation

    Posted Tue November 20, 2018 02:26 PM

    Originally posted by: Peter.Soto


    Well the assumption is that the server the yum.sh is running on has access to the outside world. It does not. there are still dependencies that I cannot find

    error: Failed dependencies:
            liblber.a(liblber-2.4.so.2) is needed by sudo-1.8.21p2-1.ppc
            libldap.a(libldap-2.4.so.2) is needed by sudo-1.8.21p2-1.ppc
            openldap >= 2.4.40-2 is needed by sudo-1.8.21p2-1.ppc

     

    so where could these be found?

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 8.  Re: Easy YUM Installation

    Posted Thu November 22, 2018 02:24 AM

    Originally posted by: AyappanP


    This thread is about installing yum in AIX. 

    You can check this article about how to configure yum if the AIX machine doesn't have outside world access.

    https://developer.ibm.com/articles/configure-yum-on-aix/

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 9.  Re: Easy YUM Installation

    Posted Mon March 18, 2019 02:57 AM

    Originally posted by: ibm resilient


    can you provide or guide me to the links for expect.base? i am unable to find it . 


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 10.  Re: Easy YUM Installation

    Posted Mon March 18, 2019 03:20 AM


  • 11.  Re: Easy YUM Installation

    Posted Mon March 18, 2019 04:46 AM

    Originally posted by: peterchi


    When running yum.sh, first I got the followings:

    error: Failed dependencies:
            libcrypto.a(libcrypto.so) is needed by curl-7.44.0-1.ppc
            libssl.a(libssl.so) is needed by curl-7.44.0-1.ppc
            libcrypto.a(libcrypto.so) is needed by python-2.7.10-1.ppc
            libssl.a(libssl.so) is needed by python-2.7.10-1.ppc
            libcrypto.a(libcrypto.so) is needed by python-pycurl-7.19.3-1.ppc

    After I installed the openssl-1.0.2.1601.tar.Z and re-run updtvpkg, yum.sh give me the followings:

    Preparing...                          ################################# [100%]

            file /opt/freeware/lib/libdb.a from install of db-4.8.24-3.ppc conflicts with file from package db4-4.7.25-2.ppc

            file /opt/freeware/lib/libdb.so from install of db-4.8.24-3.ppc conflicts with file from package db4-4.7.25-2.ppc

            file /opt/freeware/lib/libdb-4.a from install of db-4.8.24-3.ppc conflicts with file from package db4-4.7.25-2.ppc

            file /opt/freeware/lib/libdb-4.so from install of db-4.8.24-3.ppc conflicts with file from package db4-4.7.25-2.ppc

    Yum installation failed. 

           Anyone has any idea about how to resolve that? Thanks a lot.

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 12.  Re: Easy YUM Installation

    Posted Mon March 18, 2019 04:52 AM

    Originally posted by: sangameshm


    Looks like you have db4 installed from other source.

    Please try uninstalling db4 and then retry the running yum.sh script.

     

    Also let us know what are all other rpm packages are installed.

     

    Thanks,

    Sangamesh


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 13.  Re: Easy YUM Installation

    Posted Tue March 19, 2019 07:24 AM

    Originally posted by: peterchi


    Thanks the issue resolved by install new gcc as well as the db6 package as the following commands:

    rpm -iF libgcc-6.3.0-2.aix7.1.ppc.rpm
    rpm -ivh db-6.2.32-2.aix6.1.ppc.rpm


    #AIXOpenSource
    #AIX-Open-Source-Software