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.  DNF Central repository mirrored from IBM possible ?

    Posted Wed February 02, 2022 05:37 AM

    Hello
    is it possible to have one or multiple central DNF repositories where other AIX Systems on customer side can have access to and is synced with IBM Repositories for AIX  and AIX Open Source etc. ? If yes is there any documentation available or any IBM Lab Service available to implement ?

    thx
    vince



    ------------------------------
    Vincencio Michaelis
    ------------------------------

    #AIXOpenSource


  • 2.  RE: DNF Central repository mirrored from IBM possible ?

    Posted Wed February 02, 2022 09:17 AM
    Edited by SANKET RATHI Wed February 02, 2022 09:18 AM
    Hi Vince, Yes this is possible. It will be same as any other RPM based Linux repo. 
    reposync utility is used for this purpose. Here is an article that we published sometime back.
    https://developer.ibm.com/articles/configure-yum-on-aix/
    In "Creating a local YUM repository" section there are methods to create local repo and methods to sync.
    This article is yum based but the same repo work for dnf.
    We are still working on some of the equivalent of yum-utils for dnf but for time being you can create using yum/yum-utils on AIX or on any other RPM base Linux system. 

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



  • 3.  RE: DNF Central repository mirrored from IBM possible ?

    Posted Wed February 02, 2022 11:12 AM
    I was able to follow these instructions to successfully set up a local YUM repository.  Once createrepo_c was available for DNF, I was able to migrate my repository server to DNF and create a local DNF repository.  My question is, what is the proper method to automatically keep the local repositories in sync with the IBM repositories?

    ------------------------------
    Frederick Butler
    ------------------------------



  • 4.  RE: DNF Central repository mirrored from IBM possible ?

    Posted Wed February 02, 2022 01:18 PM
    You need to run reposync regularly to make sure your repo is in sync with AIX toolbox.
    You can put that in a cron job. But once reposync is done and new packages are copied you will have to run createrepo again to create database.
    Here is text from that article. 

    • For the first time, reposync synchronizes all available RPM packages in the YUM repository, including the older RPM packages enabled through YUM. So, next time when package update happens, and we run reposync it copies only the updated RPM package, but the older RPM package will still be present in the system, and when we run createrepo, we will have the older as well as the newer RPM packages with the YUM repository. This will happen with sync as well.

    • reposync copies the RPMs from where we have repodata and doesn't copy any repodata files, but only the RPMs with its directory structure. 



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



  • 5.  RE: DNF Central repository mirrored from IBM possible ?

    Posted Thu February 03, 2022 07:31 AM
    I´m a colleague of thread starter Vince.  createrepo_c was the missing keyword,

    Now reposync is running.

    ------------------------------
    Sebastian Bromme
    ------------------------------