AIX Open Source

 View Only

DNF is now available on AIX Toolbox

By SANGAMESH MALLAYYA posted Fri May 28, 2021 12:20 PM

  

 

Introduction

dnf or dandified yum, the next-generation version of the Yellowdog Updater, Modified (yum) is now available on AIX Toolbox.

yum is python2 based package manager and python2 is already out of support from the community.

Hence, there was a need to move to a package manager which works with python3.

dnf or Dandified yum works with python3.

 

dnf roughly maintains CLI compatibility with yum and defines a strict API for extensions and plugins.

It has well documented APIs and uses a state-of-the-art (SAT)-based dependency solver etc.

 

Existing AIX Toolbox repositories created for yum works with dnf hence no changes needed in repository side.

 

Installing dnf

 

To setup and run dnf on AIX, one can use the dnf_aixtoolbox.sh script.

This script is similar to the yum.sh script which is for setting yum on AIX.

 

As mentioned, dnf uses the existing AIX Toolbox repositories, and while installing dnf conf file with required repositories are created.

Once dnf is installed no configuration change is required to use dnf.

 

Space and system requirements

Space requirement:

    300 MB /tmp free space

    460 MB /opt free space

 

dnf works on AIX 7.1 TL3 and higher versions.

Openssl 1.0.2.2001 and higher version needs to be installed.

 

 

Running dnf_aixtoolbox.sh script

 

# ./dnf_aixtoolbox.sh -?

Usage: dnf_aixtoolbox.sh <-d> <-y> <-n> -?

 

      -d    Install and setup dnf if yum is not installed.

      -y    Update yum3 to yum4(softlink to dnf).

            Use this option if want to redirect all yum commands to dnf.

            Existing yum-3.4.3 will be updated to yum-4.x.x(dnf)

      -n    Install dnf where both yum and dnf can coexist if yum is installed already.

            This is not a recommended option.

 

-d option:

     This option can be used if there is no yum is installed on the machine.

     This will setup dnf as the default package manger.

 

-y option:

     This is the most recommended option if yum is already installed.

     This option can be used in two situations.

  1. If yum is already installed and wants to update yum3 to yum4(dnf).

          All yum commands are dnf commands as yum will be just a soft link to dnf.

  1. If yum3(3.4.3) isn’t installed but still like to use yum command which are actually dnf commands.

 

-n option:

    This is not a recommended option.

 

    This option can be used if yum is already installed and wants to have dnf to be also at the same time.

    User needs to use yum or dnf commands accordingly.

    

    yum and dnf databases can’t be shared between them and can’t migrate yum database to dnf database

    if dnf database is already created by running some transactions.

    Whatever the transaction done with yum will exists in yum database and dnf transaction exists

    with dnf databases only.

 

With the option -y or -n dnf_aixtoolbox.sh script itself tries to run ‘dnf migrate’ to migrate yum database to dnf if

dnf was installed successfully.

 

NOTE:

       1.“dnf migrate” needs to be run as the first command before any of the dnf commands.

           Hence this has been taken care in the  dnf_aixtoolbox.sh script itself.

  1. Don’t run migrate if you have already setup dnf and some transactions are already made with dnf,

           as migrate won’t be able to take yum transactions and update those to the existing dnf databases.

 

 

Repository conf file and local repositories

 

dnf uses the repository conf file /opt/freeware/etc/dnf/dnf.conf.

This is similar to the /opt/freeware/etc/yum/yum.conf file of  yum.

 

When users migrate from yum3(3.4.3) to yum4 then.

  1. Existing yum.conf file is being used as dnf.conf with some of below default additional entries.

          cachedir=/var/cache/dnf

          keepcache=1

          debuglevel=2

          logfile=/var/log/dnf.log

          obsoletes=1

          plugins=1

          gpgcheck=1

          installonly_limit=3

          clean_requirements_on_remove=True

          best=True

          skip_if_unavailable=True

 

  1. dnf understands local repositories created in /opt/freeware/etc/yum/repos.d or /opt/freeware/etc/yum.repos.d.

          So, once after update from yum3(3.4.3) to yum4 we should be able to list local repository with dnf.

 

 

Migrate plugin

Migrate plugin is used to migrate yum history, yumdb & yum groups to dnf.

‘dnf migrate’ is the command which tries to migrate above 3 mentioned data to dnf.

 

If dnf_aixtoolbox.sh script is launched with either “-y” or “-n” option then ‘dnf migrate’ command is run after successful install of dnf and related packages.

This is required as running any dnf command creates the dnf history file.

So, migrate command needs to be run before creating dnf history file.

 

NOTE: 1. Migrating groups from yum to dnf has not been fully tested as AIX Toolbox repository

                 doesn’t provide any yum groups.      

           2.   Other plugins which are part of plugin core package aren’t tested yet.

                 These will mostly be tested during second quarter of 2021.

  

References

 

dnf all topic references

    https://dnf.readthedocs.io/en/latest/

 

dnf command reference

    https://dnf.readthedocs.io/en/latest/command_ref.html

 

Changes in dnf CLI compared to yum

    https://dnf.readthedocs.io/en/latest/cli_vs_yum.html

 

 

 

Sample outputs

 

With -d option and no yum is installed

 

# rpm -qa

unzip-6.0-3.ppc

tcl-8.4.7-3.ppc

grep-2.20-1.ppc

AIX-rpm-7.1.5.33-5.ppc

gettext-0.19.7-1.ppc

popt-1.16-3.ppc

tk-8.4.7-3.ppc

tar-1.14-2.ppc

expect-5.42.1-3.ppc

 

# ./dnf_aixtoolbox.sh -d

Attempting download of rpm.rte & dnf_bundle.tar ...

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

 

 

Extracting dnf_bundle.tar ...

x ca-certificates-2020.06.01-0.aix7.1.ppc.rpm, 952182 bytes, 1860 media blocks.

x dnf-4.2.17-1.aix7.1.noarch.rpm, 11139 bytes, 22 media blocks.

x dnf-automatic-4.2.17-1.aix7.1.noarch.rpm, 12442 bytes, 25 media blocks.

x dnf-data-4.2.17-1.aix7.1.noarch.rpm, 23534 bytes, 46 media blocks.

x extra_list, 212 bytes, 1 media blocks.

x libcomps-0.1.11-1.aix7.1.ppc.rpm, 1272902 bytes, 2487 media blocks.

x libdnf-0.39.1-1.aix7.1.ppc.rpm, 15809465 bytes, 30878 media blocks.

x libmodulemd-1.5.2-1.aix7.1.ppc.rpm, 3419469 bytes, 6679 media blocks.

x librepo-1.11.0-1.aix7.1.ppc.rpm, 3649914 bytes, 7129 media blocks.

x libsmartcols-2.34-1.aix7.1.ppc.rpm, 182903 bytes, 358 media blocks.

x libsolv-0.7.9-1.aix7.1.ppc.rpm, 1532976 bytes, 2995 media blocks.

x libzstd-1.4.4-1.aix7.1.ppc.rpm, 468764 bytes, 916 media blocks.

x p11-kit-0.23.16-0.aix7.1.ppc.rpm, 1047702 bytes, 2047 media blocks.

x p11-kit-tools-0.23.16-0.aix7.1.ppc.rpm, 39777 bytes, 78 media blocks.

x python3-3.7.9-0.aix7.1.ppc.rpm, 43168080 bytes, 84313 media blocks.

x python3-dateutil-2.8.0-1.aix6.1.noarch.rpm, 363137 bytes, 710 media blocks.

x python3-devel-3.7.9-0.aix7.1.ppc.rpm, 237244 bytes, 464 media blocks.

x python3-dnf-4.2.17-1.aix7.1.noarch.rpm, 197325 bytes, 386 media blocks.

x python3-dnf-plugin-migrate-4.0.16-1.aix7.1.noarch.rpm, 7965 bytes, 16 media blocks.

x python3-dnf-plugins-core-4.0.16-1.aix7.1.noarch.rpm, 49196 bytes, 97 media blocks.

x python3-docs-3.7.9-0.aix7.1.ppc.rpm, 2993180 bytes, 5847 media blocks.

x python3-gpgme-1.13.1-1.aix7.1.ppc.rpm, 681811 bytes, 1332 media blocks.

x python3-hawkey-0.39.1-1.aix7.1.ppc.rpm, 3113206 bytes, 6081 media blocks.

x python3-libcomps-0.1.11-1.aix7.1.ppc.rpm, 1020454 bytes, 1994 media blocks.

x python3-libdnf-0.39.1-1.aix7.1.ppc.rpm, 22549270 bytes, 44042 media blocks.

x python3-librepo-1.11.0-1.aix7.1.ppc.rpm, 2292512 bytes, 4478 media blocks.

x python3-six-1.13.0-1.aix6.1.noarch.rpm, 514483 bytes, 1005 media blocks.

x python3-test-3.7.9-0.aix7.1.ppc.rpm, 28383122 bytes, 55436 media blocks.

x python3-tools-3.7.9-0.aix7.1.ppc.rpm, 12734 bytes, 25 media blocks.

x rpm-python3-4.15.1-1_py3.aix7.1.ppc.rpm, 99260 bytes, 194 media blocks.

x yum-4.2.17-1.aix7.1.noarch.rpm, 8749 bytes, 18 media blocks.

x zchunk-1.1.4-1.aix7.1.ppc.rpm, 551935 bytes, 1078 media blocks.

x zchunk-devel-1.1.4-1.aix7.1.ppc.rpm, 19026 bytes, 38 media blocks.

x zchunk-libs-1.1.4-1.aix7.1.ppc.rpm, 533888 bytes, 1043 media blocks.

 

 

Checking whether any of the rpms from dnf_bundle are already installed...

Takes couple of minutes to process.

 

ca-certificates-2020.06.01-0 will be installed

dnf-4.2.17-1 will be installed

dnf-automatic-4.2.17-1 will be installed

dnf-data-4.2.17-1 will be installed

libcomps-0.1.11-1 will be installed

libdnf-0.39.1-1 will be installed

libmodulemd-1.5.2-1 will be installed

librepo-1.11.0-1 will be installed

libsmartcols-2.34-1 will be installed

libsolv-0.7.9-1 will be installed

libzstd-1.4.4-1 will be installed

p11-kit-0.23.16-0 will be installed

p11-kit-tools-0.23.16-0 will be installed

python3-3.7.9-0 will be installed

python3-dnf-4.2.17-1 will be installed

python3-gpgme-1.13.1-1 will be installed

python3-hawkey-0.39.1-1 will be installed

python3-libcomps-0.1.11-1 will be installed

python3-libdnf-0.39.1-1 will be installed

python3-librepo-1.11.0-1 will be installed

rpm-python3-4.15.1-1_py3 will be installed

zchunk-libs-1.1.4-1 will be installed

 

Installing the packages...

 

Verifying...                          ################################# [100%]

Preparing...                          ################################# [100%]

Updating / installing...

   1:python3-3.7.9-0                  ################################# [  5%]

   2:libzstd-1.4.4-1                  ################################# [  9%]

   3:libmodulemd-1.5.2-1              ################################# [ 14%]

   4:libsolv-0.7.9-1                  ################################# [ 18%]

   5:libsmartcols-2.34-1              ################################# [ 23%]

   6:zchunk-libs-1.1.4-1              ################################# [ 27%]

   7:librepo-1.11.0-1                 ################################# [ 32%]

   8:rpm-python3-4.15.1-1_py3         ################################# [ 36%]

   9:libdnf-0.39.1-1                  ################################# [ 41%]

  10:python3-libdnf-0.39.1-1          ################################# [ 45%]

  11:python3-hawkey-0.39.1-1          ################################# [ 50%]

  12:libcomps-0.1.11-1                ################################# [ 55%]

  13:python3-libcomps-0.1.11-1        ################################# [ 59%]

  14:python3-gpgme-1.13.1-1           ################################# [ 64%]

  15:p11-kit-0.23.16-0                ################################# [ 68%]

  16:p11-kit-tools-0.23.16-0          ################################# [ 73%]

  17:dnf-data-4.2.17-1                ################################# [ 77%]

  18:python3-dnf-4.2.17-1             ################################# [ 82%]

  19:dnf-4.2.17-1                     ################################# [ 86%]

  20:dnf-automatic-4.2.17-1           ################################# [ 91%]

  21:ca-certificates-2020.06.01-0     ################################# [ 95%]

  22:python3-librepo-1.11.0-1         ################################# [100%]

 

dnf installed successfully.

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

 

 

With -y option when yum is installed and migrate to yum4

 

# rpm -qa | sort

# rpm -qa | sort

AIX-rpm-7.1.5.33-5.ppc

bash-5.0.18-1.ppc

bzip2-1.0.8-2.ppc

ca-certificates-2020.06.01-1.ppc

curl-7.74.0-1.ppc

cyrus-sasl-2.1.26-3.ppc

db-5.3.28-1.ppc

expat-2.2.9-2.ppc

gdbm-1.18.1-1.ppc

gettext-0.20.2-1.ppc

glib2-2.56.1-3.ppc

info-6.6-2.ppc

krb5-libs-1.18.3-1.ppc

libffi-3.2.1-3.ppc

libgcc-8-1.ppc

libgcc8-8.3.0-4.ppc

libgomp-8-1.ppc

libgomp8-8.3.0-4.ppc

libiconv-1.16-1.ppc

libnghttp2-1.41.0-1.ppc

libssh2-1.9.0-1.ppc

libstdc++-8-1.ppc

libstdc++8-8.3.0-4.ppc

libtextstyle-0.20.2-1.ppc

libunistring-0.9.10-1.ppc

libxml2-2.9.10-1.ppc

ncurses-6.2-2.ppc

openldap-2.4.56-1.ppc

p11-kit-0.23.16-1.ppc

p11-kit-tools-0.23.16-1.ppc

pysqlite-2.8.3-2.ppc

python-2.7.18-1.ppc

python-devel-2.7.18-1.ppc

python-iniparse-0.4-1.noarch

python-pycurl-7.43.0-1.ppc

python-tools-2.7.18-1.ppc

python-urlgrabber-3.10.1-1.noarch

readline-8.0-2.ppc

sqlite-3.32.3-1.ppc

xz-libs-5.2.5-1.ppc

yum-3.4.3-8.noarch

yum-metadata-parser-1.1.4-2.ppc

zlib-1.2.11-2.ppc

 

# ./dnf_aixtoolbox.sh -y

Attempting download of rpm.rte & dnf_bundle.tar ...

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

 

 

Extracting dnf_bundle.tar ...

x ca-certificates-2020.06.01-0.aix7.1.ppc.rpm, 952182 bytes, 1860 media blocks.

x dnf-4.2.17-1.aix7.1.noarch.rpm, 11139 bytes, 22 media blocks.

x dnf-automatic-4.2.17-1.aix7.1.noarch.rpm, 12442 bytes, 25 media blocks.

x dnf-data-4.2.17-1.aix7.1.noarch.rpm, 23534 bytes, 46 media blocks.

x extra_list, 212 bytes, 1 media blocks.

x libcomps-0.1.11-1.aix7.1.ppc.rpm, 1272902 bytes, 2487 media blocks.

x libdnf-0.39.1-1.aix7.1.ppc.rpm, 15809465 bytes, 30878 media blocks.

x libmodulemd-1.5.2-1.aix7.1.ppc.rpm, 3419469 bytes, 6679 media blocks.

x librepo-1.11.0-1.aix7.1.ppc.rpm, 3649914 bytes, 7129 media blocks.

x libsmartcols-2.34-1.aix7.1.ppc.rpm, 182903 bytes, 358 media blocks.

x libsolv-0.7.9-1.aix7.1.ppc.rpm, 1532976 bytes, 2995 media blocks.

x libzstd-1.4.4-1.aix7.1.ppc.rpm, 468764 bytes, 916 media blocks.

x p11-kit-0.23.16-0.aix7.1.ppc.rpm, 1047702 bytes, 2047 media blocks.

x p11-kit-tools-0.23.16-0.aix7.1.ppc.rpm, 39777 bytes, 78 media blocks.

x python3-3.7.9-0.aix7.1.ppc.rpm, 43168080 bytes, 84313 media blocks.

x python3-dateutil-2.8.0-1.aix6.1.noarch.rpm, 363137 bytes, 710 media blocks.

x python3-devel-3.7.9-0.aix7.1.ppc.rpm, 237244 bytes, 464 media blocks.

x python3-dnf-4.2.17-1.aix7.1.noarch.rpm, 197325 bytes, 386 media blocks.

x python3-dnf-plugin-migrate-4.0.16-1.aix7.1.noarch.rpm, 7965 bytes, 16 media blocks.

x python3-dnf-plugins-core-4.0.16-1.aix7.1.noarch.rpm, 49196 bytes, 97 media blocks.

x python3-docs-3.7.9-0.aix7.1.ppc.rpm, 2993180 bytes, 5847 media blocks.

x python3-gpgme-1.13.1-1.aix7.1.ppc.rpm, 681811 bytes, 1332 media blocks.

x python3-hawkey-0.39.1-1.aix7.1.ppc.rpm, 3113206 bytes, 6081 media blocks.

x python3-libcomps-0.1.11-1.aix7.1.ppc.rpm, 1020454 bytes, 1994 media blocks.

x python3-libdnf-0.39.1-1.aix7.1.ppc.rpm, 22549270 bytes, 44042 media blocks.

x python3-librepo-1.11.0-1.aix7.1.ppc.rpm, 2292512 bytes, 4478 media blocks.

x python3-six-1.13.0-1.aix6.1.noarch.rpm, 514483 bytes, 1005 media blocks.

x python3-test-3.7.9-0.aix7.1.ppc.rpm, 28383122 bytes, 55436 media blocks.

x python3-tools-3.7.9-0.aix7.1.ppc.rpm, 12734 bytes, 25 media blocks.

x rpm-python3-4.15.1-1_py3.aix7.1.ppc.rpm, 99260 bytes, 194 media blocks.

x yum-4.2.17-1.aix7.1.noarch.rpm, 8749 bytes, 18 media blocks.

x zchunk-1.1.4-1.aix7.1.ppc.rpm, 551935 bytes, 1078 media blocks.

x zchunk-devel-1.1.4-1.aix7.1.ppc.rpm, 19026 bytes, 38 media blocks.

x zchunk-libs-1.1.4-1.aix7.1.ppc.rpm, 533888 bytes, 1043 media blocks.

 

 

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-2020.06.01-1.ppc is installed.

dnf-4.2.17-1 will be installed

dnf-automatic-4.2.17-1 will be installed

dnf-data-4.2.17-1 will be installed

libcomps-0.1.11-1 will be installed

libdnf-0.39.1-1 will be installed

libmodulemd-1.5.2-1 will be installed

librepo-1.11.0-1 will be installed

libsmartcols-2.34-1 will be installed

libsolv-0.7.9-1 will be installed

libzstd-1.4.4-1 will be installed

Skipping p11-kit-0.23.16-0 as higher version p11-kit-0.23.16-1.ppc is installed.

Skipping p11-kit-tools-0.23.16-0 as higher version p11-kit-tools-0.23.16-1.ppc is installed.

python3-3.7.9-0 will be installed

python3-dateutil-2.8.0-1 will be installed

python3-dnf-4.2.17-1 will be installed

python3-dnf-plugin-migrate-4.0.16-1 will be installed

python3-dnf-plugins-core-4.0.16-1 will be installed

python3-gpgme-1.13.1-1 will be installed

python3-hawkey-0.39.1-1 will be installed

python3-libcomps-0.1.11-1 will be installed

python3-libdnf-0.39.1-1 will be installed

python3-librepo-1.11.0-1 will be installed

python3-six-1.13.0-1 will be installed

rpm-python3-4.15.1-1_py3 will be installed

yum-3.4.3-8.noarch will be updated to yum-4.2.17-1

zchunk-libs-1.1.4-1 will be installed

 

Installing the packages...

 

Verifying...                          ################################# [100%]

Preparing...                          ################################# [100%]

Updating / installing...

   1:python3-3.7.9-0                  ################################# [  4%]

   2:libzstd-1.4.4-1                  ################################# [  8%]

   3:libmodulemd-1.5.2-1              ################################# [ 12%]

   4:libsolv-0.7.9-1                  ################################# [ 16%]

   5:libsmartcols-2.34-1              ################################# [ 20%]

   6:zchunk-libs-1.1.4-1              ################################# [ 24%]

   7:librepo-1.11.0-1                 ################################# [ 28%]

   8:rpm-python3-4.15.1-1_py3         ################################# [ 32%]

   9:libdnf-0.39.1-1                  ################################# [ 36%]

  10:python3-libdnf-0.39.1-1          ################################# [ 40%]

  11:python3-hawkey-0.39.1-1          ################################# [ 44%]

  12:dnf-data-4.2.17-1                ################################# [ 48%]

  13:libcomps-0.1.11-1                ################################# [ 52%]

  14:python3-libcomps-0.1.11-1        ################################# [ 56%]

  15:python3-six-1.13.0-1             ################################# [ 60%]

  16:python3-dateutil-2.8.0-1         ################################# [ 64%]

  17:python3-gpgme-1.13.1-1           ################################# [ 68%]

  18:python3-dnf-4.2.17-1             ################################# [ 72%]

  19:dnf-4.2.17-1                     ################################# [ 76%]

  20:python3-dnf-plugins-core-4.0.16-1################################# [ 80%]

  21:python3-dnf-plugin-migrate-4.0.16################################# [ 84%]

  22:dnf-automatic-4.2.17-1           ################################# [ 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

  23:yum-4.2.17-1                     ################################# [ 92%]

  24:python3-librepo-1.11.0-1         ################################# [ 96%]

Cleaning up / removing...

  25: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.

 

Trying to run 'dnf migrate' to migrate yum database to dnf.

AIX generic repository                                                                                                                                                                      197 kB/s | 5.4 MB     00:28

AIX noarch repository                                                                                                                                                                       254 kB/s | 886 kB     00:03

AIX 7.1 specific repository                                                                                                                                                                210 kB/s | 872 kB     00:04

Last metadata expiration check: 0:00:05 ago on Fri Apr 23 04:45:30 CDT 2021.

Migrating history data...

 

With -n option when yum is installed

 

# rpm -qa | sort

AIX-rpm-7.1.5.33-5.ppc

bash-5.0.18-1.ppc

bzip2-1.0.8-2.ppc

ca-certificates-2020.06.01-1.ppc

curl-7.74.0-1.ppc

cyrus-sasl-2.1.26-3.ppc

db-5.3.28-1.ppc

expat-2.2.9-2.ppc

gdbm-1.18.1-1.ppc

gettext-0.20.2-1.ppc

glib2-2.56.1-3.ppc

info-6.6-2.ppc

krb5-libs-1.18.3-1.ppc

libffi-3.2.1-3.ppc

libgcc-8-1.ppc

libgcc8-8.3.0-4.ppc

libgomp-8-1.ppc

libgomp8-8.3.0-4.ppc

libiconv-1.16-1.ppc

libnghttp2-1.41.0-1.ppc

libssh2-1.9.0-1.ppc

libstdc++-8-1.ppc

libstdc++8-8.3.0-4.ppc

libtextstyle-0.20.2-1.ppc

libunistring-0.9.10-1.ppc

libxml2-2.9.10-1.ppc

ncurses-6.2-2.ppc

openldap-2.4.56-1.ppc

p11-kit-0.23.16-1.ppc

p11-kit-tools-0.23.16-1.ppc

pysqlite-2.8.3-2.ppc

python-2.7.18-1.ppc

python-devel-2.7.18-1.ppc

python-iniparse-0.4-1.noarch

python-pycurl-7.43.0-1.ppc

python-tools-2.7.18-1.ppc

python-urlgrabber-3.10.1-1.noarch

readline-8.0-2.ppc

sqlite-3.32.3-1.ppc

xz-libs-5.2.5-1.ppc

yum-3.4.3-8.noarch

yum-metadata-parser-1.1.4-2.ppc

zlib-1.2.11-2.ppc

 

# ./dnf_aixtoolbox.sh -n

Attempting download of rpm.rte & dnf_bundle.tar ...

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

 

 

Extracting dnf_bundle.tar ...

x ca-certificates-2020.06.01-0.aix7.1.ppc.rpm, 952182 bytes, 1860 media blocks.

x dnf-4.2.17-1.aix7.1.noarch.rpm, 11139 bytes, 22 media blocks.

x dnf-automatic-4.2.17-1.aix7.1.noarch.rpm, 12442 bytes, 25 media blocks.

x dnf-data-4.2.17-1.aix7.1.noarch.rpm, 23534 bytes, 46 media blocks.

x extra_list, 212 bytes, 1 media blocks.

x libcomps-0.1.11-1.aix7.1.ppc.rpm, 1272902 bytes, 2487 media blocks.

x libdnf-0.39.1-1.aix7.1.ppc.rpm, 15809465 bytes, 30878 media blocks.

x libmodulemd-1.5.2-1.aix7.1.ppc.rpm, 3419469 bytes, 6679 media blocks.

x librepo-1.11.0-1.aix7.1.ppc.rpm, 3649914 bytes, 7129 media blocks.

x libsmartcols-2.34-1.aix7.1.ppc.rpm, 182903 bytes, 358 media blocks.

x libsolv-0.7.9-1.aix7.1.ppc.rpm, 1532976 bytes, 2995 media blocks.

x libzstd-1.4.4-1.aix7.1.ppc.rpm, 468764 bytes, 916 media blocks.

x p11-kit-0.23.16-0.aix7.1.ppc.rpm, 1047702 bytes, 2047 media blocks.

x p11-kit-tools-0.23.16-0.aix7.1.ppc.rpm, 39777 bytes, 78 media blocks.

x python3-3.7.9-0.aix7.1.ppc.rpm, 43168080 bytes, 84313 media blocks.

x python3-dateutil-2.8.0-1.aix6.1.noarch.rpm, 363137 bytes, 710 media blocks.

x python3-devel-3.7.9-0.aix7.1.ppc.rpm, 237244 bytes, 464 media blocks.

x python3-dnf-4.2.17-1.aix7.1.noarch.rpm, 197325 bytes, 386 media blocks.

x python3-dnf-plugin-migrate-4.0.16-1.aix7.1.noarch.rpm, 7965 bytes, 16 media blocks.

x python3-dnf-plugins-core-4.0.16-1.aix7.1.noarch.rpm, 49196 bytes, 97 media blocks.

x python3-docs-3.7.9-0.aix7.1.ppc.rpm, 2993180 bytes, 5847 media blocks.

x python3-gpgme-1.13.1-1.aix7.1.ppc.rpm, 681811 bytes, 1332 media blocks.

x python3-hawkey-0.39.1-1.aix7.1.ppc.rpm, 3113206 bytes, 6081 media blocks.

x python3-libcomps-0.1.11-1.aix7.1.ppc.rpm, 1020454 bytes, 1994 media blocks.

x python3-libdnf-0.39.1-1.aix7.1.ppc.rpm, 22549270 bytes, 44042 media blocks.

x python3-librepo-1.11.0-1.aix7.1.ppc.rpm, 2292512 bytes, 4478 media blocks.

x python3-six-1.13.0-1.aix6.1.noarch.rpm, 514483 bytes, 1005 media blocks.

x python3-test-3.7.9-0.aix7.1.ppc.rpm, 28383122 bytes, 55436 media blocks.

x python3-tools-3.7.9-0.aix7.1.ppc.rpm, 12734 bytes, 25 media blocks.

x rpm-python3-4.15.1-1_py3.aix7.1.ppc.rpm, 99260 bytes, 194 media blocks.

x yum-4.2.17-1.aix7.1.noarch.rpm, 8749 bytes, 18 media blocks.

x zchunk-1.1.4-1.aix7.1.ppc.rpm, 551935 bytes, 1078 media blocks.

x zchunk-devel-1.1.4-1.aix7.1.ppc.rpm, 19026 bytes, 38 media blocks.

x zchunk-libs-1.1.4-1.aix7.1.ppc.rpm, 533888 bytes, 1043 media blocks.

 

 

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-2020.06.01-1.ppc is installed.

dnf-4.2.17-1 will be installed

dnf-automatic-4.2.17-1 will be installed

dnf-data-4.2.17-1 will be installed

libcomps-0.1.11-1 will be installed

libdnf-0.39.1-1 will be installed

libmodulemd-1.5.2-1 will be installed

librepo-1.11.0-1 will be installed

libsmartcols-2.34-1 will be installed

libsolv-0.7.9-1 will be installed

libzstd-1.4.4-1 will be installed

Skipping p11-kit-0.23.16-0 as higher version p11-kit-0.23.16-1.ppc is installed.

Skipping p11-kit-tools-0.23.16-0 as higher version p11-kit-tools-0.23.16-1.ppc is installed.

python3-3.7.9-0 will be installed

python3-dateutil-2.8.0-1 will be installed

python3-dnf-4.2.17-1 will be installed

python3-dnf-plugin-migrate-4.0.16-1 will be installed

python3-dnf-plugins-core-4.0.16-1 will be installed

python3-gpgme-1.13.1-1 will be installed

python3-hawkey-0.39.1-1 will be installed

python3-libcomps-0.1.11-1 will be installed

python3-libdnf-0.39.1-1 will be installed

python3-librepo-1.11.0-1 will be installed

python3-six-1.13.0-1 will be installed

rpm-python3-4.15.1-1_py3 will be installed

zchunk-libs-1.1.4-1 will be installed

 

Installing the packages...

 

Verifying...                          ################################# [100%]

Preparing...                          ################################# [100%]

Updating / installing...

   1:python3-3.7.9-0                  ################################# [  4%]

   2:libzstd-1.4.4-1                  ################################# [  9%]

   3:libmodulemd-1.5.2-1              ################################# [ 13%]

   4:libsolv-0.7.9-1                  ################################# [ 17%]

   5:libsmartcols-2.34-1              ################################# [ 22%]

   6:zchunk-libs-1.1.4-1              ################################# [ 26%]

   7:librepo-1.11.0-1                 ################################# [ 30%]

   8:rpm-python3-4.15.1-1_py3         ################################# [ 35%]

   9:libdnf-0.39.1-1                  ################################# [ 39%]

  10:python3-libdnf-0.39.1-1          ################################# [ 43%]

  11:python3-hawkey-0.39.1-1          ################################# [ 48%]

  12:libcomps-0.1.11-1                ################################# [ 52%]

  13:python3-libcomps-0.1.11-1        ################################# [ 57%]

  14:python3-six-1.13.0-1             ################################# [ 61%]

  15:python3-dateutil-2.8.0-1         ################################# [ 65%]

  16:python3-gpgme-1.13.1-1           ################################# [ 70%]

  17:dnf-data-4.2.17-1                ################################# [ 74%]

  18:python3-dnf-4.2.17-1             ################################# [ 78%]

  19:dnf-4.2.17-1                     ################################# [ 83%]

  20:python3-dnf-plugins-core-4.0.16-1################################# [ 87%]

  21:python3-dnf-plugin-migrate-4.0.16################################# [ 91%]

  22:dnf-automatic-4.2.17-1           ################################# [ 96%]

  23:python3-librepo-1.11.0-1         ################################# [100%]

 

dnf installed successfully.

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

 

Trying to run 'dnf migrate' to migrate yum database to dnf.

AIX generic repository                                                                                                                                                                     434 kB/s | 5.4 MB     00:12

AIX noarch repository                                                                                                                                                                        312 kB/s | 886 kB     00:02

AIX 7.1 specific repository                                                                                                                                                                  409 kB/s | 872 kB     00:02

Last metadata expiration check: 0:00:04 ago on Fri Apr 23 04:57:59 CDT 2021.

Migrating history data...

 

# dnf repolist

repo id                                                                                                    repo name

AIX_Toolbox                                                                                                AIX generic repository

AIX_Toolbox_71                                                                                             AIX 7.1 specific repository

AIX_Toolbox_noarch                                                                                         AIX noarch repository

 

# yum repolist

repo id                                                                                                repo name                                                                                                        status

AIX_Toolbox                                                                                            AIX generic repository                                                                                           2,817

AIX_Toolbox_71                                                                                         AIX 7.1 specific repository                                                                                        227

AIX_Toolbox_noarch                                                                                     AIX noarch repository                                                                                              260

repolist: 3,304

 

 

When dnf_beta is installed

 

# rpm -qa | sort

AIX-rpm-7.1.5.33-5.ppc

bash-5.0.18-1.ppc

bzip2-1.0.8-2.ppc

ca-certificates-2020.06.01-1.ppc

curl-7.74.0-1.ppc

cyrus-sasl-2.1.26-3.ppc

db-5.3.28-1.ppc

dnf-4.2.17-0.2beta.noarch

dnf-automatic-4.2.17-0.2beta.noarch

dnf-data-4.2.17-0.2beta.noarch

expat-2.2.9-2.ppc

gcc-8-1.ppc

gcc-c++-8-1.ppc

gcc-cpp-8-1.ppc

gcc8-8.3.0-4.ppc

gcc8-c++-8.3.0-4.ppc

gcc8-cpp-8.3.0-4.ppc

gdbm-1.18.1-1.ppc

gettext-0.20.2-1.ppc

glib2-2.56.1-2.ppc

gmp-6.1.2-1.ppc

gnupg2-2.2.23-1.ppc

gnutls-3.6.15-1.ppc

gpgme-1.13.1-0.1beta.ppc

info-6.6-2.ppc

json-c-0.15-2.ppc

krb5-libs-1.18.3-1.ppc

libassuan-2.5.3-1.ppc

libcomps-0.1.11-0.1beta.ppc

libdnf-0.39.1-0.2beta.ppc

libffi-3.2.1-3.ppc

libgcc-8-1.ppc

libgcc8-8.3.0-4.ppc

libgcrypt-1.8.5-1.ppc

libgomp-8-1.ppc

libgomp8-8.3.0-4.ppc

libgpg-error-1.36-1.ppc

libiconv-1.16-1.ppc

libksba-1.4.0-1.ppc

libmodulemd-1.5.2-0.1beta.ppc

libmpc-1.1.0-1.ppc

libnghttp2-1.41.0-1.ppc

librepo-1.11.0-0.1beta.ppc

libsmartcols-2.34-0.1beta.ppc

libsolv-0.7.9-0.2beta.ppc

libssh2-1.9.0-1.ppc

libstdc++-8-1.ppc

libstdc++-devel-8-1.ppc

libstdc++8-8.3.0-4.ppc

libstdc++8-devel-8.3.0-4.ppc

libtasn1-4.16.0-1.ppc

libtextstyle-0.20.2-1.ppc

libunistring-0.9.10-1.ppc

libxml2-2.9.10-1.ppc

libyaml-0.2.2-1.ppc

libzstd-1.4.4-0.1beta.ppc

mpfr-4.0.2-2.ppc

ncurses-6.2-2.ppc

nettle-3.6-1.ppc

npth-1.5-1.ppc

openldap-2.4.56-1.ppc

p11-kit-0.23.16-1.ppc

p11-kit-tools-0.23.16-1.ppc

pth-2.0.7-2.ppc

python3-3.7.9-1.ppc

python3-dateutil-2.8.0-1.noarch

python3-dnf-4.2.17-0.2beta.noarch

python3-gpgme-1.13.1-0.1beta.ppc

python3-hawkey-0.39.1-0.2beta.ppc

python3-libcomps-0.1.11-0.1beta.ppc

python3-libdnf-0.39.1-0.2beta.ppc

python3-librepo-1.11.0-0.1beta.ppc

python3-six-1.13.0-1.noarch

readline-8.0-2.ppc

rpm-python3-4.15.1-1.ppc

sed-4.8-1.ppc

sqlite-3.32.3-1.ppc

xz-5.2.5-1.ppc

xz-libs-5.2.5-1.ppc

yum-4.2.17-0.2beta.noarch

zchunk-1.1.4-0.2beta.ppc

zchunk-devel-1.1.4-0.2beta.ppc

zchunk-libs-1.1.4-0.2beta.ppc

zlib-1.2.11-2.ppc

 

# ./dnf_aixtoolbox.sh -y

Attempting download of rpm.rte & dnf_bundle.tar ...

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

 

 

Extracting dnf_bundle.tar ...

x ca-certificates-2020.06.01-0.aix7.1.ppc.rpm, 952182 bytes, 1860 media blocks.

x dnf-4.2.17-1.aix7.1.noarch.rpm, 11139 bytes, 22 media blocks.

x dnf-automatic-4.2.17-1.aix7.1.noarch.rpm, 12442 bytes, 25 media blocks.

x dnf-data-4.2.17-1.aix7.1.noarch.rpm, 23534 bytes, 46 media blocks.

x extra_list, 212 bytes, 1 media blocks.

x libcomps-0.1.11-1.aix7.1.ppc.rpm, 1272902 bytes, 2487 media blocks.

x libdnf-0.39.1-1.aix7.1.ppc.rpm, 15809465 bytes, 30878 media blocks.

x libmodulemd-1.5.2-1.aix7.1.ppc.rpm, 3419469 bytes, 6679 media blocks.

x librepo-1.11.0-1.aix7.1.ppc.rpm, 3649914 bytes, 7129 media blocks.

x libsmartcols-2.34-1.aix7.1.ppc.rpm, 182903 bytes, 358 media blocks.

x libsolv-0.7.9-1.aix7.1.ppc.rpm, 1532976 bytes, 2995 media blocks.

x libzstd-1.4.4-1.aix7.1.ppc.rpm, 468764 bytes, 916 media blocks.

x p11-kit-0.23.16-0.aix7.1.ppc.rpm, 1047702 bytes, 2047 media blocks.

x p11-kit-tools-0.23.16-0.aix7.1.ppc.rpm, 39777 bytes, 78 media blocks.

x python3-3.7.9-0.aix7.1.ppc.rpm, 43168080 bytes, 84313 media blocks.

x python3-dateutil-2.8.0-1.aix6.1.noarch.rpm, 363137 bytes, 710 media blocks.

x python3-devel-3.7.9-0.aix7.1.ppc.rpm, 237244 bytes, 464 media blocks.

x python3-dnf-4.2.17-1.aix7.1.noarch.rpm, 197325 bytes, 386 media blocks.

x python3-dnf-plugin-migrate-4.0.16-1.aix7.1.noarch.rpm, 7965 bytes, 16 media blocks.

x python3-dnf-plugins-core-4.0.16-1.aix7.1.noarch.rpm, 49196 bytes, 97 media blocks.

x python3-docs-3.7.9-0.aix7.1.ppc.rpm, 2993180 bytes, 5847 media blocks.

x python3-gpgme-1.13.1-1.aix7.1.ppc.rpm, 681811 bytes, 1332 media blocks.

x python3-hawkey-0.39.1-1.aix7.1.ppc.rpm, 3113206 bytes, 6081 media blocks.

x python3-libcomps-0.1.11-1.aix7.1.ppc.rpm, 1020454 bytes, 1994 media blocks.

x python3-libdnf-0.39.1-1.aix7.1.ppc.rpm, 22549270 bytes, 44042 media blocks.

x python3-librepo-1.11.0-1.aix7.1.ppc.rpm, 2292512 bytes, 4478 media blocks.

x python3-six-1.13.0-1.aix6.1.noarch.rpm, 514483 bytes, 1005 media blocks.

x python3-test-3.7.9-0.aix7.1.ppc.rpm, 28383122 bytes, 55436 media blocks.

x python3-tools-3.7.9-0.aix7.1.ppc.rpm, 12734 bytes, 25 media blocks.

x rpm-python3-4.15.1-1_py3.aix7.1.ppc.rpm, 99260 bytes, 194 media blocks.

x yum-4.2.17-1.aix7.1.noarch.rpm, 8749 bytes, 18 media blocks.

x zchunk-1.1.4-1.aix7.1.ppc.rpm, 551935 bytes, 1078 media blocks.

x zchunk-devel-1.1.4-1.aix7.1.ppc.rpm, 19026 bytes, 38 media blocks.

x zchunk-libs-1.1.4-1.aix7.1.ppc.rpm, 533888 bytes, 1043 media blocks.

 

 

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-2020.06.01-1.ppc is installed.

dnf-4.2.17-0.2beta.noarch will be updated to dnf-4.2.17-1

dnf-automatic-4.2.17-0.2beta.noarch will be updated to dnf-automatic-4.2.17-1

dnf-data-4.2.17-0.2beta.noarch will be updated to dnf-data-4.2.17-1

libcomps-0.1.11-0.1beta.ppc will be updated to libcomps-0.1.11-1

libdnf-0.39.1-0.2beta.ppc will be updated to libdnf-0.39.1-1

libmodulemd-1.5.2-0.1beta.ppc will be updated to libmodulemd-1.5.2-1

librepo-1.11.0-0.1beta.ppc will be updated to librepo-1.11.0-1

libsmartcols-2.34-0.1beta.ppc will be updated to libsmartcols-2.34-1

libsolv-0.7.9-0.2beta.ppc will be updated to libsolv-0.7.9-1

libzstd-1.4.4-0.1beta.ppc will be updated to libzstd-1.4.4-1

Skipping p11-kit-0.23.16-0 as higher version p11-kit-0.23.16-1.ppc is installed.

Skipping p11-kit-tools-0.23.16-0 as higher version p11-kit-tools-0.23.16-1.ppc is installed.

Skipping python3-3.7.9-0 as higher version python3-3.7.9-1.ppc is installed.

python3-dnf-4.2.17-0.2beta.noarch will be updated to python3-dnf-4.2.17-1

python3-gpgme-1.13.1-0.1beta.ppc will be updated to python3-gpgme-1.13.1-1

python3-hawkey-0.39.1-0.2beta.ppc will be updated to python3-hawkey-0.39.1-1

python3-libcomps-0.1.11-0.1beta.ppc will be updated to python3-libcomps-0.1.11-1

python3-libdnf-0.39.1-0.2beta.ppc will be updated to python3-libdnf-0.39.1-1

python3-librepo-1.11.0-0.1beta.ppc will be updated to python3-librepo-1.11.0-1

rpm-python3-4.15.1-1.ppc will be updated to rpm-python3-4.15.1-1_py3

yum-4.2.17-0.2beta.noarch will be updated to yum-4.2.17-1

zchunk-1.1.4-0.2beta.ppc will be updated to zchunk-1.1.4-1

zchunk-devel-1.1.4-0.2beta.ppc will be updated to zchunk-devel-1.1.4-1

zchunk-libs-1.1.4-0.2beta.ppc will be updated to zchunk-libs-1.1.4-1

 

Installing the packages...

 

Verifying...                          ################################# [100%]

Preparing...                          ################################# [100%]

Updating / installing...

   1:libzstd-1.4.4-1                  ################################# [  2%]

   2:zchunk-libs-1.1.4-1              ################################# [  5%]

   3:librepo-1.11.0-1                 ################################# [  7%]

   4:libmodulemd-1.5.2-1              ################################# [ 10%]

   5:libsolv-0.7.9-1                  ################################# [ 12%]

   6:libsmartcols-2.34-1              ################################# [ 14%]

   7:rpm-python3-4.15.1-1_py3         ################################# [ 17%]

   8:libdnf-0.39.1-1                  ################################# [ 19%]

   9:python3-libdnf-0.39.1-1          ################################# [ 21%]

  10:dnf-data-4.2.17-1                ################################# [ 24%]

  11:python3-hawkey-0.39.1-1          ################################# [ 26%]

  12:python3-gpgme-1.13.1-1           ################################# [ 29%]

  13:libcomps-0.1.11-1                ################################# [ 31%]

  14:python3-libcomps-0.1.11-1        ################################# [ 33%]

  15:python3-dnf-4.2.17-1             ################################# [ 36%]

  16:dnf-4.2.17-1                     ################################# [ 38%]

  17:dnf-automatic-4.2.17-1           ################################# [ 40%]

  18:yum-4.2.17-1                     ################################# [ 43%]

  19:python3-librepo-1.11.0-1         ################################# [ 45%]

  20:zchunk-1.1.4-1                   ################################# [ 48%]

  21:zchunk-devel-1.1.4-1             ################################# [ 50%]

Cleaning up / removing...

  22:python3-librepo-1.11.0-0.1beta   ################################# [ 52%]

  23:zchunk-1.1.4-0.2beta             ################################# [ 55%]

  24:yum-4.2.17-0.2beta               ################################# [ 57%]

  25:dnf-automatic-4.2.17-0.2beta     ################################# [ 60%]

  26:dnf-4.2.17-0.2beta               ################################# [ 62%]

  27:python3-dnf-4.2.17-0.2beta       ################################# [ 64%]

  28:python3-hawkey-0.39.1-0.2beta    ################################# [ 67%]

  29:python3-libdnf-0.39.1-0.2beta    ################################# [ 69%]

  30:libdnf-0.39.1-0.2beta            ################################# [ 71%]

  31:librepo-1.11.0-0.1beta           ################################# [ 74%]

  32:zchunk-devel-1.1.4-0.2beta       ################################# [ 76%]

  33:python3-libcomps-0.1.11-0.1beta  ################################# [ 79%]

  34:zchunk-libs-1.1.4-0.2beta        ################################# [ 81%]

  35:libsolv-0.7.9-0.2beta            ################################# [ 83%]

  36:libzstd-1.4.4-0.1beta            ################################# [ 86%]

  37:libcomps-0.1.11-0.1beta          ################################# [ 88%]

  38:libmodulemd-1.5.2-0.1beta        ################################# [ 90%]

  39:libsmartcols-2.34-0.1beta        ################################# [ 93%]

  40:rpm-python3-4.15.1-1             ################################# [ 95%]

  41:dnf-data-4.2.17-0.2beta          ################################# [ 98%]

  42:python3-gpgme-1.13.1-0.1beta     ################################# [100%]

 

dnf installed successfully.

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

 

# dnf repolist

repo id                                                                                                    repo name

AIX_Toolbox                                                                                                AIX generic repository

AIX_Toolbox_71                                                                                             AIX 7.1 specific repository

AIX_Toolbox_noarch                                                                                         AIX noarch repository

 

44 comments
831 views

Permalink

Comments

Thu April 25, 2024 08:22 AM

Has anyone seen this kind of a problem with DNF?

I successfully installed it, but when I run the "info" command I see this output:

# /opt/freeware/bin/dnf info screen
AIX generic repository                                                                                                                                       0.0  B/s |   0  B     00:01
Errors during downloading metadata for repository 'AIX_Toolbox':
  - Curl error (60): SSL peer certificate or SSH remote key was not OK for https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml [SSL certificate problem: self signed certificate in certificate chain]
Error: Failed to download metadata for repo 'AIX_Toolbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
AIX noarch repository                                                                                                                                        0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'AIX_Toolbox_noarch':
  - Curl error (60): SSL peer certificate or SSH remote key was not OK for https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml [SSL certificate problem: self signed certificate in certificate chain]
Error: Failed to download metadata for repo 'AIX_Toolbox_noarch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
AIX 7.2 specific repository                                                                                                                                  0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'AIX_Toolbox_72':
  - Curl error (60): SSL peer certificate or SSH remote key was not OK for https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/repodata/repomd.xml [SSL certificate problem: self signed certificate in certificate chain]
Error: Failed to download metadata for repo 'AIX_Toolbox_72': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: AIX_Toolbox, AIX_Toolbox_noarch, AIX_Toolbox_72
Error: No matching Packages to list

oslevel: 7200-05-05-2246

openssl: 1.1.1.1200

Thu September 07, 2023 03:45 PM

I have been getting these errors when installing....any recommendations??? I already tried increasing /opt

Preparing...                          ################################# [100%]
        file /var/ssl/certs/ACCVRAIZ1.crt conflicts between attempted installs of ca-certificates-2023.2.60-0.ppc and ca-certificates-2023.2.60-0.ppc
        file /var/ssl/certs/AC_RAIZ_FNMT-RCM.crt conflicts between attempted installs of ca-certificates-2023.2.60-0.ppc and ca-certificates-2023.2.60-0.ppc
        file /var/ssl/certs/AC_RAIZ_FNMT-RCM_SERVIDORES_SEGUROS.crt conflicts between attempted installs of ca-certificates-2023.2.60-0.ppc and ca-certificates-2023.2.60-0.ppc
        file /var/ssl/certs/ANF_Secure_Server_Root_CA.crt conflicts between attempted installs of ca-certificates-2023.2.60-0.ppc and ca-certificates-2023.2.60-0.ppc

...

        file /var/ssl/certs/emSign_Root_CA_-_C1.crt conflicts between attempted installs of ca-certificates-2023.2.60-0.ppc and ca-certificates-2023.2.60-0.ppc
        file /var/ssl/certs/emSign_Root_CA_-_G1.crt conflicts between attempted installs of ca-certificates-2023.2.60-0.ppc and ca-certificates-2023.2.60-0.ppc
        file /var/ssl/certs/vTrus_ECC_Root_CA.crt conflicts between attempted installs of ca-certificates-2023.2.60-0.ppc and ca-certificates-2023.2.60-0.ppc
        file /var/ssl/certs/vTrus_Root_CA.crt conflicts between attempted installs of ca-certificates-2023.2.60-0.ppc and ca-certificates-2023.2.60-0.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.

Wed July 19, 2023 08:14 PM

Hi,

The dnf migration completed successfully, but when we run dnf update, we get the following errors: 

[root@gxnim01a]:/tmp# dnf update
Last metadata expiration check: 0:22:11 ago on Wed Jul 19 16:45:25 PDT 2023.
Error:
 Problem 1: package yum-plugin-downloadonly-1.1.31-2.noarch requires yum >= 3.4.3-6, but none of the providers can be installed
  - package dnf-4.2.17-64_53.ppc obsoletes yum >= 4.2.17-64_1 provided by yum-4.2.17-64_6.noarch
  - package dnf-4.2.17-64_53.ppc obsoletes yum <= 4.2.17 provided by yum-4.2.17-64_6.noarch
  - package dnf-4.2.17-64_53.ppc obsoletes yum <= 4.2.17 provided by yum-3.4.3-6.noarch
  - package dnf-4.2.17-64_53.ppc obsoletes yum <= 4.2.17 provided by yum-3.4.3-7.noarch
  - package dnf-4.2.17-64_53.ppc obsoletes yum <= 4.2.17 provided by yum-3.4.3-8.noarch
  - cannot install the best update candidate for package yum-plugin-downloadonly-1.1.31-2.noarch
  - cannot install the best update candidate for package dnf-4.2.17-64_6.noarch
 Problem 2: problem with installed package yum-plugin-downloadonly-1.1.31-2.noarch
  - package yum-plugin-downloadonly-1.1.31-2.noarch requires yum >= 3.4.3-6, but none of the providers can be installed
  - package dnf-4.2.17-64_53.ppc obsoletes yum >= 4.2.17-64_1 provided by yum-4.2.17-64_6.noarch
  - package dnf-4.2.17-64_53.ppc obsoletes yum <= 4.2.17 provided by yum-4.2.17-64_6.noarch
  - package dnf-4.2.17-64_53.ppc obsoletes yum <= 4.2.17 provided by yum-3.4.3-6.noarch
  - package dnf-4.2.17-64_53.ppc obsoletes yum <= 4.2.17 provided by yum-3.4.3-7.noarch
  - package dnf-4.2.17-64_53.ppc obsoletes yum <= 4.2.17 provided by yum-3.4.3-8.noarch
  - cannot install the best update candidate for package yum-4.2.17-64_6.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

[root@gxnim01a]:/tmp# dnf repolist
repo id                                                                                             repo name
AIX_Toolbox                                                                                         AIX generic repository
AIX_Toolbox_73                                                                                      AIX 7.3 specific repository
AIX_Toolbox_noarch                                                                                  AIX noarch repository

[root@gxnim01a]:/tmp# dnf list yum
Last metadata expiration check: 0:27:45 ago on Wed Jul 19 16:45:25 PDT 2023.
Installed Packages
yum.noarch                                                                                          4.2.17-64_6            

[root@gxnim01a]:/tmp# oslevel -s
7300-01-02-2320

Any tips on how to resolve this? TIA.

Mon May 02, 2022 11:17 AM

Hi Christian,

Yes. You can install dnf-utils and createrepo_c which are available now.

Mon May 02, 2022 04:54 AM

Hello,

Last year we migrated for yum to dnf with all our client lpar’s.

Only our central local repo server is not converted and still using the old yum variant

We like to move to dnf for our repo server also but when we do

Commands like

reposync -p ${target} -r AIX_Toolbox_72 -a ppc >>${log} 2>&1

and

createrepo ${target}/AIX_Toolbox_73 >>${log} 2>&1

are broken because the libraries does not support these command’s

If I remember it, this should become available end of last year, can someone tell me if it is available now?

Greetings Christian Sonnemans.

 

Fri February 25, 2022 06:57 AM

/usr/bin/dnf is just a link:
rpm -qf /usr/bin/dnf
file /usr/bin/dnf is not owned by any package
ls -l /usr/bin/dnf
lrwxrwxrwx 1 root system 26 Feb 23 08:24 /usr/bin/dnf -> ../../opt/freeware/bin/dnf

output from ldd:
ldd /opt/freeware/lib/python3.7/site-packages/rpm/_rpm.so
/opt/freeware/lib/python3.7/site-packages/rpm/_rpm.so needs:
/usr/opt/rpm/lib/librpmbuild.so
/usr/opt/rpm/lib/librpmsign.so
/usr/opt/rpm/lib/librpm.so
/usr/opt/rpm/lib/librpmio.so
/opt/freeware/lib/libpython3.7m.so
/usr/lib/libc.a(shr.o)
/usr/opt/rpm/lib/libpopt.a(libpopt.so.0)
/usr/opt/rpm/lib/libmagic.a(libmagic.so.1)
/usr/opt/rpm/lib/libintl.a(libintl.so.8)
/usr/opt/rpm/lib/liblua.a(liblua-5.3.so)
/usr/opt/rpm/lib/libdb-4.8.a(libdb-4.8.so)
/usr/lib/libpthread.a(shr_xpg5.o)
/usr/opt/rpm/lib/libnss3.a(libnss3.so)
/usr/opt/rpm/lib/libbz2.a(libbz2.so.1)
/usr/opt/rpm/lib/libz.a(libz.so.1)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libpthreads.a(shr_comm.o)
/unix
/usr/lib/libcrypt.a(shr.o)
/usr/opt/rpm/lib/libnspr4.so
/usr/opt/rpm/lib/libnssutil3.so
/usr/opt/rpm/lib/libplc4.so
/usr/opt/rpm/lib/libplds4.so
/usr/lib/libodm.a(shr.o)
/usr/lib/libcfg.a(shr.o)

Fri February 25, 2022 05:53 AM

It is till the problem with not finding proper rpm library librpm.
Provide the output of "ldd /opt/freeware/lib/python3.7/site-packages/rpm/_rpm.so"

And I think you still seems to be have old dnf binary link.
We aren't providing /usr/bin/dnf.
What's is the output of "rpm -qf /usr/bin/dnf" ?

Thu February 24, 2022 04:38 AM

Libpath is not set, lppcheck output looks good as there is no output.

Thu February 24, 2022 04:29 AM

Is their any LIBPATH is set ?
What is the output of "lppchk -c rpm.rte" ?

Wed February 23, 2022 07:28 AM

Thanks for investigating.
rpm.rte:
lslpp -L |grep rpm.rte
rpm.rte 4.15.1.3 C F RPM Package Manager

Output:
dnf repolist
Traceback (most recent call last):
File "/usr/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 31, in <module>
from dnf.comps import CompsQuery
File "/opt/freeware/lib/python3.7/site-packages/dnf/comps.py", line 27, in <module>
from dnf.exceptions import CompsError
File "/opt/freeware/lib/python3.7/site-packages/dnf/exceptions.py", line 22, in <module>
import dnf.util
File "/opt/freeware/lib/python3.7/site-packages/dnf/util.py", line 30, in <module>
import dnf.callback
File "/opt/freeware/lib/python3.7/site-packages/dnf/callback.py", line 22, in <module>
import dnf.yum.rpmtrans
File "/opt/freeware/lib/python3.7/site-packages/dnf/yum/rpmtrans.py", line 26, in <module>
import rpm
File "/opt/freeware/lib/python3.7/site-packages/rpm/__init__.py", line 38, in <module>
from rpm._rpm import *
ImportError: rtld: 0712-001 Symbol rpmdbCookie was referenced
from module /opt/freeware/lib/python3.7/site-packages/rpm/_rpm.so(), but a runtime definition
of the symbol was not found.
rtld: 0712-001 Symbol rpmdsIsReverse was referenced
from module /opt/freeware/lib/python3.7/site-packages/rpm/_rpm.so(), but a runtime definition
of the symbol was not found.
rtld: 0712-001 Symbol rpmtsVfyFlags was referenced
from module /opt/freeware/lib/python3.7/site-packages/rpm/_rpm.so(), but a runtime definition
of the symbol was not found.
rtld: 0712-001 Symbol rpmtsVfyLevel was referenced
from module /opt/freeware/lib/python3.7/site-packages/rpm/_rpm.so(), but a runtime definition
of the symbol was not found.
rtld: 0712-001 Symbol rpmtsSetVfyLevel was referenced
from module /opt/freeware/lib/python3.7/site-packages/rpm/_rpm.so(), but a runtime definition
of the symbol was not found.
rtld: 0712-001 Symbol rpmdsIsWeak was referenced
from module /opt/freeware/lib/python3.7/site-packages/rpm/_rpm.so(), but a runtime definition
of the symbol was not found.
rtld: 0712-001 Symbol rpmfilesVerify was referenced
from module /opt/freeware/lib/python3.7/site-packages/rpm/_rpm.so(), but a runtime definition
of the symbol was not found.
0509-021 Additional errors occurred but are not reported.

Wed February 23, 2022 07:15 AM

Please paste the complete error output.
What's the rpm.rte version is installed ?

Wed February 23, 2022 06:52 AM

Unfortunately not, same error message as when running import command manually

Wed February 23, 2022 05:53 AM

From the list it seems you have all the required rpms installed.
Are you able to run dnf command now ?

Wed February 23, 2022 05:01 AM

Hi, yes, I've also tried to install all rpm included in the bundle, without success.

bash-5.0-1.ppc
df1000e314101406-00012000040025700027-1.noarch
libstdc++8-8.3.0-4.ppc
openldap-2.4.56-1.ppc
xz-libs-5.2.4-1.ppc
libxml2-2.9.10-1.ppc
gettext-0.19.8.1-5.ppc
libcomps-0.1.11-32_1.ppc
libsmartcols-2.34-32_1.ppc
p11-kit-tools-0.23.16-0.ppc
python3-dnf-4.2.17-32_1.noarch
python3-gpgme-1.13.1-32_1.ppc
python3-librepo-1.11.0-32_1.ppc
zchunk-libs-1.1.4-32_1.ppc
df1000e314101406-00012000040025700015-1.noarch
libgcc8-8.3.0-4.ppc
libstdc++-8-1.ppc
libffi-3.2.1-3.ppc
zlib-1.2.11-1.ppc
libunistring-0.9.10-1.ppc
ibm.nvme.PM985-MN3A-1.noarch
popt-1.18-1.ppc
puppet-agent-6.24.0-1.ppc
dnf-data-4.2.17-32_1.noarch
librepo-1.11.0-32_1.ppc
p11-kit-0.23.16-0.ppc
python3-devel-3.7.9-0.ppc
python3-docs-3.7.9-0.ppc
python3-libdnf-0.39.1-32_1.ppc
python3-tools-3.7.9-0.ppc
zchunk-devel-1.1.4-32_1.ppc
db-4.8.24-3.ppc
python-2.7.10-1.ppc
python-iniparse-0.4-1.noarch
python-tools-2.7.10-1.ppc
readline-6.1-2.ppc
yum-metadata-parser-1.1.4-2.ppc
dnf-automatic-4.2.17-32_1.noarch
rpm-python3-4.15.1-32_1.ppc
osinstall-1.6-1.noarch
df1000e21410f103-00012000040025700015-1.noarch
libgcc-8-1.ppc
libgomp-8-1.ppc
glib2-2.56.1-2.ppc
libtextstyle-0.20.2-1.ppc
logrotate-3.18.0-1.ppc
ibm.nvme.PM985-MN3B-1.noarch
libmodulemd-1.5.2-32_1.ppc
libzstd-1.4.4-32_1.ppc
python3-dateutil-2.8.0-1.noarch
python3-dnf-plugins-core-4.0.16-32_1.noarch
python3-libcomps-0.1.11-32_1.ppc
python3-test-3.7.9-0.ppc
zchunk-1.1.4-32_1.ppc
e414571614102004-10240310-1.noarch
df1000e21410f103-00012000040025700027-1.noarch
libgomp8-8.3.0-4.ppc
cyrus-sasl-2.1.26-3.ppc
ncurses-6.2-1.ppc
libiconv-1.16-1.ppc
info-6.6-2.ppc
sudo-1.9.5p2-1.ppc
libdnf-0.39.1-32_1.ppc
libsolv-0.7.9-32_1.ppc
python3-3.7.9-0.ppc
python3-dnf-plugin-migrate-4.0.16-32_1.noarch
python3-hawkey-0.39.1-32_1.ppc
python3-six-1.13.0-1.noarch
AIX-rpm-7.2.5.101-23.ppc
curl-7.52.1-1.ppc
gdbm-1.8.3-5.ppc
python-devel-2.7.10-1.ppc
python-pycurl-7.19.3-1.ppc
python-urlgrabber-3.10.1-1.noarch
sqlite-3.15.2-1.ppc
dnf-4.2.17-32_1.noarch
ca-certificates-2020.06.01-0.ppc

Wed February 23, 2022 04:54 AM

Hi Matthias,

Please provide the output of "rpm -qa".

Inside the bundle we provide install_dnf.sh script which also can be used to install dnf instead of manually choosing rpms for install.

Wed February 23, 2022 03:57 AM

I've an issue and unfortunately no idea where to start troubleshooting:
/opt/freeware/bin/python3_32 -c 'import rpm'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/freeware/lib/python3.7/site-packages/rpm/__init__.py", line 38, in <module>
from rpm._rpm import *
ImportError: rtld: 0712-001 Symbol rpmdbCookie was referenced

Mon February 21, 2022 06:45 AM

Hi,
no, I'm first trying install from scratch and afterwards update from yum to dnf.

Thu February 17, 2022 05:51 AM

after installation dnf repository showing not found. please suggest

Wed February 16, 2022 05:29 AM

Hi Matthias,

Do you have dnf installed already ?
We changed a package versioning and added some checks where it failing for some of the packages.

Tue February 15, 2022 04:45 AM

I'm facing issue with rpm packages when using tarbundle v2. The install script fails during rpm installation:
Installing the packages...

+ rpm -Uvh dnf-4.2.17-32_1.aix7.1.noarch.rpm dnf-automatic-4.2.17-32_1.aix7.1.noarch.rpm dnf-data-4.2.17-32_1.aix7.1.noarch.rpm libcomps-0.1.11-32_1.aix7.1.ppc.rpm libdnf-0.39.1-32_1.aix7.1.ppc.rpm libmodulemd-1.5.2-32_1.aix7.1.ppc.rpm librepo-1.11.0-32_1.aix7.1.ppc.rpm libsmartcols-2.34-32_1.aix7.1.ppc.rpm libsolv-0.7.9-32_1.aix7.1.ppc.rpm libzstd-1.4.4-32_1.aix7.1.ppc.rpm python3-dnf-4.2.17-32_1.aix7.1.noarch.rpm python3-gpgme-1.13.1-32_1.aix7.1.ppc.rpm python3-hawkey-0.39.1-32_1.aix7.1.ppc.rpm python3-libcomps-0.1.11-32_1.aix7.1.ppc.rpm python3-libdnf-0.39.1-32_1.aix7.1.ppc.rpm python3-librepo-1.11.0-32_1.aix7.1.ppc.rpm rpm-python3-4.15.1-32_1.aix7.1.ppc.rpm zchunk-libs-1.1.4-32_1.aix7.1.ppc.rpm

libzstd-1.4.4-1 and libzstd-1.4.4-1-32_1 are same.
error: %prein(libzstd-1.4.4-32_1.ppc) scriptlet failed, exit status 1

Mon February 07, 2022 01:11 PM

We are working on other DNF plugins and mostly be available by end of this quarter.

Mon February 07, 2022 09:36 AM

Thanks. Installation worked for me as explained. Can we have DNF plugin "versionlock" in the toolbox repository. As far as i can see it´s not shipped with python3-dnf-plugins-core-4.0.16-32_1.aix7.1.noarch.rpm from the dnf_bundle_aix_71_72.tar file.

Thu January 20, 2022 07:30 AM

Great post, thanks! Is it safe or even recommended to uninstall yum after successful dnf migration? I also thought of renaming the yum utility to avoid unwanted usage.

Tue January 11, 2022 02:12 PM

Yes, I already had transaction history under yum.

And yes, seemingly dnf command works.  But, I've been reluctant to proceed with updating rpm's until I figure out the previous questions.

What caused this error?  (It's from update_pkg_yumdb, but what caused the error?  I can't reproduce it by running the queries from python/sqlite3)
What is the impact of this error?
How to recover from this error?
What can be checked to prevent this error in the future?

Tue January 11, 2022 05:21 AM

This error is when during migration of yum database to DNF there is one required sqlite table is being created.  It is failing with that step.
Usually this happens if there is no YUM database exists.
You already some database like history created with YUM ?
This isn't an issue with DNF, it's just that it can't import some of the YUM database to DNF.

Mon January 10, 2022 05:25 PM

I upgraded from yum to dnf and also received the below error:

Trying to create pkg_yumdb database required for migrate plugin
Traceback (most recent call last):
  File "/opt/freeware/sbin/update_pkg_yumdb", line 81, in <module>
    repo_vals[2] = yumdb_from_repo
NameError: name 'yumdb_from_repo' is not defined
Failed to create pkg_yumdb database


The python script update_pkg_yumdb looks to be an IBM exclusive?

I would like to understand the following:

What caused this error?
What is the impact of this error?
How to recover from this error?
What can be checked to prevent this error in the future?

Tue October 05, 2021 07:02 AM

Hi Michael,

Sorry for the delay.
Not sure if you have already figure out that you need to either set the PATH to /opt/freeware/bin or use the /opt/freeware/bin/dnf command.

Tue September 28, 2021 03:48 PM

I installed it using the -d option and it installed successfully, but I can't run dnf:

  19:dnf-4.2.17-32_1                  ################################# [ 86%]

  20:dnf-automatic-4.2.17-32_1        ################################# [ 91%]

  21:ca-certificates-2020.06.01-0     ################################# [ 95%]

  22:python3-librepo-1.11.0-32_1      ################################# [100%]

 

dnf installed successfully.

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

 

# dnf update

ksh: dnf:  not found

Thu September 09, 2021 06:45 AM

Okay. We haven't seen any issue related to the link before.
Will check and correct  the link being provided from rpm-python3.

Thu September 09, 2021 05:03 AM

Hi, recreating of link helps.

Now when I'm looking on the origin link there is a mistake probably:
instead of:
/opt/freeware/lib/python3.7/site-packages/rpm -> ../../../../../../usr/opt/rpm/lib/python3.7/site-packages/rpm

there was:
/opt/freeware/lib/python3.7/site-packages/rpm -> ../../../../..//usr/opt/rpm/lib/python3.7/site-packages/rpm

then link was starting in /opt instead of / ( root) dnf was not working

When I have corrected this with:
ln -sf ../../../../../../usr/opt/rpm/lib/python3.7/site-packages/rpm /opt/freeware/lib/python3.7/site-packages/rpm

dnf is working fine.

From my point of view rpm-python3-4.15.1-32_1.ppc contains that link, could you please check if creating of link is done correctly in rpm?

Thanks for your really fast replies.

Thu September 09, 2021 04:48 AM

Not sure what the exact issue is.
But somehow it is not able to find the installed rpm-python3 python modules.

Could you recreate this soft link and check ?
ln -sf /usr/opt/rpm/lib/python3.7/site-packages/rpm /opt/freeware/lib/python3.7/site-packages/rpm

Also what is the output of ls -l /usr/opt/rpm/lib/python3.7/site-packages/rpm ?

Thu September 09, 2021 04:41 AM

Hi,

Its not working at all

root@xxxxxxx:/usr/opt/rpm # /opt/freeware/bin/python3_32 -c 'import rpm'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'rpm'

Thu September 09, 2021 04:30 AM

The message regarding yum4 is of the yum4 update pre installation message.
NameError is something which it isn't able to read the YUM packages information.

Yes. the NameError shouldn't affect the dnf working.

Link and files installed seems to be fine. Not sure what the exact issue is.

Please check if this also fails.

/opt/freeware/bin/python3_32 -c 'import rpm'

Thu September 09, 2021 03:34 AM

Hi,

ls -l /opt/freeware/lib/python3.7/site-packages/rpm
lrwxrwxrwx 1 root system 59 Sep 9 08:22 /opt/freeware/lib/python3.7/site-packages/rpm -> ../../../../..//usr/opt/rpm/lib/python3.7/site-packages/rpm

During installation of 22:dnf-automatic-4.2.17-32_1 I can see following message:

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
Traceback (most recent call last):
File "/opt/freeware/sbin/update_pkg_yumdb", line 81, in <module>
repo_vals[2] = yumdb_from_repo
NameError: name 'yumdb_from_repo' is not defined
Failed to create pkg_yumdb database

But I'm don't have idea why and if it could somehow affect functionallity of dnf itself. From my point of view it could cause issue with repositories, but dnf itself should work.

Thu September 09, 2021 03:23 AM

Hi Martin,

I could be install and run dnf fine without any issues.

...............
24:python3-dnf-plugin-migrate-4.0.16################################# [ 83%]
25:dnf-automatic-4.2.17-32_1 ################################# [ 86%]

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
26:yum-4.2.17-32_1 ################################# [ 90%]
27:python3-librepo-1.11.0-32_1 ################################# [ 93%]
Cleaning up / removing...
28:yum-3.4.3-8 warning: /opt/freeware/etc/yum/yum.conf saved as /opt/freeware/etc/yum/yum.conf.rpmsave
################################# [ 97%]
29:ca-certificates-2016.10.7-2 ################################# [100%]

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

Trying to run 'dnf migrate' to migrate yum database to dnf.
AIX generic repository 3.2 MB/s | 5.1 MB 00:01
AIX noarch repository 1.1 MB/s | 1.1 MB 00:00
AIX 7.2 specific repository 1.2 MB/s | 1.1 MB 00:00
Last metadata expiration check: 0:00:01 ago on Thu Sep 9 01:59:57 CDT 2021.
Migrating history data...