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
Expand all | Collapse all

Yum install createrepo command

Archive User

Archive UserWed April 01, 2020 10:20 AM

Archive User

Archive UserFri April 03, 2020 04:35 AM

  • 1.  Yum install createrepo command

    Posted Mon March 30, 2020 01:42 PM

    Originally posted by: christophe41



    Hello,

    We are working on AIX LPAR 7.2 .
    We are working on a new installation of the YUM product.
    We are working on a YUM server configuration.
    YUM's packages are successfully installed.

     

    The command      "yum install yum-utils" ran successfully.

    But the command "yum install createrepo"  failed ...  

    Please what could be the reason ?  Did we missed something ? What can we check ?

    I thank your very much for your help,

    Christophe

     

     

     


    root@apaai001:/opt/freeware/etc/yum#yum install yum-utils    ##############################################
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package yum-utils.noarch 0:1.1.31-2 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ====================================================================================================================================================================================
     Package                                   Arch                                   Version                                  Repository                                          Size
    ====================================================================================================================================================================================
    Installing:
     yum-utils                                 noarch                                 1.1.31-2                                 AIX_Toolbox_noarch                                  88 k

    Transaction Summary
    ====================================================================================================================================================================================
    Install       1 Package

    Total download size: 88 k
    Installed size: 327 k
    Is this ok [y/N]: y
    Downloading Packages:
    yum-utils-1.1.31-2.aix6.1.noarch.rpm                                                                                                                         |  88 kB  00:00:00
    Running Transaction Check
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : yum-utils-1.1.31-2.noarch                                                                                                                                        1/1

    Installed:
      yum-utils.noarch 0:1.1.31-2

    Complete!        #############################################################
    root@apaai001:/opt/freeware/etc/yum#yum install createrepo    ###############################################
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package createrepo.noarch 0:0.10.3-3 will be installed
    --> Processing Dependency: libxml2-python >= 2.7.8 for package: createrepo-0.10.3-3.noarch
    --> Processing Dependency: python-deltarpm for package: createrepo-0.10.3-3.noarch
    --> Processing Dependency: xz for package: createrepo-0.10.3-3.noarch
    --> Running transaction check
    ---> Package libxml2-python.ppc 0:2.9.9-1 will be installed
    --> Processing Dependency: libxml2 = 2.9.9-1 for package: libxml2-python-2.9.9-1.ppc
    --> Processing Dependency: python >= 2.7.15 for package: libxml2-python-2.9.9-1.ppc
    --> Processing Dependency: ncurses >= 6.1-1 for package: libxml2-python-2.9.9-1.ppc
    --> Processing Dependency: sqlite >= 3.27.1 for package: libxml2-python-2.9.9-1.ppc
    --> Processing Dependency: libffi >= 3.2.1-2 for package: libxml2-python-2.9.9-1.ppc
    --> Processing Dependency: expat >= 2.2.6 for package: libxml2-python-2.9.9-1.ppc
    --> Processing Dependency: xz-libs >= 5.2.3-1 for package: libxml2-python-2.9.9-1.ppc
    --> Processing Dependency: libncurses.a(libncurses.so.6) for package: libxml2-python-2.9.9-1.ppc
    ---> Package python-deltarpm.ppc 0:3.6-1 will be installed
    --> Processing Dependency: deltarpm = 3.6-1 for package: python-deltarpm-3.6-1.ppc
    ---> Package xz.ppc 0:5.2.4-1 will be installed
    --> Processing Dependency: gettext >= 0.19.8.1-3 for package: xz-5.2.4-1.ppc
    --> Running transaction check
    ---> Package deltarpm.ppc 0:3.6-1 will be installed
    ---> Package expat.ppc 0:2.1.1-1 will be updated
    ---> Package expat.ppc 0:2.2.9-1 will be an update
    ---> Package gettext.ppc 0:0.19.7-1 will be updated
    ---> Package gettext.ppc 0:0.19.8.1-4 will be an update
    --> Processing Dependency: libunistring >= 0.9.9-2 for package: gettext-0.19.8.1-4.ppc
    --> Processing Dependency: libunistring.a(libunistring.so.2) for package: gettext-0.19.8.1-4.ppc
    ---> Package libffi.ppc 0:3.0.13-1 will be updated
    ---> Package libffi.ppc 0:3.2.1-3 will be an update
    ---> Package libxml2.ppc 0:2.9.1-1 will be updated
    ---> Package libxml2.ppc 0:2.9.9-1 will be an update
    --> Processing Dependency: zlib >= 1.2.11-1 for package: libxml2-2.9.9-1.ppc
    ---> Package ncurses.ppc 0:6.1-2 will be installed
    --> Processing Dependency: libstdc++ >= 6.3.0-1 for package: ncurses-6.1-2.ppc
    --> Processing Dependency: libstdc++.a(libstdc++.so.6) for package: ncurses-6.1-2.ppc
    ---> Package python.ppc 0:2.7.10-1 will be updated
    --> Processing Dependency: python = 2.7.10 for package: python-tools-2.7.10-1.ppc
    --> Processing Dependency: python = 2.7.10 for package: python-devel-2.7.10-1.ppc
    ---> Package python.ppc 0:2.7.16-1 will be an update
    --> Processing Dependency: readline >= 7.0-5 for package: python-2.7.16-1.ppc
    --> Processing Dependency: libreadline.a(libreadline.so.7) for package: python-2.7.16-1.ppc
    ---> Package sqlite.ppc 0:3.15.2-1 will be updated
    ---> Package sqlite.ppc 0:3.28.0-1 will be an update
    ---> Package xz-libs.ppc 0:5.0.5-1 will be updated
    --> Processing Dependency: liblzma.a(liblzma.so.0) for package: libtiff-4.0.3-1.ppc
    ---> Package xz-libs.ppc 0:5.2.4-1 will be an update
    --> Running transaction check
    ---> Package libstdc++.ppc 0:8.3.0-1 will be installed
    --> Processing Dependency: AIX-rpm < 7.2.0.0 for package: libstdc++-8.3.0-1.ppc
    ---> Package libunistring.ppc 0:0.9.9-2 will be installed
    --> Processing Dependency: info for package: libunistring-0.9.9-2.ppc
    ---> Package python-devel.ppc 0:2.7.10-1 will be updated
    ---> Package python-devel.ppc 0:2.7.16-1 will be an update
    ---> Package python-tools.ppc 0:2.7.10-1 will be updated
    ---> Package python-tools.ppc 0:2.7.16-1 will be an update
    ---> Package readline.ppc 0:6.1-2 will be updated
    ---> Package readline.ppc 0:8.0-2 will be an update
    ---> Package xz-libs.ppc 0:5.0.5-1 will be updated
    --> Processing Dependency: liblzma.a(liblzma.so.0) for package: libtiff-4.0.3-1.ppc
    ---> Package zlib.ppc 0:1.2.8-1 will be updated
    ---> Package zlib.ppc 0:1.2.11-1 will be an update
    --> Running transaction check
    ---> Package info.ppc 0:6.6-2 will be installed
    ---> Package libstdc++.ppc 0:8.3.0-1 will be installed
    --> Processing Dependency: AIX-rpm < 7.2.0.0 for package: libstdc++-8.3.0-1.ppc
    ---> Package xz-libs.ppc 0:5.0.5-1 will be updated
    --> Processing Dependency: liblzma.a(liblzma.so.0) for package: libtiff-4.0.3-1.ppc
    --> Finished Dependency Resolution
    Error: Package: libstdc++-8.3.0-1.ppc (AIX_Toolbox_71)
               Requires: AIX-rpm < 7.2.0.0
               Installed: AIX-rpm-7.2.4.0-30.ppc (installed)
                   AIX-rpm = 7.2.4.0-30
    Error: Package: libtiff-4.0.3-1.ppc (installed)
               Requires: liblzma.a(liblzma.so.0)
               Removing: xz-libs-5.0.5-1.ppc (installed)
                   liblzma.a(liblzma.so.0)
               Updated By: xz-libs-5.2.4-1.ppc (AIX_Toolbox)
                   Not found
               Available: xz-libs-5.2.2-1.ppc (AIX_Toolbox)
                   liblzma.a(liblzma.so.0)
               Available: xz-libs-5.2.3-1.ppc (AIX_Toolbox)
                   Not found

     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    root@apaai001:/opt/freeware/etc/yum

    root@apaai001:/export/nim#rpm -qa libstdc++ libgcc libtiff
    libtiff-4.0.3-1.ppc    ############################
    libgcc-8.3.0-1.ppc      ############################
    root@apaai001:/export/nim#

    root@apaai001:/export/nim#oslevel -s
    7200-04-01-1939
    root@apaai001:/export/nim#

     

     



  • 2.  Re: Yum install createrepo command

    Posted Wed April 01, 2020 10:20 AM
      |   view attached

    Originally posted by: christophe41


     

    we have decided  :

        Step 1 - to manually install the libstdcplusplus-8.3.0-1              This operation is successfull.
        Step 2 - to try to update the xz-libs  package under the control of YUM.      This operation is NOT successfull.
        Step 3 - to try to manually update the the xz-libs  package.            This operation is NOT successfull. Cf  failed dependencies.
        Step 4 - to check that libtiff-4.0.3-1.ppc and libxml2-2.9.1-1.ppc  do not come from the IBM AIX TOOLBOX.
        Step 5 - to try to erase the libtiff package under the control of YUM but there are links with  rrdtools (lpar2rrd monitoring tool).

        Step 6 - Do we have to replace non IBM  libtiff-4.0.3-1.ppc and libxml2-2.9.1-1.ppc    packages  with IBM AIX TOOL BOX packages ?
        Step 7 - Regarding links with   rrdtool    how can we replace these packages ?

     

    Please have a look to the enclosed txt file.

     

     



  • 3.  Re: Yum install createrepo command

    Posted Wed April 01, 2020 11:19 AM

    Originally posted by: AyappanP


    You can try to downgrade libtiff and upgrade libxml2 using yum.

    yum downgrade libtiff 

    yum install libxml2 

    After this you will be able to update xz-libs from AIX toolbox 

     



  • 4.  Re: Yum install createrepo command

    Posted Wed April 01, 2020 12:58 PM

    Originally posted by: christophe41


    Hello Ayappan,

    I thank you very much for your help.

    We think the   libtiff   package is used by one of our running  monitoring tool (lpar2rrd).

     

    Do we have to stop   lpar2rrd before   downgrading  libtiff   ?

    Will the lpar2rdd product start  successfully  after the  libtiff downgrade ?

    Should we ask the question to the   lpar2rrd support team ?

     

    Thank you very much Ayappan, have a nice day,

     

    Christophe

     

     

     

     

     



  • 5.  Re: Yum install createrepo command

    Posted Thu April 02, 2020 06:29 AM

    Originally posted by: christophe41


    We tried the downgrade but we have the error below :    a dependencie with    gtk2   package ...

     


    root@apaai001:/export/mksysb/hors_psi/armmi009#yum downgrade libtiff
    Setting up Downgrade Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package libtiff.ppc 0:3.8.2-1 will be a downgrade
    ---> Package libtiff.ppc 0:4.0.3-1 will be erased
    --> Finished Dependency Resolution
    Error: Package: gtk2-2.20.1-2.ppc (installed)
               Requires: libtiff >= 3.9.4-2
               Removing: libtiff-4.0.3-1.ppc (installed)
                   libtiff = 4.0.3-1
               Downgraded By: libtiff-3.8.2-1.ppc (AIX_Toolbox)
                   libtiff = 3.8.2-1
               Available: libtiff-3.5.7-2.ppc (AIX_Toolbox)
                   libtiff = 3.5.7-2
               Available: libtiff-3.5.7-3.ppc (AIX_Toolbox)
                   libtiff = 3.5.7-3
               Available: libtiff-3.6.1-2.ppc (AIX_Toolbox)
                   libtiff = 3.6.1-2
               Available: libtiff-3.6.1-4.ppc (AIX_Toolbox)
                   libtiff = 3.6.1-4
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest

     

    Should we update the gtk2 package ?

     

     



  • 6.  Re: Yum install createrepo command

    Posted Thu April 02, 2020 06:48 AM

    Originally posted by: christophe41


    Or do we have to downgrade both   gtk2  and  libtiff ?



  • 7.  Re: Yum install createrepo command

    Posted Thu April 02, 2020 07:50 AM

    Originally posted by: AyappanP


    Update to AIX Toolbox gtk version and then downgrade libtiff. 



  • 8.  Re: Yum install createrepo command

    Posted Thu April 02, 2020 08:47 AM

    Originally posted by: christophe41


    Everything is OK now.

     

    Thank you very much Ayappan.

     

    Have a nice day.

     

    Christophe

     



  • 9.  Re: Yum install createrepo command

    Posted Thu April 02, 2020 10:29 AM

    Originally posted by: christophe41


    The command    "yum install createrepo"    is now successfull.

     

    But YUM does not work anymore...

    We know we have to suppress the openssl open source package.
    But there is a dependencie with  a  rrdtool package (lpar2rrd monitoring tool)

    What could be the solution ? We have to update the   rrdtool   package ? Is there another solution ? 

     


    root@apaai001:/export/nim/divers_sources/OpenSourcesPourAIX/yum_deploiement#rpm -qa openssl
    openssl-1.0.1g-1.ppc
    root@apaai001:/export/nim/divers_sources/OpenSourcesPourAIX/yum_deploiement#lslpp -l | grep -i openssl
      openssl.base            1.0.2.1801  COMMITTED  Open Secure Socket Layer
      openssl.license         1.0.2.1801  COMMITTED  Open Secure Socket License
      openssl.man.en_US       1.0.2.1801  COMMITTED  Open Secure Socket Layer
      openssl.base            1.0.2.1801  COMMITTED  Open Secure Socket Layer
    root@apaai001:/export/nim/divers_sources/OpenSourcesPourAIX/yum_deploiement##rpm -ev openssl-1.0.1g-1.ppc --test
    root@apaai001:/export/nim/divers_sources/OpenSourcesPourAIX/yum_deploiement#rpm -ev openssl-1.0.1g-1.ppc --test
    error: Failed dependencies:
            openssl >= 1.0.1 is needed by (installed) rrdtool-1.4.8-2.ppc
    root@apaai001:/export/nim/divers_sources/OpenSourcesPourAIX/yum_deploiement#
    root@apaai001:/export/nim/divers_sources/OpenSourcesPourAIX/yum_deploiement#yum list gettext
    ERROR:root:code for hash md5 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type md5
    ERROR:root:code for hash sha1 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha1
    ERROR:root:code for hash sha224 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha224
    ERROR:root:code for hash sha256 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha256
    ERROR:root:code for hash sha384 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha384
    ERROR:root:code for hash sha512 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha512
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.
            0509-152   Member libcrypto.so is not found in archive
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
            0509-150   Dependent module /opt/freeware/lib/python2.7/site-packages/pycurl.so could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.17 (default, Feb 24 2020, 10:57:43)
    [GCC 8.3.0]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq


    root@apaai001:/export/nim/divers_sources/OpenSourcesPourAIX/yum_deploiement#
     



  • 10.  Re: Yum install createrepo command

    Posted Thu April 02, 2020 10:57 AM

    Originally posted by: AyappanP


    In this scenario, the only thing one can do is to extract the .so libraries from /usr/lib/libssl.a (& libcrypto.a) and put it inside the corresponding libraries in /opt/freeware/lib.

     

    mkdir temp ; cd temp

    /usr/bin/ar -x /usr/lib/libssl.a

    /usr/bin/ar -q /opt/freeware/lib/libssl.a  libssl.so

     

    Need to do the same for libcrypto.a also.



  • 11.  Re: Yum install createrepo command

    Posted Fri April 03, 2020 04:35 AM

    Originally posted by: christophe41


     

    Hello Ayappan,

     

    Please i have two more questions :

     

    The lpar2rrd support team says that in our situation the       rrdtool   package does not need   the   rpm open source openssl package.

     

    Question N°1 :

    That mean we can do a    "rpm -ev --nodeps   open_ssl_package"   ?  Or is there a   softer  command ?

    In case we have to reinstall the      open_ssl_package      do we have to take precautions ?

     

    Question N°2 :

    Before downgrading   libtiff    you suggested to   update  gtk2.   This operation ran successfully. 

     

    Could a drowngrade of both  gtk2 and libtiff   have been a solution ?  "yum downgrade gtk2 libtiff" ?

     

    In a few words why did you choose an   update   of  gtk2   rather than a downgrade ?

     

     

    I thank you very much for your help,

    Have a nice day,

     

     

     

     

     

     

     

     

     

     

     

     

     

     



  • 12.  Re: Yum install createrepo command

    Posted Fri April 03, 2020 05:16 AM

    Originally posted by: AyappanP


    1) Yes., You can remove openssl rpm using rpm --nodeps option. I don't think any other softer command exists.

    2) The gtk2 version 2.20.1 installed in the machine was not from Toolbox and is a lower version. Toolbox has 2.24.30 which depends on a lower version of libtiff. 

    So we upgraded gtk to remove the dependency on a higher version of libtiff ( which is not available in AIX Toolbox).



  • 13.  Re: Yum install createrepo command

    Posted Tue April 07, 2020 11:11 AM

    Originally posted by: Edward Davignon


    Ayappan,

    It looks like something strange happened on when git-2.20.2-1 was pushed to the FTP server on March 27, 2020.  There are spec files with versions 2.20.2-1 for gtk2, libtiff, and hundreds of other packages.  It appears to be reeking havoc for automated build servers.

    $ ls -ld ./SRPMS/git/*-2.20.2-1*
    -rw-r--r--    1 root     system      9666976 Mar 27 09:03 ./SRPMS/git/git-2.20.2-1.src.rpm
    $ ls -lrtd ./SPECS/*-2.20.2-1.* | grep -c 'Mar 27 09:'
    265
    $ ls -ltd ./SPECS/gtk2-2* | head -n 3
    -rw-r--r--    1 root     system        22977 Mar 27 09:04 ./SPECS/gtk2-2.20.2-1.spec
    -rw-r--r--    1 root     system        17809 Feb 23 2018  ./SPECS/gtk2-2.24.30-2waixX11.spec
    -rw-r--r--    1 root     system        16877 Sep 20 2017  ./SPECS/gtk2-2.24.30-1waixX11.spec
    $ ls -ltd ./SPECS/gcc*-2.20.2-1*
    -rw-r--r--    1 root     system        22977 Mar 27 09:04 ./SPECS/gcc-2.20.2-1.spec
    -rw-r--r--    1 root     system        22977 Mar 27 09:04 ./SPECS/gcc6-2.20.2-1.spec
    -rw-r--r--    1 root     system        22977 Mar 27 09:04 ./SPECS/gcc7-2.20.2-1.spec
    $ ls -ltd ./SPECS/*tiff*-2.20.2-1*
    -rw-r--r--    1 root     system        22977 Mar 27 09:04 ./SPECS/libtiff-2.20.2-1.spec
    $



  • 14.  Re: Yum install createrepo command

    Posted Tue April 07, 2020 01:46 PM

    Originally posted by: AyappanP


    I don't see those problematic spec files. Might be a temporary glitch. Not sure about that.



  • 15.  Re: Yum install createrepo command

    Posted Tue April 07, 2020 03:49 PM

    Originally posted by: Edward Davignon


    It looks like the problematic spec files have been removed, but it does explain how gtk2 and libtiff packages could have been built from AIX Toolbox sources with those version numbers.  I am glad the glitch has been fixed.



  • 16.  Re: Yum install createrepo command

    Posted Tue April 07, 2020 10:57 AM

    Originally posted by: Edward Davignon


    Christophe,
    You have AIX_Toolbox_71 configured on an AIX 7.2 LPAR.  You should configure AIX_Toolbox_72, but not AIX_Toolbox_71 nor AIX_Toolbox_61.  I ran into this problem several months ago and Ayappan helped me fix it.