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.  DNF repository setup

    Posted Wed October 04, 2023 11:16 AM

    Good afternoon,

    I have setup a repository on a RedHat server, containing all the AIX DNF RPMs.

    AIX can see the repos, but when I try to install something, it fails with:

      Cannot download zsh/zsh-5.8-2.aix7.1.ppc.rpm: All mirrors were tried

    The problem appears to be that it prepends the url with the base package name "zsh". Where does this come from? I have looked in all the config file I can find.

    Regards,

    Henrik Morsing



    ------------------------------
    Henrik Morsing
    ------------------------------


  • 2.  RE: DNF repository setup

    Posted Thu October 05, 2023 10:27 AM

    Henrik, I didn't even know that this was possible, but it is exactly what I'd like to be able to do. Do you have a procedure for configuring dnf on the client machines to point them to your "private" repository? Also, must the repository be a Linux machine?



    ------------------------------
    Mackey Morgan
    ------------------------------



  • 3.  RE: DNF repository setup

    Posted Fri October 06, 2023 04:01 AM
    Edited by Niklas Vosskoetter Fri October 06, 2023 04:01 AM

    @Henrik Morsing, can you share your dnf.conf with your repo definitions?

    @Mackey Morgan, it is common to use an AIX nimserver to host repositorys. You can use reposync to mirror everything from the internet to your local setup and host the repos via httpd webserver on your nimserver.

    This is how our dnf.conf looks like:

    $ cat /opt/freeware/etc/dnf/dnf.conf
    [main]
     
    [AIX_YUM_HTTP_NOARCH]
    name=AIX YUM Repository noarch (http)
    baseurl=https://nimserver01/IBM_AIXTB_NOARCH
    enabled=1
    gpgcheck=0
    sslverify=0
     
    [AIX_YUM_HTTP_ppc]
    name=AIX YUM Repository ppc (http)
    baseurl=https://nimserver01/IBM_AIXTB_ppc
    enabled=1
    gpgcheck=0
    sslverify=0
     
    [AIX_YUM_HTTP_ppc72]
    name=AIX YUM Repository ppc72 (http)
    baseurl=https://nimserver01/IBM_AIXTB_ppc_72
    enabled=1
    gpgcheck=0
    sslverify=0



    ------------------------------
    Niklas
    System Engineer UNIX and Linux on Power
    ------------------------------



  • 4.  RE: DNF repository setup

    Posted Sat October 07, 2023 03:58 AM
    Edited by Henrik Morsing Sat October 07, 2023 03:58 AM

    > @Mackey Morgan, it is common to use an AIX nimserver to host repositorys. You can use reposync to mirror everything from the internet to your local setup and host the repos via httpd webserver on your nimserver.

    Cool, I didn't know I could use AIX. I will look into that.

    @Henrik Morsing

    , can you share your dnf.conf with your repo definitions?

    Apparently not, whenever I try, I get:

    Access Denied

    You don't have permission to access "http://community.ibm.com/higherlogic/ui/mvc/egroups/discussions/SaveDiscussionDraft" on this server.

    Reference #18.9eed655f.1696665424.1b963ec8


    Hmm... That worked. There must be some special characters in the file the forum software doesn't like.


    ------------------------------
    Henrik Morsing
    ------------------------------



  • 5.  RE: DNF repository setup

    Posted Fri October 06, 2023 08:09 AM

    Hi Henrik,

    You can verify the permission of zsh path.



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



  • 6.  RE: DNF repository setup

    Posted Sat October 07, 2023 03:54 AM
    Edited by Henrik Morsing Sat October 07, 2023 03:54 AM

    It doesn't exist.

    Wow, I could reply!


    ------------------------------
    Henrik Morsing
    ------------------------------



  • 7.  RE: DNF repository setup

    Posted Thu October 12, 2023 05:16 AM

    Anyone? Or do I really need to dig into the code to see why it is adding this?



    ------------------------------
    Henrik Morsing
    ------------------------------



  • 8.  RE: DNF repository setup

    Posted Fri October 13, 2023 03:39 AM

    It could be a problem with directory structure given to createrepo and how it is configured in the repo configuration file. 
    For Toolbox, the createrepo is run on the directory structure ../../RPMS/ppc. This directory in turn contains package specific directories like zsh which actually contains the zsh rpms. So the repodata created by createrepo now has the location as zsh/zsh....rpm. And the baseurl in the repo conf file will have ../../RPMS/ppc. 

    You need to check in the above angle how the repo is setup in the redhat server. Ie., on what directory the createrepo command is ran and whether it matches the baseurl in the repo conf file.



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



  • 9.  RE: DNF repository setup

    Posted Fri October 13, 2023 08:30 AM

    Hi Ayappan ,

    I think you're right, the client must get this location from the repo server, but the directory structure doesn't contain this extra directory. Maybe I need to try to run it again and watch more carefully what it does.

    DNF is written in Python BTW, make it a bit easier to look at.

    Regards.

    Henrik Morsing



    ------------------------------
    Henrik Morsing
    ------------------------------