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
  • 1.  reposync does not find rpms in AIX OS specific repos

    Posted Mon October 10, 2022 04:05 AM
    Hi, 

    While I'm able to reposync (and createrepo) from the generic AIX_Toolbox repo, I'm unable to find any rpms in the OS specific repos.

    I know a similar config was working a couple of years ago when I set it up, but I've lost the old configs now. Not sure if I'm doing something wrong here?
    This is my yum.conf:
    [main]
    keepcache=1
    debuglevel=10
    obsoletes=1
    timeout=120
    retries=10
    reposdir=""
    exactarch=1
    [AIX_Toolbox]
    name=AIX generic repository
    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
    enabled=1
    gpgcheck=0
    [AIX_Toolbox_noarch]
    name=AIX noarch repository
    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/
    enabled=1
    gpgcheck=0
    [AIX_Toolbox_61]
    name=AIX 6.1 specific repository
    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-6.1/
    enabled=1
    gpgcheck=0
    [AIX_Toolbox_71]
    name=AIX 7.1 specific repository
    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.1/
    enabled=1
    gpgcheck=0
    [AIX_Toolbox_72]
    name=AIX 7.2 specific repository
    baseurl=https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/
    enabled=1
    gpgcheck=0




    # yum -d 10 -v -c yum.conf repolist AIX_Toolbox
    Config time: 0.007
    Yum Version: 3.2.29
    Setting up Package Sacks
    pkgsack time: 0.007
    Repo-id : AIX_Toolbox
    Repo-name : AIX generic repository
    Repo-status : enabled
    Repo-revision: 1665058271
    Repo-updated : Thu Oct 6 23:13:40 2022
    Repo-pkgs : 5
    Repo-size : 3.8 M
    Repo-baseurl : https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
    Repo-expire : 21,600 second(s) (last: Mon Oct 10 18:50:22 2022)
    Repo-excluded: 3,197    <---------------------------------------- Is this normal?

    repolist: 5


    But for OS specific, in this example AIX_Toolbox_72, packages are 0.

    # yum -d 10 -v -c yum.conf repolist AIX_Toolbox_72
    Config time: 0.022
    Yum Version: 3.2.29
    Setting up Package Sacks
    pkgsack time: 0.007
    Repo-id : AIX_Toolbox_72
    Repo-name : AIX 7.2 specific repository
    Repo-status : enabled
    Repo-revision: 1662554390
    Repo-updated : Wed Sep 7 22:42:05 2022
    Repo-pkgs : 0 <--------------------------------------------- 0 packages
    Repo-size : 0
    Repo-baseurl : https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/
    Repo-expire : 21,600 second(s) (last: Mon Oct 10 18:50:23 2022)
    Repo-excluded: 503

    repolist: 0


    ​​

    ------------------------------
    Dennis Mathews
    ------------------------------

    #AIXOpenSource


  • 2.  RE: reposync does not find rpms in AIX OS specific repos

    Posted Mon October 10, 2022 05:05 AM
    I should add the above setup is on a linux host as it's the only one with internet access.

    ------------------------------
    Dennis Mathews
    ------------------------------



  • 3.  RE: reposync does not find rpms in AIX OS specific repos

    Posted Mon October 10, 2022 06:32 AM
    " Repo-excluded" . Maybe some yum plugin ( like versionlock ) is creating the issue. Can you check whether any yum plugins installed in the machine ?

    ------------------------------
    Ayappan P
    ------------------------------



  • 4.  RE: reposync does not find rpms in AIX OS specific repos

    Posted Mon October 10, 2022 05:00 PM
    I can't see this plugin installed. 

    /etc/yum/pluginconf.d # ll
    total 36
    -rw-r--r--. 1 root root 59 Aug 18 2020 enabled_repos_upload.conf
    -rw-r--r--. 1 root root 59 Aug 18 2020 package_upload.conf
    -rw-r--r--. 1 root root 17 Jun 26 2019 product-id.conf
    -rw-r--r--. 1 root root 178 Sep 10 2013 rhnplugin.conf.rpmnew
    -rw-r--r--. 1 root root 164 May 9 2017 rhnplugin.conf.rpmsave
    -rw-r--r--. 1 root root 848 Jun 26 2019 search-disabled-repos.conf
    -rw-r--r--. 1 root root 17 Jul 24 2018 security.conf
    -rw-r--r--. 1 root root 17 Jun 26 2019 subscription-manager.conf
    -rw-r--r--. 1 root root 17 May 10 2018 subscription-manager.conf.rpmnew

    But I'm also using a separate yum.conf as shown in the original post. Also here's the output with --noplugins

    $ yum -c yum.conf --noplugins repolist AIX_Toolbox_72
    Config time: 0.007
    Yum Version: 3.2.29
    COMMAND: yum -c yum.conf --noplugins repolist AIX_Toolbox_72
    Installroot: /
    Ext Commands:

    AIX_Toolbox_72
    Setting up Package Sacks
    pkgsack time: 0.008
    Repo-id : AIX_Toolbox_72
    Repo-name : AIX 7.2 specific repository
    Repo-status : enabled
    Repo-revision: 1662554390
    Repo-updated : Wed Sep 7 22:42:05 2022
    Repo-pkgs : 0
    Repo-size : 0
    Repo-baseurl : https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/
    Repo-expire : 21,600 second(s) (last: Tue Oct 11 07:55:54 2022)
    Repo-excluded: 503

    repolist: 0


    ------------------------------
    Dennis Mathews
    ------------------------------



  • 5.  RE: reposync does not find rpms in AIX OS specific repos

    Posted Mon October 10, 2022 05:38 PM
    There's no trace of versionlock anywhere on the system. (See previous post)

    The AIX_Toolbox repo also only has 5 packages. Everything else seems to be excluded.

    user@host ~/yum $ yum -c yum.conf --noplugins repolist AIX_Toolbox
    Config time: 0.007
    Yum Version: 3.2.29
    COMMAND: yum -c yum.conf --noplugins repolist AIX_Toolbox
    Installroot: /
    Ext Commands:

    AIX_Toolbox
    Setting up Package Sacks
    pkgsack time: 0.007
    Repo-id : AIX_Toolbox
    Repo-name : AIX generic repository
    Repo-status : enabled
    Repo-revision: 1665058271
    Repo-updated : Thu Oct 6 23:13:40 2022
    Repo-pkgs : 5 <------------------------- Only 5 pkgs
    Repo-size : 3.8 M
    Repo-baseurl : https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
    Repo-expire : 21,600 second(s) (last: Tue Oct 11 07:55:53 2022)
    Repo-excluded: 3,197 <------------------------- excluded

    repolist: 5

    user@host ~/yum $ ls yumrepo/AIX_Toolbox
    automake repodata yum
    user@host ~/yum $ find yumrepo/AIX_Toolbox <------------------- Only 5 RPMs
    yumrepo/AIX_Toolbox
    yumrepo/AIX_Toolbox/repodata
    yumrepo/AIX_Toolbox/repodata/1556435aa8330c601991712cfebc3d5e3d4f72aa055bb71fde98600886d3766b-primary.sqlite.bz2
    yumrepo/AIX_Toolbox/repodata/c16aa2fa9da47098fa2a77c9236d0cfa6d3ea751513a38c5c8671854c988e7bf-filelists.sqlite.bz2
    yumrepo/AIX_Toolbox/repodata/afa4111e6d3246e0109efd03317cccfaad401a3997e7daefc7786e2240cbcb9c-other.sqlite.bz2
    yumrepo/AIX_Toolbox/repodata/1c0db127f71022629d84e89ca2ee18c28b31186f73bba7316bc90e06c9c62950-primary.xml.gz
    yumrepo/AIX_Toolbox/repodata/4bcb137d033f136f34953d2ae99f4e8592eaecf857b6c3164570e971badfc7e0-filelists.xml.gz
    yumrepo/AIX_Toolbox/repodata/f50bf45b6c3fa1d321938b42d50264f0bf14fba8b8286cca5943ec10f47f15ef-other.xml.gz
    yumrepo/AIX_Toolbox/repodata/repomd.xml
    yumrepo/AIX_Toolbox/yum
    yumrepo/AIX_Toolbox/yum/yum-3.4.3-1.aix6.1.noarch.rpm
    yumrepo/AIX_Toolbox/automake
    yumrepo/AIX_Toolbox/automake/automake-1.15-1.aix6.1.noarch.rpm
    yumrepo/AIX_Toolbox/automake/automake-1.7.9-1.aix5.1.noarch.rpm
    yumrepo/AIX_Toolbox/automake/automake-1.8.5-1.aix5.1.noarch.rpm
    yumrepo/AIX_Toolbox/automake/automake-1.11-1.aix6.1.noarch.rpm

    ------------------------------
    Dennis Mathews
    ------------------------------



  • 6.  RE: reposync does not find rpms in AIX OS specific repos

    Posted Tue October 11, 2022 06:25 AM
    This does not happen on AIX. I think there is some setting in Linux environment that is excluding all the packages. 
    Unfortunately it is not saying reason for exclusion. 
    Can you try with "--disableexcludes=all" option in yum and see if that works.

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



  • 7.  RE: reposync does not find rpms in AIX OS specific repos

    Posted Tue October 11, 2022 06:31 PM
    --disableexcludes=all did not make any difference.

    Yum Version: 3.2.29
    COMMAND: yum -c yum.conf --noplugins repolist --disableexcludes=all AIX_Toolbox
    Installroot: /
    Ext Commands:

    AIX_Toolbox
    AIX_Toolbox | 2.7 kB 00:00
    AIX_Toolbox_61 | 2.5 kB 00:00
    AIX_Toolbox_71 | 2.7 kB 00:00
    AIX_Toolbox_72 | 2.7 kB 00:00
    AIX_Toolbox_noarch | 2.6 kB 00:00
    Setting up Package Sacks
    pkgsack time: 0.007
    Repo-id : AIX_Toolbox
    Repo-name : AIX generic repository
    Repo-status : enabled
    Repo-revision: 1665058271
    Repo-updated : Thu Oct 6 23:13:40 2022
    Repo-pkgs : 5
    Repo-size : 3.8 M
    Repo-baseurl : https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
    Repo-expire : 21,600 second(s) (last: Wed Oct 12 09:29:48 2022)
    Repo-excluded: 3,197

    repolist: 5

    ------------------------------
    Dennis Mathews
    ------------------------------



  • 8.  RE: reposync does not find rpms in AIX OS specific repos

    Posted Wed October 12, 2022 02:32 PM
    Hi Dennis,

    Please verify if you have ran the reposync with "-a" option as below.

    reposync -p <target_path> -r AIX_Toolbox -a ppc

    You have also mentioned that only 5 RPMS are being shown in the repository path.
    It means reposync was not able to sync all the rpms correctly ?
    It could be possible that the repo data files and the number of RPMS present repository path is out of sync.

    reposync which you are using is based on the YUM or DNF ?

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



  • 9.  RE: reposync does not find rpms in AIX OS specific repos

    Posted Fri October 14, 2022 06:30 AM
    Hi Sangamesh,

    specifying -a ppc with reposync has resolved the issue!

    Being a linux box it was previously only looking for the current system's x86 arch packages.

    The reposync on the linux host is YUM based not DNF.

    Thanks

    ------------------------------
    Dennis Mathews
    ------------------------------