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
  • 1.  yum repository on my NIM servers

    Posted Tue March 29, 2022 01:17 PM
    I have created a local yum repository on my NIM servers, only the Nim servers can get out on the internet, how do I get my lpars to point to and use the repository on my NIM server? Sorry, I am not very versed on yum repository.


    ------------------------------
    David Adams
    ------------------------------


  • 2.  RE: yum repository on my NIM servers

    Posted Wed March 30, 2022 01:44 AM

    Hello David,

    if your repository is set up correctly and the webserver on your nim is configured and running, just edit the Repo part of the yum.conf file to your needs.
    For example:

    [AIX_Toolbox]
    name=Local AIX_Toolbox
    baseurl=http://nim01.example.com/AIX_Toolbox
    enabled=1

    My apache httpd-vhosts.conf looks similar to:


    <VirtualHost 10.5.100.2:80>
    ServerAdmin admin@localhost
    ServerName nim01.example.com:80
    DocumentRoot "/repo"
    # Hide file favicon.ico from indexes
    IndexIgnore favicon.ico
    # Hide file robots.txt from indexes
    IndexIgnore robots.txt
    # Hide directory repodata from indexes
    IndexIgnore repodata
    # Hide file mirrotlist from indexes
    IndexIgnore mirrorlist
    # Protect directory repodata from direct access
    <Directory "/repo/AIX_Toolbox/repodata">
    Options FollowSymLinks
    AllowOverride None
    Require ip 127.0.0.1
    Require ip 10.0.0.0/22
    </Directory>
    <Directory "/repo/AIX_Toolbox_noarch/repodata">
    Options FollowSymLinks
    AllowOverride None
    Require ip 127.0.0.1
    Require ip 10.0.0.0/22
    </Directory>
    <Directory "/repo/AIX_Toolbox_72/repodata">
    Options FollowSymLinks
    AllowOverride None
    Require ip 127.0.0.1
    Require ip 10.0.0.0/22
    </Directory>
    <Directory "/repo/AIX_Toolbox">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require ip 127.0.0.1
    Require ip 10.0.0.0/22
    </Directory>
    <Directory "/repo/AIX_Toolbox_noarch">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require ip 127.0.0.1
    Require ip 10.0.0.0/22
    </Directory>
    <Directory "/repo/AIX_Toolbox_72">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require ip 127.0.0.1
    Require ip 10.0.0.0/22
    </Directory>
    DirectoryIndex index.html
    ErrorLog logs/repository_error.log
    CustomLog logs/repository_access.log combined
    </VirtualHost>


    So only clients from a specific subnet have access.
    Good luck!



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 3.  RE: yum repository on my NIM servers

    Posted Wed March 30, 2022 02:11 AM
    Thank you Joerg. 

    Hi David, 
    Once you have created local yum repo then client needs to access it. It can be either using http or ftp.
    We recommend to use dnf instead of yum now as yum is based on python2 which is out of support.
    When http/ftp are enabled then you can change client's yum.conf or dnf.conf (depends on what you have installed on client) to point to local yum repo.
    The conf file will be present in /opt/freeware/etc/dnf/dnf.conf or /opt/freeware/etc/yum/yum.conf. 
    You will have to install yum and dnf on client using yum/dnf tar ball present on AIX toolbox. 
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/

    Here is an article that provide details on setting up local yum repo.
    https://developer.ibm.com/articles/configure-yum-on-aix/

    Hope this helps.


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