AIX Open Source

power-server-operatingsystems.png

Operating Systems

The core of your mission-critical workloads: AIX, IBM i, and Enterprise Linux

power-ISV-Solutions1.png

ISV Solutions

Stay up to date with key capabilities running on POWER such as SAP

Business Continuity

Learn how to keep critical processes running and adapt quickly with PowerHA

power-infrastructure-security.png

Power Security

Protect your most sensitive data anywhere in your hybrid cloud

Virtualization

Check here for virtualization and management needs: HMC & CMC, PowerVC, and PowerVM

Open Source

Join our open source efforts within the IBM Power Systems portfolio

Enterprise Infrastructure as a Service

Achieve business growth with agility and flexibility with our enterprise IaaS in Power Virtual Server

Programming Languages

The hub for Programming Languages

Expand all | Collapse all

dnf to create local repository

  • 1.  dnf to create local repository

    Posted 2 days ago
    Hello Team,

    I updated the yum version on our repository server to the dnf (yum-4) version. Unfortunately the createrepo command is not implemented in dnf and the createrepo from the AIX Toolbox does not support yum-4.

    svrsrepo-0:/root#createrepo /repo/COOP_RPMS_noarch
    Traceback (most recent call last):
    File "/opt/freeware/share/createrepo/genpkgmetadata.py", line 29, in <module>
    import createrepo
    File "/opt/freeware/lib/python2.7/site-packages/createrepo/__init__.py", line 21, in <module>
    import yumbased
    File "/opt/freeware/lib/python2.7/site-packages/createrepo/yumbased.py", line 27, in <module>
    from yum.packages import YumLocalPackage
    ImportError: No module named yum.packages

    Does that mean I need to stay on yum-3 for the repository server or am I wrong?
    It might become a problem because of our security guidelines with using python2...

    Will the createrepo be updated for using dnf?

    Thanks a lot in advance for your support.

    Best regards

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


  • 2.  RE: dnf to create local repository

    Posted 2 days ago
    Hello Joerg,

    createrepo is dependent on yum and createrepo_c is the replacement to use in dnf environment.
    We have already started working on that and will make that available in coming quarter.
    Right now dnf to be use at client side not on repo server. 
    We are doing in stages this development and rollout. 


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



  • 3.  RE: dnf to create local repository

    Posted 2 days ago

    Thanks Sanket.
    I already tried to install createrepo_c via pip, but unfortunately it ended up with this message:

    RuntimeError: Unsupported platform: aix. Please contact the scikit-build team.

    So I will wait... Thanks again. You and your Team do a great job.



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