IBM Support

How to use ACS Open Source Package Management to Clone the IBM i Open Source Repository and Share it with other Systems

How To


Summary

Information on using IBM i Access Client Solutions and it's Open Source Package Management utility to make an offline clone of the IBM i Internet hosted repository of Open Source packages, and then share that local repository with other systems.

Environment

Steps

  • Choose one of the IBM i environments to host the offline repository and connect to that system with IBM i ACS Open Source Package Management to create a local clone of the IBM i Open Source repository on that IBM i IFS
  • From Open Source Package Management under the Tools menu select “Clone Repo for Offline Use…”
    image-20240930113959-1
     
  • All supported releases of IBM i use the same IBM i r7.3 base repository, so that is what we will want to clone. Choose the option to “Specify a location:” for “Source Repository” and enter in the following URL
  • Modify the Destination (IFS) parameter to something meaningful
    • This example is adding “base_73” in reference to the repository folder that is being cloned
    • Leave the option for “Clear repository before download (recommended)” checked
      image-20240930114557-4
       
  • Select the following Additional Operations:
    • Configure package manager to use this cloned repository
      • Allows this IBM i environment to use the local repository
    • Allow package manager to skip repositories that may require Internet access
      • Allows this local repository to continue being used if the IBM i environment cannot connect to the Internet
    • Optional - Create nginx configuration files for serving the cloned repository to other IBM i Systems
      • In order to have other IBM i environments use this offline repository it needs to be shared via an HTTP server instance.  This will create a Open Source nginx HTTP server instance specifically configured for this local repository
      • More information on this can be found here:
      • If this option isn’t selected other HTTP Server instances, including the IBM i HTTP powered by Apache, could be configured to allow HTTP connections to access /QOpenSys/QIBM/UserData/rep_repos/base_73
        image-20240930114935-5
         
  • Select the button for “Clone Repository” to create the local repository from the Internet source repository.
    • This will likely take a long time to complete as over 300 individual RPM packages are copied local
      image-20240930115044-6
       
  • To update this local repository with what is currently available on the IBM provided Internet repository, repeat this process, but with all of the “Additional Operations” unchecked
    image-20240930115133-7
     
  • Now that there is a local copy of the IBM i repository on this IBM i, other IBM i environments need to be configured to access this repository.
    • IBM i Open Source repository sources are defined by .repo files in the path:
      • /QOpenSys/etc/yum/repos.d
    • Go to that path and create a file of a name like “clone-base-73” and have it look like this:

      ***********Beginning of Data***********
      [clone-base-73]
      name=Clone Base 73
      baseurl=http://5.5.5.5:2055
      enabled=1
      gpgcheck=0
      sslverify=0
      skip_if_unavailable=1
      ***********End of Data***********

       
      • The "baseurl" line needs to point to the HTTP server environment that is sharing the local repository that was created above

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CTpAAM","label":"IBM i Access-\u003EAccess Client Solutions"},{"code":"a8m0z0000000CJuAAM","label":"Open Source Package Management"},{"code":"a8m0z0000000CO7AAM","label":"Open Source Package Management-\u003ENGINX"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.3.0;7.4.0;7.5.0"}]

Document Information

Modified date:
30 September 2024

UID

ibm17171764