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.  AIX 7.2 yum to dnf migration post migration update wants to downgrade yum package?

    Posted Fri February 10, 2023 12:09 PM

    Since using dnf is recommended moving forward I thought I would update the AIX 7.1 and 7.2 images we deploy for users from yum to dnf.  I ran through the migration with dnf_aixtoolbox.sh using the -y option so yum would continue to work and it appears to have worked fine.  However when I go to run dnf update afterwards I see it wants to downgrade the yum package which I am pretty sure would be all bad:

    AIX generic repository                                                                        15 kB/s | 2.7 kB     00:00    
    AIX noarch repository                                                                         14 kB/s | 2.6 kB     00:00    
    AIX 7.2 specific repository                                                                   14 kB/s | 2.7 kB     00:00    
    Dependencies resolved.
    =============================================================================================================================
     Package                                 Architecture        Version                   Repository                       Size
    =============================================================================================================================
    Upgrading:
     libcomps                                ppc                 0.1.11-101                AIX_Toolbox                     622 k
     libmodulemd                             ppc                 1.5.2-100                 AIX_Toolbox                     1.2 M
     librepo                                 ppc                 1.11.0-101                AIX_Toolbox                     441 k
     libsmartcols                            ppc                 2.34-100                  AIX_Toolbox                     614 k
     libzstd                                 ppc                 1.5.2-1                   AIX_Toolbox                     1.5 M
     python3                                 ppc                 3.7.15-2                  AIX_Toolbox                      42 M
     python3-gpg                             ppc                 1.13.1-100                AIX_Toolbox                     744 k
     python3-libcomps                        ppc                 0.1.11-101                AIX_Toolbox                     564 k
     python3-librepo                         ppc                 1.11.0-101                AIX_Toolbox                     326 k
     zchunk-libs                             ppc                 1.1.4-102                 AIX_Toolbox                     824 k
     dnf                                     ppc                 4.2.17-32_50              AIX_Toolbox_72                   14 k
     dnf-automatic                           ppc                 4.2.17-32_50              AIX_Toolbox_72                   12 k
     dnf-data                                ppc                 4.2.17-32_50              AIX_Toolbox_72                   24 k
     libdnf                                  ppc                 0.39.1-32_51              AIX_Toolbox_72                  2.3 M
     libsolv                                 ppc                 0.7.9-32_51               AIX_Toolbox_72                  672 k
     python3-dnf                             ppc                 4.2.17-32_50              AIX_Toolbox_72                  193 k
     python3-dnf-plugin-migrate              ppc                 4.0.16-32_50              AIX_Toolbox_72                  8.3 k
     python3-dnf-plugins-core                ppc                 4.0.16-32_50              AIX_Toolbox_72                   33 k
     python3-hawkey                          ppc                 0.39.1-32_51              AIX_Toolbox_72                  406 k
     python3-libdnf                          ppc                 0.39.1-32_51              AIX_Toolbox_72                  2.2 M
    Installing dependencies:
     check                                   ppc                 0.13.0-1                  AIX_Toolbox                      93 k
     gmp                                     ppc                 6.2.1-1                   AIX_Toolbox                     1.1 M
     gnupg2                                  ppc                 2.2.35-1                  AIX_Toolbox                      12 M
     gnutls                                  ppc                 3.7.2-1                   AIX_Toolbox                     5.5 M
     gpgme                                   ppc                 1.13.1-100                AIX_Toolbox                     518 k
     json-c                                  ppc                 0.15-2                    AIX_Toolbox                     748 k
     libassuan                               ppc                 2.5.5-1                   AIX_Toolbox                     980 k
     libgcrypt                               ppc                 1.9.4-1                   AIX_Toolbox                     4.4 M
     libgpg-error                            ppc                 1.45-1                    AIX_Toolbox                     500 k
     libksba                                 ppc                 1.6.2-1                   AIX_Toolbox                     1.3 M
     nettle                                  ppc                 3.7.3-1                   AIX_Toolbox                     2.6 M
     npth                                    ppc                 1.5-1                     AIX_Toolbox                     220 k
    Installing weak dependencies:
     pinentry                                ppc                 1.0.0-1                   AIX_Toolbox                     115 k
    Downgrading:
     yum                                     noarch              3.4.3-8                   AIX_Toolbox_noarch              1.3 M

    Transaction Summary
    =============================================================================================================================
    Install    13 Packages
    Upgrade    20 Packages
    Downgrade   1 Package

    Total download size: 85 M
    Is this ok [y/N]: N
    Operation aborted.

    Am I misunderstanding the recommendation and this sort of setup should only be put in place just prior to migrating from 7.2 to 7.3?



    ------------------------------
    Chris Horn
    ------------------------------


  • 2.  RE: AIX 7.2 yum to dnf migration post migration update wants to downgrade yum package?

    Posted Fri February 10, 2023 12:58 PM

    Hi Chris,

    This happens when yum-utils is installed.

    We have fixed this with  dnf-utils update when someone migrate from 7.2 to 7.3.

    We will soon update same for  the 7.2 as well and upload it.



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



  • 3.  RE: AIX 7.2 yum to dnf migration post migration update wants to downgrade yum package?

    Posted Fri February 10, 2023 01:24 PM

    Hi Sangamesh,

    Ah, makes some sense.  I will hold off until you are able to make that available.  Thank you.

    Best regards,

    Chris



    ------------------------------
    Chris Horn
    ------------------------------



  • 4.  RE: AIX 7.2 yum to dnf migration post migration update wants to downgrade yum package?

    Posted Wed March 01, 2023 10:57 AM

    Hi Sangamesh,

    first i updated AIX from TL5SP3 to TL5SP5.
    I noticed the same after updating our local DNF repository and doing a dnf update after that:

    dnf update --nobest
    Last metadata expiration check: 5:06:16 ago on Wed Mar  1 11:44:41 CET 2023.
    Dependencies resolved.

     Problem 1: cannot install the best update candidate for package libgcc-1:8-1.ppc
      - nothing provides AIX-rpm < 7.2.0.0 needed by libgcc-1:10-2.ppc
     Problem 2: cannot install the best update candidate for package libgcc8-8.3.0-6.ppc
      - nothing provides AIX-rpm < 7.2.0.0 needed by libgcc8-8.3.0-7.ppc
     Problem 3: cannot install the best update candidate for package libgomp-1:8-1.ppc
      - nothing provides AIX-rpm < 7.2.0.0 needed by libgomp-1:10-2.ppc
     Problem 4: cannot install the best update candidate for package libgomp8-8.3.0-6.ppc
      - nothing provides AIX-rpm < 7.2.0.0 needed by libgomp8-8.3.0-7.ppc
     Problem 5: cannot install the best update candidate for package libstdc++-1:8-1.ppc
      - nothing provides AIX-rpm < 7.2.0.0 needed by libstdc++-1:10-2.ppc
     Problem 6: cannot install the best update candidate for package libstdc++8-8.3.0-6.ppc
      - nothing provides AIX-rpm < 7.2.0.0 needed by libstdc++8-8.3.0-7.ppc
    =============================================================================================================================================================================================================
     Package                                                     Architecture                            Version                                       Repository                                           Size
    =============================================================================================================================================================================================================
    Upgrading:
     apr                                                         ppc                                     1.7.0-1                                       AIX_Toolbox                                         363 k
     apr-util                                                    ppc                                     1.6.1-1                                       AIX_Toolbox                                         304 k
     bash                                                        ppc                                     5.1.16-1                                      AIX_Toolbox                                         2.8 M
     ...
     ...
     ...
     npth                                                        ppc                                     1.5-1                                         AIX_Toolbox                                         220 k
     python3-gpg                                                 ppc                                     1.13.1-100                                    AIX_Toolbox                                         744 k
         replacing  python3-gpgme.ppc 1.13.1-32_1
     libgcc10                                                    ppc                                     10.3.0-6                                      AIX_Toolbox_72                                      793 k
     libgomp10                                                   ppc                                     10.3.0-6                                      AIX_Toolbox_72                                      2.0 M
     libstdc++10                                                 ppc                                     10.3.0-6                                      AIX_Toolbox_72                                       19 M
    Installing weak dependencies:
     pinentry                                                    ppc                                     1.0.0-1                                       AIX_Toolbox                                         115 k
    Downgrading:
     yum                                                         noarch                                  3.4.3-8                                       AIX_Toolbox_noarch                                  1.3 M
    Skipping packages with broken dependencies:
     libgcc                                                      ppc                                     1:10-2                                        AIX_Toolbox_71                                       14 k
     libgcc8                                                     ppc                                     8.3.0-7                                       AIX_Toolbox_71                                      976 k
     libgomp                                                     ppc                                     1:10-2                                        AIX_Toolbox_71                                       14 k
     libgomp8                                                    ppc                                     8.3.0-7                                       AIX_Toolbox_71                                      1.4 M
     libstdc++                                                   ppc                                     1:10-2                                        AIX_Toolbox_71                                       14 k
     libstdc++8                                                  ppc                                     8.3.0-7                                       AIX_Toolbox_71                                       12 M

    Transaction Summary
    =============================================================================================================================================================================================================
    Install    16 Packages
    Upgrade    54 Packages
    Downgrade   1 Package
    Skip        6 Packages

    Total size: 203 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Error: Transaction test error:
      file /opt/freeware/bin/yum conflicts between attempted installs of yum-3.4.3-8.noarch and dnf-4.2.17-32_50.ppc

    offcourse it did not remove yum ;-)

    Will this fix solve this issue as well?

    or can i just remove yum-utils and install dnf-utils after the dnf update?

    kind regards,

    Emiel



    ------------------------------
    Emiel van ter Beek
    ------------------------------



  • 5.  RE: AIX 7.2 yum to dnf migration post migration update wants to downgrade yum package?

    Posted Thu March 02, 2023 08:13 AM

    Hi Emiel,

    As of now the workaround is to remove the yum-utils manually and install dnf-utils.

    For 7.3 we have already fixed this issue where dnf-utils removes the yum-utils automatically.



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