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
------------------------------