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

Configure proxy for yum on AIX doesn't work

  • 1.  Configure proxy for yum on AIX doesn't work

    Posted Fri June 15, 2018 10:19 AM

    Originally posted by: istvan Gergely Marton


    Dear Team,

     

    I would like to install YUM on AIX so my steps are:

    Step 1 - install AIX rpm.rte - ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/
    Step 2 - install yum bundle - ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/
    Step 3 - configure proxy for yum
    Step 4 - update yum thorough the proxy

    Tried to export proxy variable: http_proxy="http://yum-user:qwerty@mycache.mydomain.com:3128"; export http_proxy;

    Tried to export different ways:

    export http_proxy=http://host.com:port/
    export ftp_proxy=http://host.com:port/
    export no_proxy=.domain.com
    export HTTP_PROXY=http://host.com:port/
    export FTP_PROXY=http://host.com:port/

     

    I tried to edit yum.conf main section like on this page: https://www.djouxtech.net/posts/aix-yum-installation/

     

    Maybe yum needs an additional python component, or use pythong-curl better ?
     

     

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: Configure proxy for yum on AIX doesn't work

    Posted Mon June 25, 2018 05:14 AM

    Originally posted by: AyappanP


    According to the latest info provided by you below , i see the problem is with curl. 

    [  root@nimtest10:/home/root: ] yum repolist -d 10          

    Config time: 0.024 
    Yum Version: 3.4.3 
    COMMAND: yum repolist -d 10  
    Installroot: / 
    anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml: [Errno 14] curl#7 - "Couldn't connect" 
    Trying other mirror. 
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: AIX_Toolbox. Please verify its path and try again 
    [  root@nimtest10:/home/root: ]

    [  root@nimtest10:/home/root: ] host public.dhe.ibm.com 
    public.dhe.ibm.com is 9.17.248.112 
    [  root@nimtest10:/home/root: ] 

     

    We need to figure out what curl command is getting invoked in this case and try running it manually to find out the exact cause.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 3.  Re: Configure proxy for yum on AIX doesn't work

    Posted Fri June 29, 2018 08:25 AM

    Originally posted by: phhermes


    Hi,

    My 2cts, a first test with errors without the proxy env. configured, the second with the proxy env. configured

    # yum update
    anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host 'public.dhe.ibm.com'"
    Trying other mirror.
    anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/repodata/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host 'public.dhe.ibm.com'"
    Trying other mirror.
    anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml: [Errno 14] curl#6 - "Couldn't resolve host 'public.dhe.ibm.com'"
    Trying other mirror.
    Setting up Update Process
    No Packages marked for Update

     


    # export https_proxy=xx.xx.xx.xx:xxxx
    # yum update
    AIX_Toolbox                                                                                                                                  | 3.9 kB  00:00:00
    AIX_Toolbox/primary_db                                                                                                                       | 995 kB  00:00:02
    AIX_Toolbox_72                                                                                                                               | 2.9 kB  00:00:00
    AIX_Toolbox_72/primary_db                                                                                                                    |  16 kB  00:00:00
    AIX_Toolbox_noarch                                                                                                                           | 2.9 kB  00:00:00
    AIX_Toolbox_noarch/primary_db                                                                                                                |  50 kB  00:00:00
    Setting up Update Process
    Resolving Dependencies
    --> Running transaction check
    .....

    Dependency Installed:
      fontconfig.ppc 0:2.11.95-3   freetype2.ppc 0:2.8-1            gcc.ppc 0:7.2.0-1     gcc-cpp.ppc 0:7.2.0-1  gmp.ppc 0:6.1.2-1   info.ppc 0:6.3-1
      libXft.ppc 0:2.3.2-4waixX11  libXrender.ppc 0:0.9.8-2waixX11  libmpc.ppc 0:1.0.3-1  libssh2.ppc 0:1.8.0-2  mpfr.ppc 0:3.1.2-3  openldap.ppc 0:2.4.45-1
      zlib.ppc 0:1.2.11-1

    Updated:
      bash.ppc 0:4.4-3                ca-certificates.ppc 0:2017.07.17-1    curl.ppc 0:7.60.0-1         db.ppc 0:6.2.32-1        expat.ppc 0:2.2.4-1
      expect.ppc 0:5.45-3             gdbm.ppc 0:1.12-1                     gettext.ppc 0:0.19.8.1-1    glib2.ppc 0:2.52.2-1     libffi.ppc 0:3.2.1-2
      libgcc.ppc 0:7.2.0-1            libstdc++.ppc 0:7.2.0-1               ncurses.ppc 0:6.1-1         python.ppc 0:2.7.13-1    python-devel.ppc 0:2.7.13-1
      python-pycurl.ppc 0:7.43.0-1    python-tools.ppc 0:2.7.13-1           readline.ppc 0:7.0-5        sqlite.ppc 0:3.23.0-1    tcl.ppc 0:8.6.6-2
      tk.ppc 0:8.6.6-1                wget.ppc 0:1.19.2-1

    Complete!

    Philippe


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: Configure proxy for yum on AIX doesn't work

    Posted Fri July 27, 2018 09:59 AM

    Originally posted by: istvan Gergely Marton


    It works fine,

    Thank you Philippe !


    #AIXOpenSource
    #AIX-Open-Source-Software