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

YUM to DNF migration

  • 1.  YUM to DNF migration

    Posted Thu September 28, 2023 06:41 AM

    Hi,

    I want to convert from yum to dnf, but as expected, this is turning into a nightmare. Tried to -y option:

    dnf_aixtoolbox.sh -y

    But it fails with:

    error: Failed dependencies:
            libpython3.7m.so is needed by (installed) python3-libdnf-0.39.1-32_51.ppc
            libpython3.7m.so is needed by (installed) python3-hawkey-0.39.1-32_51.ppc
            libpython3.7m.so is needed by (installed) python3-librepo-1.11.0-101.ppc
            /opt/freeware/bin/python3_32 is needed by (installed) python3-dnf-4.2.17-32_50.ppc
            /opt/freeware/bin/python3_32 is needed by (installed) dnf-4.2.17-32_50.ppc
            /opt/freeware/bin/python3_32 is needed by (installed) dnf-automatic-4.2.17-32_50.ppc
            dnf-data = 4.2.17-32_4 is needed by python3.9-dnf-4.2.17-32_4.noarch
            libdnf = 0.39.1-32_3 is needed by python3.9-hawkey-0.39.1-32_3.ppc
            libdnf = 0.39.1-32_3 is needed by python3.9-libdnf-0.39.1-32_3.ppc
            librepo = 1.11.0-32_2 is needed by python3.9-librepo-1.11.0-32_2.ppc

    Tried installing a package manually, but get:

    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/crypto.py", line 35, in <module>
        from gpg import Context
    ModuleNotFoundError: No module named 'gpg'
     
    During handling of the above exception, another exception occurred:
     
    Traceback (most recent call last):
      File "/opt/freeware/bin/yum", line 57, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 32, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 34, in <module>
        from dnf.db.history import SwdbInterface
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 28, in <module>
        from dnf.yum import misc
      File "/opt/freeware/lib/python3.7/site-packages/dnf/yum/misc.py", line 30, in <module>
        import dnf.crypto
      File "/opt/freeware/lib/python3.7/site-packages/dnf/crypto.py", line 38, in <module>
        import gpgme

    I'm not sure if a mess of Python versions (appears to have 2.7, 3.7, 3.8 & 3.9 installed) is causing this?

    Regards,

    Henrik Morsing



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

    #AIXOpenSource


  • 2.  RE: YUM to DNF migration

    Posted Thu September 28, 2023 11:02 AM

    Hi Henrik

    Can you paste the complete output of dnf script and also "rpm -qa" output ?



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



  • 3.  RE: YUM to DNF migration

    Posted Fri September 29, 2023 03:24 AM
    # /ansiblemnt/AIX/dnf_aixtoolbox.sh -y
    Attempting download of dnf_bundle_aix_71_72.tar ...
    Saving to 'dnf_bundle_aix_71_72.tar'...
    208 MB received in 20 seconds (10.4 MB/sec)
    /ansiblemnt/AIX/dnf_aixtoolbox.sh[216]: NSTALLP/ppc/rpm.rte:  not found
     
    Extracting dnf_bundle_aix_71_72.tar ...
    x ca-certificates-2023.2.60-0.aix7.1.ppc.rpm, 991206 bytes, 1936 tape blocks
    x dnf-4.2.17-32_4.aix7.1.noarch.rpm, 11135 bytes, 22 tape blocks
    x dnf-automatic-4.2.17-32_4.aix7.1.noarch.rpm, 12450 bytes, 25 tape blocks
    x dnf-data-4.2.17-32_4.aix7.1.noarch.rpm, 23693 bytes, 47 tape blocks
    x extra_list, 384 bytes, 1 tape blocks
    x install_dnf.sh, 13552 bytes, 27 tape blocks
    x libcomps-0.1.15-32_1.aix7.1.ppc.rpm, 1273688 bytes, 2488 tape blocks
    x libdnf-0.39.1-32_3.aix7.1.ppc.rpm, 15816971 bytes, 30893 tape blocks
    x libmodulemd-1.5.2-32_2.aix7.1.ppc.rpm, 3433754 bytes, 6707 tape blocks
    x librepo-1.11.0-32_2.aix7.1.ppc.rpm, 3653390 bytes, 7136 tape blocks
    x libsmartcols-2.34-32_1.aix7.1.ppc.rpm, 183412 bytes, 359 tape blocks
    x libsolv-0.7.9-32_3.aix7.1.ppc.rpm, 1533540 bytes, 2996 tape blocks
    x libzstd-1.4.4-32_1.aix7.1.ppc.rpm, 469194 bytes, 917 tape blocks
    x p11-kit-0.23.22-0.aix7.1.ppc.rpm, 2148539 bytes, 4197 tape blocks
    x p11-kit-tools-0.23.22-0.aix7.1.ppc.rpm, 274086 bytes, 536 tape blocks
    x python3-3.9.16-0.aix7.1.ppc.rpm, 8920 bytes, 18 tape blocks
    x python3-dateutil-2.8.0-2.aix7.1.noarch.rpm, 6128 bytes, 12 tape blocks
    x python3-devel-3.9.16-0.aix7.1.ppc.rpm, 7699 bytes, 16 tape blocks
    x python3-dnf-4.2.17-32_4.aix7.1.noarch.rpm, 7598 bytes, 15 tape blocks
    x python3-dnf-plugin-migrate-4.0.16-32_2.aix7.1.noarch.rpm, 6568 bytes, 13 tape blocks
    x python3-dnf-plugins-core-4.0.16-32_2.aix7.1.noarch.rpm, 6776 bytes, 14 tape blocks
    x python3-gpg-1.13.1-32_3.aix7.1.ppc.rpm, 7040 bytes, 14 tape blocks
    x python3-hawkey-0.39.1-32_3.aix7.1.ppc.rpm, 23264 bytes, 46 tape blocks
    x python3-idle-3.9.16-0.aix7.1.ppc.rpm, 7283 bytes, 15 tape blocks
    x python3-libcomps-0.1.15-32_1.aix7.1.ppc.rpm, 13360 bytes, 27 tape blocks
    x python3-libdnf-0.39.1-32_3.aix7.1.ppc.rpm, 23264 bytes, 46 tape blocks
    x python3-librepo-1.11.0-32_2.aix7.1.ppc.rpm, 12860 bytes, 26 tape blocks
    x python3-six-1.13.0-2.aix7.1.noarch.rpm, 5820 bytes, 12 tape blocks
    x python3-test-3.9.16-0.aix7.1.ppc.rpm, 6228 bytes, 13 tape blocks
    x python3-tkinter-3.9.16-0.aix7.1.ppc.rpm, 6120 bytes, 12 tape blocks
    x python3.9-3.9.16-0.aix7.1.ppc.rpm, 56782290 bytes, 110903 tape blocks
    x python3.9-dateutil-2.8.0-2.aix7.1.noarch.rpm, 310485 bytes, 607 tape blocks
    x python3.9-devel-3.9.16-0.aix7.1.ppc.rpm, 19947643 bytes, 38961 tape blocks
    x python3.9-dnf-4.2.17-32_4.aix7.1.noarch.rpm, 196779 bytes, 385 tape blocks
    x python3.9-dnf-plugin-migrate-4.0.16-32_2.aix7.1.noarch.rpm, 8242 bytes, 17 tape blocks
    x python3.9-dnf-plugins-core-4.0.16-32_2.aix7.1.noarch.rpm, 33639 bytes, 66 tape blocks
    x python3.9-gpg-1.13.1-32_3.aix7.1.ppc.rpm, 1192531 bytes, 2330 tape blocks
    x python3.9-hawkey-0.39.1-32_3.aix7.1.ppc.rpm, 3116653 bytes, 6088 tape blocks
    x python3.9-idle-3.9.16-0.aix7.1.ppc.rpm, 2328852 bytes, 4549 tape blocks
    x python3.9-libcomps-0.1.15-32_1.aix7.1.ppc.rpm, 1049812 bytes, 2051 tape blocks
    x python3.9-libdnf-0.39.1-32_3.aix7.1.ppc.rpm, 22550948 bytes, 44045 tape blocks
    x python3.9-librepo-1.11.0-32_2.aix7.1.ppc.rpm, 2293000 bytes, 4479 tape blocks
    x python3.9-six-1.13.0-2.aix7.1.noarch.rpm, 45630 bytes, 90 tape blocks
    x python3.9-test-3.9.16-0.aix7.1.ppc.rpm, 33159212 bytes, 64765 tape blocks
    x python3.9-tkinter-3.9.16-0.aix7.1.ppc.rpm, 1162787 bytes, 2272 tape blocks
    x rpm-python3-4.15.1-32_2.aix7.1.ppc.rpm, 9496 bytes, 19 tape blocks
    x rpm-python3.9-4.15.1-32_2.aix7.1.ppc.rpm, 98982 bytes, 194 tape blocks
    x rpm.rte, 43051008 bytes, 84084 tape blocks
    x yum-4.2.17-32_4.aix7.1.noarch.rpm, 8634 bytes, 17 tape blocks
    x zchunk-1.1.4-32_2.aix7.1.ppc.rpm, 554294 bytes, 1083 tape blocks
    x zchunk-devel-1.1.4-32_2.aix7.1.ppc.rpm, 19256 bytes, 38 tape blocks
    x zchunk-libs-1.1.4-32_2.aix7.1.ppc.rpm, 534032 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.1011     Already installed
     
     
     
    Checking whether any of the rpms from dnf_bundle are already installed...
    Takes couple of minutes to process.
     
    ca-certificates-2021.2.52-3.ppc will be updated to ca-certificates-2023.2.60-0
    Skipping dnf-4.2.17-32_4 as higher version dnf-4.2.17-32_50.ppc is installed.
    Skipping dnf-automatic-4.2.17-32_4 as higher version dnf-automatic-4.2.17-32_50.ppc is installed.
    Skipping dnf-data-4.2.17-32_4 as higher version dnf-data-4.2.17-32_50.ppc is installed.
    libcomps-0.1.11-101.ppc will be updated to libcomps-0.1.15-32_1
    Skipping libdnf-0.39.1-32_3 as higher version libdnf-0.39.1-32_51.ppc is installed.
    Skipping libmodulemd-1.5.2-32_2 as higher version libmodulemd-1.5.2-100.ppc is installed.
    Skipping librepo-1.11.0-32_2 as higher version librepo-1.11.0-101.ppc is installed.
    Skipping libsmartcols-2.34-32_1 as higher version libsmartcols-2.34-100.ppc is installed.
    Skipping libsolv-0.7.9-32_3 as higher version libsolv-0.7.9-32_51.ppc is installed.
    Skipping libzstd-1.4.4-32_1 as higher version libzstd-1.5.2-1.ppc is installed.
    Skipping p11-kit-0.23.22-0 as higher version p11-kit-0.23.22-1.ppc is installed.
    Skipping p11-kit-tools-0.23.22-0 as higher version p11-kit-tools-0.23.22-1.ppc is installed.
    python3-3.7.15-2.ppc will be updated to python3-3.9.16-0
    Skipping python3-dnf-4.2.17-32_4 as higher version python3-dnf-4.2.17-32_50.ppc is installed.
    python3-gpg-1.13.1-32_3 will be installed
    Skipping python3-hawkey-0.39.1-32_3 as higher version python3-hawkey-0.39.1-32_51.ppc is installed.
    python3-libcomps-0.1.11-101.ppc will be updated to python3-libcomps-0.1.15-32_1
    Skipping python3-libdnf-0.39.1-32_3 as higher version python3-libdnf-0.39.1-32_51.ppc is installed.
    Skipping python3-librepo-1.11.0-32_2 as higher version python3-librepo-1.11.0-101.ppc is installed.
    Skipping python3.9-3.9.16-0 as higher version python3.9-3.9.17-1.ppc is installed.
    python3.9-dnf-4.2.17-32_4 will be installed
    python3.9-gpg-1.13.1-32_3 will be installed
    python3.9-hawkey-0.39.1-32_3 will be installed
    python3.9-libcomps-0.1.15-32_1 will be installed
    python3.9-libdnf-0.39.1-32_3 will be installed
    python3.9-librepo-1.11.0-32_2 will be installed
    rpm-python3-4.15.1-32_1.ppc will be updated to rpm-python3-4.15.1-32_2
    rpm-python3.9-4.15.1-32_2 will be installed
    Skipping zchunk-libs-1.1.4-32_2 as higher version zchunk-libs-1.1.4-102.ppc is installed.
     
    Installing the packages...
     
    error: Failed dependencies:
            libpython3.7m.so is needed by (installed) python3-libdnf-0.39.1-32_51.ppc
            libpython3.7m.so is needed by (installed) python3-hawkey-0.39.1-32_51.ppc
            libpython3.7m.so is needed by (installed) python3-librepo-1.11.0-101.ppc
            /opt/freeware/bin/python3_32 is needed by (installed) python3-dnf-4.2.17-32_50.ppc
            /opt/freeware/bin/python3_32 is needed by (installed) dnf-4.2.17-32_50.ppc
            /opt/freeware/bin/python3_32 is needed by (installed) dnf-automatic-4.2.17-32_50.ppc
            dnf-data = 4.2.17-32_4 is needed by python3.9-dnf-4.2.17-32_4.noarch
            libdnf = 0.39.1-32_3 is needed by python3.9-hawkey-0.39.1-32_3.ppc
            libdnf = 0.39.1-32_3 is needed by python3.9-libdnf-0.39.1-32_3.ppc
            librepo = 1.11.0-32_2 is needed by python3.9-librepo-1.11.0-32_2.ppc
     
    dnf installation failed.
    If the failure was due to a space issue, increase the size of /opt and re-run script again.
    Another reason for failure could be mixing of Toolbox packages and packages from other sources.
     
    You can try installing the downloaded dnf packages from /tmp/dnf-20230929082211 manually.

    # rpm -qa
    findutils-4.6.0-1.ppc
    xz-libs-5.2.5-1.ppc
    zip-3.0-4.ppc
    sudo-1.9.5p2-1.ppc
    info-6.7-1.ppc
    p11-kit-tools-0.23.22-1.ppc
    readline-8.1-1.ppc
    pcre-8.44-2.ppc
    pkg-config-0.29.2-2.ppc
    rpm-python3-4.15.1-32_1.ppc
    libgcc8-8.3.0-6.ppc
    mpfr-4.1.0-1.ppc
    sqlite-3.39.3-1.ppc
    libmpc-1.2.1-1.ppc
    libffi-3.4.2-1.ppc
    check-0.13.0-1.ppc
    libiconv-1.17-1.ppc
    gettext-0.21-2.ppc
    libassuan-2.5.5-1.ppc
    gcc8-cpp-8.3.0-6.ppc
    libgcrypt-1.9.4-1.ppc
    gcc8-c++-8.3.0-6.ppc
    gdbm-1.23-1.ppc
    grep-3.7-1.ppc
    libcomps-0.1.11-101.ppc
    gnutls-3.7.2-1.ppc
    libyaml-0.2.5-1.ppc
    npth-1.5-1.ppc
    dnf-data-4.2.17-32_50.ppc
    libsolv-0.7.9-32_51.ppc
    gpgme-1.13.1-100.ppc
    python3-dnf-4.2.17-32_50.ppc
    dnf-automatic-4.2.17-32_50.ppc
    gzip-1.12-3.ppc
    wget-1.21.2-1.ppc
    cyrus-sasl-devel-2.1.28-1.ppc
    vim-common-9.0.0325-1.ppc
    libgcc10-10.3.0-6.ppc
    zlib-1.2.13-1.ppc
    python3-3.7.15-2.ppc
    libstdc++-10-2.ppc
    gcc10-10.3.0-6.ppc
    libssh2-devel-1.10.0-2.ppc
    gcc-cpp-10-2.ppc
    krb5-libs-1.18.5-2.ppc
    curl-7.85.0-2.ppc
    librepo-1.11.0-101.ppc
    python3-libdnf-0.39.1-32_51.ppc
    libgomp-10-2.ppc
    python3-librepo-1.11.0-101.ppc
    gcc-c++-10-2.ppc
    rsync-3.2.7-1.ppc
    python-2.7.18-4.ppc
    oniguruma-6.9.6-1.ppc
    perl-5.34.1-1.ppc
    git-core-doc-2.38.3-1.noarch
    expat-2.5.0-1.ppc
    python3.9-certifi-2019.9.11-2.noarch
    python3.9-idna-2.8-2.noarch
    python3.9-requests-2.27.1-2.noarch
    python-requests-2.4.3-1.noarch
    libidn-1.33-1.ppc
    unzip-6.0-6.ppc
    coreutils-64bit-8.31-1.ppc
    libidn2-2.2.0-1.ppc
    lsof-4.91-1.ppc
    bzip2-1.0.8-2.ppc
    sed-4.8-1.ppc
    libtasn1-4.16.0-1.ppc
    libunistring-0.9.10-1.ppc
    db-5.3.28-1.ppc
    p11-kit-0.23.22-1.ppc
    glib2-2.56.1-3.ppc
    readline-devel-8.1-1.ppc
    tar-1.33-1.ppc
    libstdc++8-8.3.0-6.ppc
    gmp-6.2.1-1.ppc
    ncurses-6.3-1.ppc
    libzstd-1.5.2-1.ppc
    json-c-0.15-2.ppc
    libstdc++8-devel-8.3.0-6.ppc
    cyrus-sasl-2.1.28-1.ppc
    libgomp8-8.3.0-6.ppc
    libxml2-2.10.2-1.ppc
    libtextstyle-0.21-2.ppc
    libgpg-error-1.45-1.ppc
    libsmartcols-2.34-100.ppc
    gcc8-8.3.0-6.ppc
    pinentry-1.0.0-1.ppc
    python3-libcomps-0.1.11-101.ppc
    nettle-3.7.3-1.ppc
    libnghttp2-1.46.0-1.ppc
    libmodulemd-1.5.2-100.ppc
    libsodium-1.0.18-1.ppc
    ca-certificates-2021.2.52-3.ppc
    gnupg2-2.2.35-1.ppc
    dnf-4.2.17-32_50.ppc
    vim-minimal-9.0.0325-1.ppc
    bash-5.1.16-1.ppc
    lz4-1.9.3-1.ppc
    less-598-1.ppc
    libgcc-10-2.ppc
    libstdc++10-10.3.0-6.ppc
    libstdc++10-devel-10.3.0-6.ppc
    gcc10-cpp-10.3.0-6.ppc
    libssh2-1.10.0-2.ppc
    gcc10-c++-10.3.0-6.ppc
    gcc-10-2.ppc
    openldap-2.4.58-4.ppc
    zchunk-libs-1.1.4-102.ppc
    libdnf-0.39.1-32_51.ppc
    libgomp10-10.3.0-6.ppc
    python3-hawkey-0.39.1-32_51.ppc
    curl-devel-7.85.0-2.ppc
    libstdc++-devel-10-2.ppc
    libksba-1.6.2-1.ppc
    popt-1.18-1.ppc
    fio-3.27-1.ppc
    jq-1.6-1.ppc
    git-core-2.38.3-1.ppc
    git-2.38.3-1.ppc
    python3.9-3.9.17-1.ppc
    python3.9-charset-normalizer-2.0.12-2.noarch
    python3.9-urllib3-1.26.7-2.noarch
    expat-devel-2.5.0-1.ppc
    AIX-rpm-7.2.5.203-29.ppc



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



  • 4.  RE: YUM to DNF migration

    Posted Fri September 29, 2023 04:56 AM

    Hi Henrik,

    This is not YUM to DNF migration issue as you already have dnf installed.

    The right steps here is to run "dnf update" which will update current DNF to latest available versions from the AIX Toolbox.

    Here no need to freshly install DNF from the dnf bundle.

    Are you seeing any issue when you run "dnf update" ?



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



  • 5.  RE: YUM to DNF migration

    Posted Fri September 29, 2023 05:58 AM

    Hi Sangamesh,

    # dnf update
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/crypto.py", line 35, in <module>
        from gpg import Context
    ModuleNotFoundError: No module named 'gpg'
     
    During handling of the above exception, another exception occurred:
     
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 57, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 32, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 34, in <module>
        from dnf.db.history import SwdbInterface
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 28, in <module>
        from dnf.yum import misc
      File "/opt/freeware/lib/python3.7/site-packages/dnf/yum/misc.py", line 30, in <module>
        import dnf.crypto
      File "/opt/freeware/lib/python3.7/site-packages/dnf/crypto.py", line 38, in <module>
        import gpgme
    ModuleNotFoundError: No module named 'gpgme'

    I tried installing them manually, but failed.

    Regards,

    Henrik Morsing



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



  • 6.  RE: YUM to DNF migration

    Posted Fri September 29, 2023 06:45 AM
    Edited by SANGAMESH MALLAYYA Fri September 29, 2023 06:45 AM

    Hi Henrik,

    You are missing https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gpgme/python3-gpg-1.13.1-100.aix7.1.ppc.rpm

    Have you tried installing this rpm manually ?

    Not sure how this got deleted in your environment as this is required for DNF to run.



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



  • 7.  RE: YUM to DNF migration

    Posted Fri September 29, 2023 08:51 AM
    # rpm -i python3.9-gpg-1.13.1-32_3.aix7.1.ppc.rpm
    root@da1017 /tmp/dnf-20230929082211 # dnf update
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/dnf/crypto.py", line 35, in <module>
        from gpg import Context
    ModuleNotFoundError: No module named 'gpg'
     
    During handling of the above exception, another exception occurred:
     
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 57, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 32, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 34, in <module>
        from dnf.db.history import SwdbInterface
      File "/opt/freeware/lib/python3.7/site-packages/dnf/db/history.py", line 28, in <module>
        from dnf.yum import misc
      File "/opt/freeware/lib/python3.7/site-packages/dnf/yum/misc.py", line 30, in <module>
        import dnf.crypto
      File "/opt/freeware/lib/python3.7/site-packages/dnf/crypto.py", line 38, in <module>
        import gpgme
    ModuleNotFoundError: No module named 'gpgme'
    # rpm -q python3.9-gpg
    python3.9-gpg-1.13.1-32_3.ppc



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



  • 8.  RE: YUM to DNF migration

    Posted Fri September 29, 2023 08:57 AM

    Hi Henrik,

    Your DNF is still based on python3.7.

    So, you need to install the python3-gpg for which I sent the link and which is based on python3.7.

    Once you are able to make DNF work, dnf update would be able to update to python3.9 based DNF.



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



  • 9.  RE: YUM to DNF migration

    Posted Fri September 29, 2023 09:50 AM

    Wow - thanks, that worked. 

    Thanks a lot!



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



  • 10.  RE: YUM to DNF migration

    Posted Fri September 29, 2023 05:14 AM

    Just a wired idea, which openssl version is installed, openssl.base should be 1.1.1.xxxx?



    ------------------------------
    Robert Kampermann
    ------------------------------



  • 11.  RE: YUM to DNF migration

    Posted Fri September 29, 2023 05:59 AM

    Hi Robert,

    My DNF upgrade script updates openssl, but on this system, it never gets that far.

    Regards,

    Henrik Morsing



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