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.  YUM -> DNF

    Posted Wed August 10, 2022 11:21 AM
    Hello,

    We have some LPARS in AIX 7.2 and 7.1(we have YUM installed on all of it)
    Is there any point in migrating to dnf, when yum is already installed in AIX 7.2 ?  

     

     -> (If users migrate from AIX7.1 or 7.2 to AIX 7.3 then the existing installed DNF won't work as-is.)
          if so, we'll have to migrate DNF again after migrate from 7.2 to 7.3.

    Thank you for your answer.

    regards.

    Nicolas.



    ------------------------------
    Nicolas KAPLIN
    ------------------------------

    #AIXOpenSource


  • 2.  RE: YUM -> DNF

    Posted Thu August 11, 2022 04:30 AM
    Hello Nicolas,
    I think you mean : what is the best option : Installing DNF   before or after our migration to AIX 7.3 ?
    Should we install DNF now (in AIX 7.1 or AIX 7.2) ?
    Or should we install DNF one time our AIX 7.3 migration in finished ?
    What are IBM recommendations ?
    Have a nice day.

    ------------------------------
    christophe derouet
    ------------------------------



  • 3.  RE: YUM -> DNF

    Posted Fri August 12, 2022 05:39 AM
    Hi Nicolas,

    Though you can continue to use YUM it's not supported and recommended to use DNF.
    I have update the blog to add instructions for YUM to DNF migration.
    https://community.ibm.com/community/user/power/blogs/sangamesh-mallayya1/2022/01/10/aix-migration-with-dnf?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9

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



  • 4.  RE: YUM -> DNF

    Posted Tue August 16, 2022 04:36 AM
    Edited by christophe derouet Tue August 16, 2022 04:37 AM
    Hello Sangamesh.
    I am working with Nicolas, in the same team.
    I have a question about the rpm.rte fileset.

    We created IBM case TS003271766  on January 24th 2020.

    We were starting working with YUM...

    We were working on an AIX 7.1TL6 partition.
    As we wanted to work with YUM we had to install the newest version of the rpm.rte fileset.
    The version 4.13.0.11 of fileset rpm.rte has been successfully installed under the control of SMIT NIM.
    Now we are facing troubles when trying to migrate to AIX 7.2.
    This is the reason why we had to downgrade the rpm.rte fileset from version 4.13.0.11 to version 3.0.5.52.
    Then our AIX 7.2 migration was successfull.

    Will this happen with DNF ?
    Will we have to downgrade the fileset rpm.rte before our migration to the latest AIX OS level ?

    We thank you very much for your help,

    ------------------------------
    christophe derouet
    ------------------------------



  • 5.  RE: YUM -> DNF

    Posted Wed August 17, 2022 02:10 AM
    Hi Christophe,

    Not sure what is the exact issue with rpm.rte which is causing migration issue.
    YUM/DNF won't work with rpm.rte-3.0.5.x.

    DNF doesn't interfere with AIX migration and you don't need to downgrade the rpm.rte.
    However, there are some commands needs to be run after AIX migration to make sure DNF and it's repositories are correct.
    This is explained in this blog https://community.ibm.com/community/user/power/blogs/sangamesh-mallayya1/2022/01/10/aix-migration-with-dnf?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9



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



  • 6.  RE: YUM -> DNF

    Posted Mon August 22, 2022 05:26 AM
    Hello Sangamesh,
    DNF is now successfully installed on our AIX LPAR.
    It seems we have missing links.



    ataai018(root) / #
    ataai018(root) / # echo $PATH
    /usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin
    ataai018(root) / #
    ataai018(root) / #
    ataai018(root) / # yum repolist
    ksh: yum: not found.
    ataai018(root) / # dnf repolist
    ksh: dnf: not found.
    ataai018(root) / #
    ataai018(root) / # #export PATH=$PATH:/opt/freeware/bin
    ataai018(root) / #
    ataai018(root) / # export PATH=$PATH:/opt/freeware/bin
    ataai018(root) / # dnf repolist
    repo id repo name
    AIX_Toolbox AIX generic repository
    AIX_Toolbox_71 AIX 7.1 specific repository
    AIX_Toolbox_72 AIX 7.2 specific repository
    AIX_Toolbox_noarch AIX noarch repository
    rsyslog_v7_nightly Adiscon CentOS-7.2.5.100 - nightly packages for AIX
    ataai018(root) / #
    ataai018(root) / # yum repolist
    repo id repo name
    AIX_Toolbox AIX generic repository
    AIX_Toolbox_71 AIX 7.1 specific repository
    AIX_Toolbox_72 AIX 7.2 specific repository
    AIX_Toolbox_noarch AIX noarch repository
    rsyslog_v7_nightly Adiscon CentOS-7.2.5.100 - nightly packages for AIX
    ataai018(root) / #
    ataai018(root) / # oslevel -s
    7200-05-03-2136
    ataai018(root) / #
    ataai018(root) / # lslpp -l rpm.rte
    Fileset Level State Description
    ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
    rpm.rte 4.15.1.3 COMMITTED RPM Package Manager

    Path: /etc/objrepos
    rpm.rte 4.15.1.3 COMMITTED RPM Package Manager
    ataai018(root) / #
    ataai018(root) / # dnf list python
    AIX generic repository 1.1 MB/s | 2.9 kB 00:00
    AIX noarch repository 2.8 MB/s | 2.9 kB 00:00
    AIX 7.1 specific repository 2.9 MB/s | 2.9 kB 00:00
    AIX 7.2 specific repository 2.6 MB/s | 2.9 kB 00:00
    Adiscon CentOS-7.2.5.100 - nightly packages for AIX 1.7 kB/s | 3.0 kB 00:01
    Adiscon CentOS-7.2.5.100 - nightly packages for AIX 1.9 MB/s | 5.1 MB 00:02
    Installed Packages
    python.ppc 2.7.16-1 @System
    Available Packages
    python.ppc 2.7.18-1 AIX_Toolbox
    ataai018(root) / #
    ataai018(root) / #

    We had to run an EXPORT command. 
    Would it be possible to include links in the DNF installation ?

    On a yum aix LPAR we can see the links below :
    root@apaai001:/usr/bin # ls -al *yum*
    lrwxrwxrwx 1 root system 26 Mar 30 2020 yum -> ../../opt/freeware/bin/yum
    lrwxrwxrwx 1 root system 35 Mar 30 2020 yum-builddep -> ../../opt/freeware/bin/yum-builddep
    lrwxrwxrwx 1 root system 41 Mar 30 2020 yum-config-manager -> ../../opt/freeware/bin/yum-config-manager
    lrwxrwxrwx 1 root system 37 Mar 30 2020 yum-debug-dump -> ../../opt/freeware/bin/yum-debug-dump
    lrwxrwxrwx 1 root system 40 Mar 30 2020 yum-debug-restore -> ../../opt/freeware/bin/yum-debug-restore
    lrwxrwxrwx 1 root system 41 Mar 30 2020 yum-groups-manager -> ../../opt/freeware/bin/yum-groups-manager
    lrwxrwxrwx 1 root system 36 Mar 30 2020 yumdownloader -> ../../opt/freeware/bin/yumdownloader
    root@apaai001:/usr/bin #


    We thank you very much for your help,

    Have a nice day,

    Christophe



    ------------------------------
    christophe derouet
    ------------------------------