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.  Update yum to dnf, fails when migrating yum db.

    Posted Tue June 10, 2025 12:03 AM

    Hi there,

    I've updated yum to dnf on an AIX LPAR (7200-05-09-2446) and it went ok until attempting to migrate the yum db. Firstly there was an issue with libcrypto.so.1.1, which it was looking for in /opt/freeware/lib/libcrypto.a, which doesn't have libcrypto.so.1.1. Turned out /usr/lib/libcrypto.a has the correct one, so I updated my LIBPATH (there wasn't one initially in my environment) to /usrlib:/opt/freeware/lib. Then I got further, but now I get this:

    root:e360_test:/tmp/dnf:# dnf migrate
    AIX generic repository                                                                                           123 kB/s | 8.4 MB     01:10
    AIX noarch repository                                                                                            594 kB/s | 3.5 MB     00:06
    AIX 7.2 specific repository                                                                                      339 kB/s | 1.3 MB     00:04
    Last metadata expiration check: 0:00:03 ago on Tue Jun 10 12:21:36 AEST 2025.
    Migrating history data...
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        main.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 191, in user_main
        errcode = main(args)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 98, in _main
        return cli_run(cli, base)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 114, in cli_run
        cli.run()
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/cli.py", line 1162, in run
        return self.command.run()
      File "/opt/freeware/lib/python3.9/site-packages/dnf-plugins/migrate.py", line 60, in run
        swdb.transform(input_dir)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/db/history.py", line 298, in transform
        transformer.transform()
      File "/opt/freeware/lib/python3.9/site-packages/libdnf/transaction.py", line 935, in transform
        return _transaction.Transformer_transform(self)
    RuntimeError: Statement: no such table: pkg_yumdb in

            SELECT
                yumdb_key as key,
                yumdb_val as value
            FROM
                pkg_yumdb
            WHERE
                pkgtupid=?
                and key IN ('reason', 'from_repo')

    root:e360_test:/tmp/dnf:#

    I tried adding some extra paths to LIBPATH (/usr/lib:/usr/lib64:/opt/freeware/lib:/opt/freeware/lib64:/opt/freeware/libdnfdeps), but if I try running it again, it tells me there's already a DNF db:

    root:e360_test:/tmp/dnf:# dnf migrate
    Last metadata expiration check: 1:28:23 ago on Tue Jun 10 12:21:36 AEST 2025.
    Migrating history data...
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 58, in <module>
        main.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 191, in user_main
        errcode = main(args)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 98, in _main
        return cli_run(cli, base)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 114, in cli_run
        cli.run()
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/cli.py", line 1162, in run
        return self.command.run()
      File "/opt/freeware/lib/python3.9/site-packages/dnf-plugins/migrate.py", line 60, in run
        swdb.transform(input_dir)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/db/history.py", line 298, in transform
        transformer.transform()
      File "/opt/freeware/lib/python3.9/site-packages/libdnf/transaction.py", line 935, in transform
        return _transaction.Transformer_transform(self)
    RuntimeError: DB file already exists:/var/lib/dnf/history.sqlite
    root:e360_test:/tmp/dnf:#

    Not sure where to go from here. The dnf package I used was the v8 one (dnf_bundle_aix_71_72_v8.tar). Install went fine up until it tried to run dnf migrate.

    Cheers,

    Peter



    ------------------------------
    petermc 9BBD
    andersenIT
    Brisbane
    ------------------------------


  • 2.  RE: Update yum to dnf, fails when migrating yum db.

    Posted Tue June 10, 2025 09:26 AM

    Please share the output of "rpm -qa"



    ------------------------------
    RESHMA KUMAR
    ------------------------------



  • 3.  RE: Update yum to dnf, fails when migrating yum db.

    Posted Tue June 10, 2025 07:13 PM

    Hi Reshma,

    Here it is:

    root:e360_test:/:# rpm -qa | sort
    AIX-rpm-7.2.5.208-26.ppc
    a2ps-4.13-2.ppc
    bash-4.2-3.ppc
    bzip2-1.0.6-2.ppc
    ca-certificates-2023.2.60-0.ppc
    coreutils-8.29-4.ppc
    cups-2.2.3-3.ppc
    cups-libs-2.2.3-3.ppc
    curl-7.52.1-1.ppc
    cyrus-sasl-2.1.26-3.ppc
    db-4.8.24-3.ppc
    dbus-1.12.16-1.ppc
    dnf-4.2.17-32_5.noarch
    dnf-automatic-4.2.17-32_5.noarch
    dnf-data-4.2.17-32_5.noarch
    elm-2.5.6-2.ppc
    expat-2.2.9-1.ppc
    expect-5.42.1-3.ppc
    gcc-4.2.0-3.ppc
    gcc-c++-4.2.0-3.ppc
    gdbm-1.8.3-5.ppc
    gettext-0.19.8.1-5.ppc
    glib2-2.56.1-2.ppc
    gmp-6.1.2-1.ppc
    gnupg2-2.2.35-0.ppc
    gnutls-3.6.7-2.ppc
    info-6.6-2.ppc
    libcomps-0.1.15-32_1.ppc
    libdnf-0.39.1-32_3.ppc
    libffi-3.2.1-3.ppc
    libgcc-8.3.0-2.ppc
    libiconv-1.14-22.ppc
    libjpeg-6b-6.ppc
    libjpeg-devel-6b-6.ppc
    libmodulemd-1.5.2-32_2.ppc
    libpng-1.2.32-2.ppc
    libpng-devel-1.2.32-2.ppc
    librepo-1.11.0-32_2.ppc
    libsmartcols-2.34-32_1.ppc
    libsmbclient-4.10.13-1.ppc
    libsolv-0.7.9-32_3.ppc
    libstdc++-8.3.0-2.ppc
    libstdc++-devel-4.2.0-3.ppc
    libtasn1-4.9-2.ppc
    libunistring-0.9.9-2.ppc
    libxml2-2.9.9-1.ppc
    libzstd-1.4.4-32_1.ppc
    lpar2rrd-agent-7.90-1.ppc
    make-3.80-1.ppc
    metamail-2.7-2.ppc
    mutt-1.4.2.1-1.ppc
    ncurses-6.2-1.ppc
    nettle-3.4.1-1.ppc
    openldap-2.4.48-1.ppc
    openssl-1.1.0f-1withsslv2.ppc
    p11-kit-0.23.22-0.ppc
    p11-kit-tools-0.23.22-0.ppc
    pcre-8.39-1.ppc
    pysqlite-1.1.7-2.ppc
    python-2.7.10-1.ppc
    python-devel-2.7.10-1.ppc
    python-iniparse-0.4-1.noarch
    python-pycurl-7.19.3-1.ppc
    python-tools-2.7.10-1.ppc
    python-urlgrabber-3.10.1-1.noarch
    python3-3.9.16-0.ppc
    python3-dateutil-2.8.0-2.noarch
    python3-dnf-4.2.17-32_5.noarch
    python3-dnf-plugin-migrate-4.0.16-32_2.noarch
    python3-dnf-plugins-core-4.0.16-32_2.noarch
    python3-gpg-1.13.1-32_3.ppc
    python3-hawkey-0.39.1-32_3.ppc
    python3-libcomps-0.1.15-32_1.ppc
    python3-libdnf-0.39.1-32_3.ppc
    python3-librepo-1.11.0-32_2.ppc
    python3-six-1.13.0-2.noarch
    python3.9-3.9.16-0.ppc
    python3.9-dateutil-2.8.0-2.noarch
    python3.9-dnf-4.2.17-32_5.noarch
    python3.9-dnf-plugin-migrate-4.0.16-32_2.noarch
    python3.9-dnf-plugins-core-4.0.16-32_2.noarch
    python3.9-gpg-1.13.1-32_3.ppc
    python3.9-hawkey-0.39.1-32_3.ppc
    python3.9-libcomps-0.1.15-32_1.ppc
    python3.9-libdnf-0.39.1-32_3.ppc
    python3.9-librepo-1.11.0-32_2.ppc
    python3.9-six-1.13.0-2.noarch
    readline-8.0-2.ppc
    rpm-python3-4.15.1-32_2.ppc
    rpm-python3.9-4.15.1-32_2.ppc
    samba-4.10.13-1.ppc
    samba-client-4.10.13-1.ppc
    samba-common-4.10.13-1.ppc
    samba-devel-4.10.13-1.ppc
    samba-libs-4.10.13-1.ppc
    samba-winbind-4.10.13-1.ppc
    samba-winbind-clients-4.10.13-1.ppc
    sqlite-3.15.2-1.ppc
    sudo-1.6.9p23-2noldap.ppc
    tcl-8.4.7-3.ppc
    tk-8.4.7-3.ppc
    unzip-5.51-1.ppc
    wget-1.20.3-1.ppc
    xshield-monitoring-agent-25.1.7-1.ppc
    xz-libs-5.2.4-1.ppc
    yum-4.2.17-32_5.noarch
    yum-metadata-parser-1.1.4-2.ppc
    zchunk-libs-1.1.4-32_2.ppc
    zlib-1.2.11-1.ppc
    zlib-devel-1.2.3-4.ppc
    root:e360_test:/:#

    Thank you,

    Cheers,

    Peter



    ------------------------------
    petermc 9BBD
    andersenIT
    Brisbane
    ------------------------------