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
Expand all | Collapse all

file /opt/freeware/bin/yum conflicts between attempted installs of yum-3.4.3-8.noarch and dnf-4.2.17-32_50.ppc

  • 1.  file /opt/freeware/bin/yum conflicts between attempted installs of yum-3.4.3-8.noarch and dnf-4.2.17-32_50.ppc

    Posted Thu June 02, 2022 05:08 PM
    Hi - I have just finished a successul YUM to DNF conversion using the latest script.

    rowswell@P720_01_NIM:/home/rowswell:$ wget https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/dnf_aixtoolbox.sh
    --2022-06-02 16:43:56-- https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/dnf_aixtoolbox.sh
    Resolving public.dhe.ibm.com... 170.225.15.112
    Connecting to public.dhe.ibm.com|170.225.15.112|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 7204 (7.0K) [application/x-sh]
    Saving to: 'dnf_aixtoolbox.sh'

    dnf_aixtoolbox.sh 100%[===================================================>] 7.04K --.-KB/s in 0s

    2022-06-02 16:43:57 (177 MB/s) - 'dnf_aixtoolbox.sh' saved [7204/7204]

    rowswell@P720_01_NIM:/home/rowswell:$ ls -l dnf*
    -rw-r--r-- 1 rowswell system 7204 Feb 8 10:03 dnf_aixtoolbox.sh

    rowswell@P720_01_NIM:/home/rowswell:$ chmod u+x dnf_aixtoolbox.sh

    rowswell@P720_01_NIM:/home/rowswell:$ s ./dnf_aixtoolbox.sh -y
    Attempting download of dnf_bundle_aix_71_72.tar ...
    Saving to 'dnf_bundle_aix_71_72.tar'...
    168 MB received in 52 seconds (3.23 MB/sec)

    Extracting dnf_bundle_aix_71_72.tar ...
    x ca-certificates-2020.06.01-0.aix7.1.ppc.rpm, 952182 bytes, 1860 tape blocks
    x dnf-4.2.17-32_2.aix7.1.noarch.rpm, 10981 bytes, 22 tape blocks
    x dnf-automatic-4.2.17-32_2.aix7.1.noarch.rpm, 12288 bytes, 24 tape blocks
    x dnf-data-4.2.17-32_2.aix7.1.noarch.rpm, 23516 bytes, 46 tape blocks
    x extra_list, 218 bytes, 1 tape blocks
    x install_dnf.sh, 11878 bytes, 24 tape blocks
    x libcomps-0.1.11-32_1.aix7.1.ppc.rpm, 1273338 bytes, 2487 tape blocks
    x libdnf-0.39.1-32_2.aix7.1.ppc.rpm, 15810655 bytes, 30881 tape blocks
    x libmodulemd-1.5.2-32_2.aix7.1.ppc.rpm, 3433754 bytes, 6707 tape blocks
    x librepo-1.11.0-32_1.aix7.1.ppc.rpm, 3650338 bytes, 7130 tape blocks
    x libsmartcols-2.34-32_1.aix7.1.ppc.rpm, 183412 bytes, 359 tape blocks
    x libsolv-0.7.9-32_1.aix7.1.ppc.rpm, 1533403 bytes, 2995 tape blocks
    x libzstd-1.4.4-32_1.aix7.1.ppc.rpm, 469194 bytes, 917 tape blocks
    x p11-kit-0.23.16-0.aix7.1.ppc.rpm, 1047702 bytes, 2047 tape blocks
    x p11-kit-tools-0.23.16-0.aix7.1.ppc.rpm, 39777 bytes, 78 tape blocks
    x python3-3.7.9-0.aix7.1.ppc.rpm, 43168080 bytes, 84313 tape blocks
    x python3-dateutil-2.8.0-1.aix6.1.noarch.rpm, 363137 bytes, 710 tape blocks
    x python3-devel-3.7.9-0.aix7.1.ppc.rpm, 237244 bytes, 464 tape blocks
    x python3-dnf-4.2.17-32_2.aix7.1.noarch.rpm, 197205 bytes, 386 tape blocks
    x python3-dnf-plugin-migrate-4.0.16-32_1.aix7.1.noarch.rpm, 8546 bytes, 17 tape blocks
    x python3-dnf-plugins-core-4.0.16-32_1.aix7.1.noarch.rpm, 49763 bytes, 98 tape blocks
    x python3-docs-3.7.9-0.aix7.1.ppc.rpm, 2993180 bytes, 5847 tape blocks
    x python3-gpgme-1.13.1-32_1.aix7.1.ppc.rpm, 682308 bytes, 1333 tape blocks
    x python3-hawkey-0.39.1-32_2.aix7.1.ppc.rpm, 3113865 bytes, 6082 tape blocks
    x python3-libcomps-0.1.11-32_1.aix7.1.ppc.rpm, 1020925 bytes, 1994 tape blocks
    x python3-libdnf-0.39.1-32_2.aix7.1.ppc.rpm, 22549836 bytes, 44043 tape blocks
    x python3-librepo-1.11.0-32_1.aix7.1.ppc.rpm, 2292962 bytes, 4479 tape blocks
    x python3-six-1.13.0-1.aix6.1.noarch.rpm, 514483 bytes, 1005 tape blocks
    x python3-test-3.7.9-0.aix7.1.ppc.rpm, 28383122 bytes, 55436 tape blocks
    x python3-tools-3.7.9-0.aix7.1.ppc.rpm, 12734 bytes, 25 tape blocks
    x rpm-python3-4.15.1-32_1.aix7.1.ppc.rpm, 100168 bytes, 196 tape blocks
    x rpm.rte, 40620032 bytes, 79336 tape blocks
    x yum-4.2.17-32_2.aix7.1.noarch.rpm, 8466 bytes, 17 tape blocks
    x zchunk-1.1.4-32_1.aix7.1.ppc.rpm, 552363 bytes, 1079 tape blocks
    x zchunk-devel-1.1.4-32_1.aix7.1.ppc.rpm, 19487 bytes, 39 tape blocks
    x zchunk-libs-1.1.4-32_1.aix7.1.ppc.rpm, 534328 bytes, 1044 tape blocks

    Installing rpm.rte at the latest version ...
    This may take several minutes depending on the number of rpms installed...
    +-----------------------------------------------------------------------------+
    Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...

    WARNINGS
    --------
    Problems described in this section are not likely to be the source of any
    immediate or serious failures, but further actions may be necessary or
    desired.

    Already Installed
    -----------------
    The number of selected filesets that are either already installed
    or effectively installed through superseding filesets is 1. See
    the summaries at the end of this installation for details.

    NOTE: Base level filesets may be reinstalled using the "Force"
    option (-F flag), or they may be removed, using the deinstall or
    "Remove Software Products" facility (-u flag), and then reinstalled.

    << End of Warning Section >>

    +-----------------------------------------------------------------------------+
    BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
    1 Selected to be installed, of which:
    1 Already installed (directly or via superseding filesets)
    ----
    0 Total to be installed


    Pre-installation Failure/Warning Summary
    ----------------------------------------
    Name Level Pre-installation Failure/Warning
    -------------------------------------------------------------------------------
    rpm.rte 4.15.1.3 Already installed

    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.

    Skipping ca-certificates-2020.06.01-0 as higher version ca-certificates-2021.2.52-1.ppc is installed.
    dnf-4.2.17-32_2 will be installed
    dnf-automatic-4.2.17-32_2 will be installed
    dnf-data-4.2.17-32_2 will be installed
    libcomps-0.1.11-32_1 will be installed
    libdnf-0.39.1-32_2 will be installed
    libmodulemd-1.5.2-32_2 will be installed
    librepo-1.11.0-32_1 will be installed
    libsmartcols-2.34-32_1 will be installed
    libsolv-0.7.9-32_1 will be installed
    libzstd-1.4.4-32_1 will be installed
    Skipping p11-kit-0.23.16-0 as higher version p11-kit-0.23.22-1.ppc is installed.
    Skipping p11-kit-tools-0.23.16-0 as higher version p11-kit-tools-0.23.22-1.ppc is installed.
    Skipping python3-3.7.9-0 as higher version python3-3.7.12-1.ppc is installed.
    python3-dateutil-2.8.0-1 will be installed
    python3-dnf-4.2.17-32_2 will be installed
    python3-dnf-plugin-migrate-4.0.16-32_1 will be installed
    python3-dnf-plugins-core-4.0.16-32_1 will be installed
    python3-gpgme-1.13.1-32_1 will be installed
    python3-hawkey-0.39.1-32_2 will be installed
    python3-libcomps-0.1.11-32_1 will be installed
    python3-libdnf-0.39.1-32_2 will be installed
    python3-librepo-1.11.0-32_1 will be installed
    python3-six-1.13.0-1 will be installed
    rpm-python3-4.15.1-32_1 will be installed
    yum-3.4.3-8.noarch will be updated to yum-4.2.17-32_2
    zchunk-libs-1.1.4-32_1 will be installed

    Installing the packages...

    Verifying... ################################# [100%]
    Preparing... ################################# [100%]
    Updating / installing...
    1:libzstd-1.4.4-32_1 ################################# [ 4%]
    2:libmodulemd-1.5.2-32_2 ################################# [ 8%]
    3:libsolv-0.7.9-32_1 ################################# [ 13%]
    4:libsmartcols-2.34-32_1 ################################# [ 17%]
    5:zchunk-libs-1.1.4-32_1 ################################# [ 21%]
    6:librepo-1.11.0-32_1 ################################# [ 25%]
    7:rpm-python3-4.15.1-32_1 ################################# [ 29%]
    8:libdnf-0.39.1-32_2 ################################# [ 33%]
    9:python3-libdnf-0.39.1-32_2 ################################# [ 38%]
    10:python3-hawkey-0.39.1-32_2 ################################# [ 42%]
    11:dnf-data-4.2.17-32_2 ################################# [ 46%]
    12:python3-six-1.13.0-1 ################################# [ 50%]
    13:python3-dateutil-2.8.0-1 ################################# [ 54%]
    14:python3-gpgme-1.13.1-32_1 ################################# [ 58%]
    15:libcomps-0.1.11-32_1 ################################# [ 63%]
    16:python3-libcomps-0.1.11-32_1 ################################# [ 67%]
    17:python3-dnf-4.2.17-32_2 ################################# [ 71%]
    18:dnf-4.2.17-32_2 ################################# [ 75%]
    19:python3-dnf-plugins-core-4.0.16-3################################# [ 79%]
    20:python3-dnf-plugin-migrate-4.0.16################################# [ 83%]
    21:dnf-automatic-4.2.17-32_2 ################################# [ 88%]

    This version of yum4 is a soft link to dnf and all the yum commands are dnf commands.
    Repositories present in yum.conf is being used for dnf.


    Trying to create pkg_yumdb database required for migrate plugin
    Successfully created pkg_yumdb database
    22:yum-4.2.17-32_2 ################################# [ 92%]
    23:python3-librepo-1.11.0-32_1 ################################# [ 96%]
    Cleaning up / removing...
    24:yum-3.4.3-8 warning: /opt/freeware/etc/yum/yum.conf saved as /opt/freeware/etc/yum/yum.conf.rpmsave
    ################################# [100%]

    dnf installed successfully.
    Please run 'dnf update' to update packages to the latest level.

    Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
    RPM packages install files go under the path /opt.
    Hence it is recommended to always keep at least 512MB of free space in /var & /opt
    to avoid any download and installation/update failures.

    Trying to run 'dnf migrate' to migrate yum database to dnf.
    AIX generic repository 3.1 MB/s | 19 MB 00:06
    AIX noarch repository 1.5 MB/s | 1.4 MB 00:00
    AIX 7.2 specific repository 1.3 MB/s | 1.2 MB 00:00
    Last metadata expiration check: 0:00:01 ago on Thu Jun 2 16:47:34 2022.
    Migrating history data...
    rowswell@P720_01_NIM:/home/rowswell:$


    rowswell@P720_01_NIM:/home/rowswell:$ s dnf check
    rowswell@P720_01_NIM:/home/rowswell:$ s yum check
    rowswell@P720_01_NIM:/home/rowswell:$ time s updtvpkg
    Please wait...

    real 0m10.357s
    user 0m1.066s
    sys 0m0.957s

    Nice and clean

    Do a dnf update

    rowswell@P720_01_NIM:/home/rowswell:$ s dnf update
    Last metadata expiration check: 0:04:43 ago on Thu Jun 2 16:47:34 EDT 2022.
    Dependencies resolved.
    ===========================================================================================================================
    Package Architecture Version Repository Size
    ===========================================================================================================================
    Installing:
    python3-gpg ppc 1.13.1-100 AIX_Toolbox 744 k
    replacing python3-gpgme.ppc 1.13.1-32_1
    Upgrading:
    libcomps ppc 0.1.11-100 AIX_Toolbox 621 k
    libmodulemd ppc 1.5.2-100 AIX_Toolbox 1.2 M
    librepo ppc 1.11.0-100 AIX_Toolbox 440 k
    libsmartcols ppc 2.34-100 AIX_Toolbox 614 k
    libzstd ppc 1.4.4-100 AIX_Toolbox 1.5 M
    python3-libcomps ppc 0.1.11-100 AIX_Toolbox 563 k
    python3-librepo ppc 1.11.0-100 AIX_Toolbox 326 k
    zchunk-libs ppc 1.1.4-101 AIX_Toolbox 823 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_50 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_50 AIX_Toolbox_72 405 k
    python3-libdnf ppc 0.39.1-32_50 AIX_Toolbox_72 2.2 M
    Installing dependencies:
    check ppc 0.13.0-1 AIX_Toolbox 93 k
    gnupg2 ppc 2.2.23-1 AIX_Toolbox 7.9 M
    gnutls ppc 3.7.1-1 AIX_Toolbox 5.4 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.3-1 AIX_Toolbox 559 k
    libgcrypt ppc 1.9.4-1 AIX_Toolbox 4.4 M
    libgpg-error ppc 1.42-1 AIX_Toolbox 468 k
    libksba ppc 1.4.0-1 AIX_Toolbox 1.0 M
    libyaml ppc 0.2.2-1 AIX_Toolbox 506 k
    nettle ppc 3.7.3-1 AIX_Toolbox 2.6 M
    npth ppc 1.5-1 AIX_Toolbox 220 k
    Downgrading:
    yum noarch 3.4.3-8 AIX_Toolbox_noarch 1.3 M

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

    Total download size: 38 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/32): check-0.13.0-1.aix7.1.ppc.rpm 254 kB/s | 93 kB 00:00
    (2/32): yum-3.4.3-8.aix6.1.noarch.rpm 1.6 MB/s | 1.3 MB 00:00
    (3/32): gpgme-1.13.1-100.aix7.1.ppc.rpm 2.4 MB/s | 518 kB 00:00
    (4/32): json-c-0.15-2.aix6.1.ppc.rpm 2.5 MB/s | 748 kB 00:00
    (5/32): libassuan-2.5.3-1.aix6.1.ppc.rpm 2.4 MB/s | 559 kB 00:00
    (6/32): gnutls-3.7.1-1.aix6.1.ppc.rpm 3.1 MB/s | 5.4 MB 00:01
    (7/32): libgpg-error-1.42-1.aix6.1.ppc.rpm 2.2 MB/s | 468 kB 00:00
    (8/32): libksba-1.4.0-1.aix6.1.ppc.rpm 2.5 MB/s | 1.0 MB 00:00
    (9/32): gnupg2-2.2.23-1.aix6.1.ppc.rpm 2.8 MB/s | 7.9 MB 00:02
    (10/32): libgcrypt-1.9.4-1.aix6.1.ppc.rpm 3.2 MB/s | 4.4 MB 00:01
    (11/32): libyaml-0.2.2-1.aix6.1.ppc.rpm 2.3 MB/s | 506 kB 00:00
    (12/32): npth-1.5-1.aix6.1.ppc.rpm 2.5 MB/s | 220 kB 00:00
    (13/32): libcomps-0.1.11-100.aix7.1.ppc.rpm 2.8 MB/s | 621 kB 00:00
    (14/32): python3-gpg-1.13.1-100.aix7.1.ppc.rpm 2.5 MB/s | 744 kB 00:00
    (15/32): librepo-1.11.0-100.aix7.1.ppc.rpm 2.5 MB/s | 440 kB 00:00
    (16/32): libmodulemd-1.5.2-100.aix7.1.ppc.rpm 2.9 MB/s | 1.2 MB 00:00
    (17/32): libsmartcols-2.34-100.aix7.1.ppc.rpm 2.4 MB/s | 614 kB 00:00
    (18/32): nettle-3.7.3-1.aix6.1.ppc.rpm 3.0 MB/s | 2.6 MB 00:00
    (19/32): python3-librepo-1.11.0-100.aix7.1.ppc.rpm 1.9 MB/s | 326 kB 00:00
    (20/32): python3-libcomps-0.1.11-100.aix7.1.ppc.rpm 2.6 MB/s | 563 kB 00:00
    (21/32): dnf-4.2.17-32_50.aix7.2.ppc.rpm 296 kB/s | 14 kB 00:00
    (22/32): dnf-automatic-4.2.17-32_50.aix7.2.ppc.rpm 273 kB/s | 12 kB 00:00
    (23/32): dnf-data-4.2.17-32_50.aix7.2.ppc.rpm 537 kB/s | 24 kB 00:00
    (24/32): libzstd-1.4.4-100.aix7.1.ppc.rpm 2.9 MB/s | 1.5 MB 00:00
    (25/32): zchunk-libs-1.1.4-101.aix7.1.ppc.rpm 2.7 MB/s | 823 kB 00:00
    (26/32): python3-dnf-4.2.17-32_50.aix7.2.ppc.rpm 1.3 MB/s | 193 kB 00:00
    (27/32): python3-dnf-plugin-migrate-4.0.16-32_50.aix7.2.ppc.rpm 135 kB/s | 8.3 kB 00:00
    (28/32): libsolv-0.7.9-32_51.aix7.2.ppc.rpm 2.6 MB/s | 672 kB 00:00
    (29/32): python3-dnf-plugins-core-4.0.16-32_50.aix7.2.ppc.rpm 330 kB/s | 33 kB 00:00
    (30/32): python3-hawkey-0.39.1-32_50.aix7.2.ppc.rpm 3.0 MB/s | 405 kB 00:00
    (31/32): libdnf-0.39.1-32_50.aix7.2.ppc.rpm 3.1 MB/s | 2.3 MB 00:00
    (32/32): python3-libdnf-0.39.1-32_50.aix7.2.ppc.rpm 3.2 MB/s | 2.2 MB 00:00
    ---------------------------------------------------------------------------------------------------------------------------
    Total 7.4 MB/s | 38 MB 00:05
    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


    Any idea how to resolve this issue?

    Thanks
    Dean

    ------------------------------
    Dean Rowswell
    ------------------------------


  • 2.  RE: file /opt/freeware/bin/yum conflicts between attempted installs of yum-3.4.3-8.noarch and dnf-4.2.17-32_50.ppc

    Posted Fri June 03, 2022 07:33 AM
    Hi Dean,

    Do you have yum-utils package installed ?
    Presence of yum-utils is causing this issue.
    Please have a look at this https://community.ibm.com/community/user/power/discussion/dnf-migration-yum-inconsistency?ReturnUrl=%2fcommunity%2fuser%2fpower%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3d10c1d831-47ee-4d92-a138-b03f7896f7c9

    One workaround would be to remove yum-utils before dnf update.
    Also, we are checking if somehow this can be done automatically during update.

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



  • 3.  RE: file /opt/freeware/bin/yum conflicts between attempted installs of yum-3.4.3-8.noarch and dnf-4.2.17-32_50.ppc

    Posted Fri June 03, 2022 12:15 PM
    Hi - thanks for the help! 
    After removing yum-utils the dnf update runs successfully.
    Dean

    ------------------------------
    Dean Rowswell
    ------------------------------