AIX Open Source

  • 1.  yum not finding few rpms in repo

    Posted Fri October 22, 2021 09:55 AM
    Hi 

    I have been able to install yum on AIX 7.2 and using IBM repos mentioned below.

    [AIX_Toolbox]
    name=AIX generic repository
    baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
    enabled=1
    gpgcheck=0[AIX_Toolbox_noarch]

    root@xx1xxx001[/home/mksysusr]# yum --version
    3.4.3
    Installed: yum-3.4.3-8.noarch at 2021-06-28 06:03
    Built : IBM AIX Toolbox <https://ibm.biz/AIXToolbox> at 2020-12-04 12:33
    Committed: Sangamesh Mallayya <<sangamesh.swamy@in.ibm.com> at 2020-11-30
    root@or1sam001[/home/mksysusr]#

    For some reason my yum can't find all rpms, e.g. metamail which exists into the repos but yum can't see it. 

    root@xx1xxx001[/home/mksysusr]# yum list |grep metamail
    yields nothing...

    while rpm metamail-2.7-2.aix4.3.ppc.rpm exists under anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/metamail/">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/metamail/

    can someone help how to fix it?

    Regards
    Yash






    ------------------------------
    Yashpal Nagar
    ------------------------------


  • 2.  RE: yum not finding few rpms in repo

    Posted Fri October 22, 2021 10:38 AM
    metamail package is built long back on AIX 4.3 platform. It is not tested on newer version of AIX.
    We have only enabled packages in repo those are tested with AIX 6.1 and higher versions.
    So many of the older packages are available in ftp site but not part of yum repo. I would not encourage to use those packages.

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



  • 3.  RE: yum not finding few rpms in repo

    Posted Fri October 22, 2021 11:02 AM
    Thanks for the update, we have few applications using metamail. Is there any alternative to it? If we can install it without using yum we are OK with it. But even manual install is not working ...

    root@xx1xxx001]# rpm -ivh --nodigest --nofiledigest --nomd5 --nosignature metamail-2.7-2.aix4.3.ppc.rpm
    Preparing... ################################# [100%]
    Updating / installing...
    1:metamail-2.7-2 ################################# [100%]
    error: unpacking of archive failed on file /opt/freeware/bin/metamail;6172cc27: cpio: read failed - A file or directory in the path name does not exist.
    error: metamail-2.7-2.ppc: install failed
    root@xx1xxx001#

    ------------------------------
    Yashpal Nagar
    ------------------------------



  • 4.  RE: yum not finding few rpms in repo

    Posted Fri October 22, 2021 11:20 AM
    Hi Yashpal,
    As I said these packages are not tested on latest release with newer opensource packages.
    Looks like this package is not maintained any more or there is no activity. 
    On internet mime based alternates are suggested you may want to look at them. 



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



  • 5.  RE: yum not finding few rpms in repo

    Posted Fri October 22, 2021 01:20 PM
    Hi Sanket

    We are already using metamail on AIX 7.2 without any issues on our Production systems. 

    root@xx1xxx033[/]# oslevel -s
    7200-03-04-1938
    root@xx1xxx033[/]# rpm -qa|grep metamail
    metamail-2.7-2.ppc

    But after installing yum (since we needed to install prometheus and nginx etc) neither we can install this rpm from repos nor it can be installed manually?

    root@xx1xxx001[/home/mksysusr]# rpm -ivh --nodigest --nofiledigest metamail-2.7-2.aix4.3.ppc.rpm
    Preparing... ################################# [100%]
    Updating / installing...
    1:metamail-2.7-2 ################################# [100%]
    error: unpacking of archive failed on file /opt/freeware/bin/metamail;6172eb36: cpio: read failed - A file or directory in the path name does not exist.
    error: metamail-2.7-2.ppc: install failed

    what all we need is to install it so that our custom solutions keep working as it is and we can use newer tools such as nginx, prometheus etc. Moreover, the engineer has just copied /opt/freeware/bin/mimencode from a running AIX 7.2 LPAR to where we have yum installed but can't install metamail which is not too good, we wish to install entire rpm of metamail instead of a file from it. 

    Thanks

    ------------------------------
    Yashpal Nagar
    ------------------------------



  • 6.  RE: yum not finding few rpms in repo

    Posted Mon October 25, 2021 01:38 AM
    yum needs latest rpm command (v4) and I think that rpm is not able to install older packages (built with rpm v3 or older) and hence problem in install metamail. One solution is you install metamail before install yum but I am not sure if other conflicts come. This is not tested and supported package hence we can not provide much help but some workaround.

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



  • 7.  RE: yum not finding few rpms in repo

    Posted 11 days ago
    Thanks for your reply

    It seems we can't install metamail in isolation

    root@xx1xxx003[/home/mksysusr]# rpm -ivh metamail-2.7-2.aix4.3.ppc.rpm
    error: Failed dependencies:
    libc.a(shr.o) is needed by metamail-2.7-2.ppc
    libcurses.a(shr42.o) is needed by metamail-2.7-2.ppc

    Is there any place we can get pre-compiled binaries of old rpms (v4) for AIX 6 or 7? if not any compilation instructions?

    ------------------------------
    Yashpal Nagar
    ------------------------------



  • 8.  RE: yum not finding few rpms in repo

    Posted 10 days ago
    Looks like above error are due to AIX-rpm packages.
    Can you try running 'updtvpkg' command first to update AIX virtual rpm packages and then again try installation.

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



  • 9.  RE: yum not finding few rpms in repo

    Posted 10 days ago
    After I removed and tried to re-install it again I am getting cpio error. it looks like these rpms are part of our AIX for way too long. Now if we make any changes it doesn't like that. 

    root@xx1xxx038[/]# oslevel -s

    7200-04-02-2028

    root@xx1xxx038[/]# lslpp -l|grep rpm

      rpm.rte                  4.13.0.11  COMMITTED  RPM Package Manager

      rpm.rte                  4.13.0.11  COMMITTED  RPM Package Manager


    root@xx1xxx038[/home/mksysusr]# updtvpkg
    Please wait...
    root@or1sam038[/home/mksysusr]# rpm -ivh metamail-2.7-2.aix4.3.ppc.rpm
    Preparing... ################################# [100%]
    Updating / installing...
    1:metamail-2.7-2 ################################# [100%]
    error: unpacking of archive failed on file /opt/freeware/bin/metamail;619621fa: cpio: read
    error: metamail-2.7-2.ppc: install failed



    ------------------------------
    Yashpal Nagar
    ------------------------------



  • 10.  RE: yum not finding few rpms in repo

    Posted 2 days ago
    could you please check if rpm is being downloaded correctly.
    Please verify it's sum.
    # sum metamail-2.7-2.aix4.3.ppc.rpm
    57284 137 metamail-2.7-2.aix4.3.ppc.rpm

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