Original Message:
Sent: Wed October 25, 2023 05:43 AM
From: Aditya Kamath
Subject: Preferred method to update dnf itself.
Hi Peter,
Can you try rpm -e <rpmname> like libpng-2:1.2.8, libpng-1.6.21-1.ppc , libpng-1.6.27-3.ppc and libpng-1.6.37-1.ppc and then try dnf update.
Let me know if it still fails.
------------------------------
Aditya Kamath
Original Message:
Sent: Tue October 24, 2023 08:05 PM
From: petermc 9BBD
Subject: Preferred method to update dnf itself.
Hi Jan,
I tried rpm -Fhv, get the following:
root@ax081:/tmp/dnftmp # rpm -Fhv *.rpm
error: Failed dependencies:
rpm-python3.9 >= 4.15.1-32_2 is needed by libdnf-0.39.1-32_3.ppc
python3.9-dnf = 4.2.17-32_4 is needed by python3-dnf-4.2.17-32_4.noarch
python3.9-gpg = 1.13.1-32_3 is needed by python3-gpg-1.13.1-32_3.ppc
python3.9-hawkey = 0.39.1-32_3 is needed by python3-hawkey-0.39.1-32_3.ppc
python3.9-libcomps = 0.1.15-32_1 is needed by python3-libcomps-0.1.15-32_1.ppc
python3.9-libdnf = 0.39.1-32_3 is needed by python3-libdnf-0.39.1-32_3.ppc
python3.9-librepo = 1.11.0-32_2 is needed by python3-librepo-1.11.0-32_2.ppc
rpm-python3.9 = 4.15.1-32_2 is needed by rpm-python3-4.15.1-32_2.ppc
root@ax081:/tmp/dnftmp #
I tried dnf update, it gives a different error this time, as I think some packages were updated when I updated samba.
root@ax081:/tmp/dnftmp # dnf update
Last metadata expiration check: 1 day, 23:36:17 ago on Mon Oct 23 10:34:31 EETDT 2023.
Error:
Problem 1: package freetype2-2.12.1-1.ppc requires libpng16.a(libpng16.so.16), but none of the providers can be installed
- cannot install both libpng-1.6.21-1.ppc and libpng-2:1.2.8-6.ppc
- cannot install both libpng-1.6.27-2.ppc and libpng-2:1.2.8-6.ppc
- cannot install both libpng-1.6.27-3.ppc and libpng-2:1.2.8-6.ppc
- cannot install both libpng-1.6.37-1.ppc and libpng-2:1.2.8-6.ppc
- cannot install the best update candidate for package freetype2-2.1.7-5.ppc
- problem with installed package libpng-2:1.2.8-6.ppc
Problem 2: package rrdtool-1.7.2-3.ppc requires libpng.a(libpng16.so.16), but none of the providers can be installed
- cannot install both libpng-1.6.21-1.ppc and libpng-2:1.2.8-6.ppc
- cannot install both libpng-1.6.27-2.ppc and libpng-2:1.2.8-6.ppc
- cannot install both libpng-1.6.27-3.ppc and libpng-2:1.2.8-6.ppc
- cannot install both libpng-1.6.37-1.ppc and libpng-2:1.2.8-6.ppc
- cannot install the best update candidate for package rrdtool-1.2.13-1.ppc
- cannot install the best update candidate for package libpng-2:1.2.8-6.ppc
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
I've seen this error on several other systems - the customer has some old non-AIX toolbox utilities (pware and/or TWW) installed and I get these conflicts. I'll open another post about that one.
Cheers,
Peter
------------------------------
petermc 9BBD
andersenIT
Brisbane
Original Message:
Sent: Tue October 24, 2023 03:18 PM
From: Jan Harris
Subject: Preferred method to update dnf itself.
FYI - The install/update of rpm.rte calls updtvpkg as part of install scripts.
Note, I get the same errors if I just do
rpm -Uhv *.rpm because -U is trying to install every package in the directory.
Note that "-F" will only upgrade package(s) if already installed. Of course, IBM recommends that you use DNF.
Because that package requires later tcl/tk that is not in this bundle.
You can set up a repository and run dnf "update"
AIX Toolbox for Open Source Software : Get Started
For local repository, see:
------------------------------
Jan Harris
AIX Development Support (Liaison to the AIX Toolbox for Open Source)
IBM (Contract)
Austin TX
Original Message:
Sent: Mon October 23, 2023 05:05 AM
From: Aditya Kamath
Subject: Preferred method to update dnf itself.
Hi Peter,
Have you tried to run the updtvpkg command after rpm.rte update? We need to run updtvpkg command as per this document {https://www.ibm.com/support/pages/understanding-aix-virtual-rpm-package-rpmrte} after some updates..
The obvious method is to update rpm rte and the do a "dnf update".
Kindly paste me your output of rpm -q --provides AIX-rpm | grep librpm if it still does not work.
------------------------------
Aditya Kamath
Original Message:
Sent: Sun October 22, 2023 08:42 PM
From: petermc 9BBD
Subject: Preferred method to update dnf itself.
Hi there,
What is the preferred way to update dnf? I mean the dnf package itself. I recently tried to update the open source packages on an LPAR and got this:
root@ax081:/tmp/dnftmp # dnf update
Last metadata expiration check: 0:21:12 ago on Mon Oct 23 10:34:31 EETDT 2023.
Error:
Problem: The operation would result in removing the following protected packages: dnf
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
root@ax081:/tmp/dnftmp #
I tried the obvious method - I unpacked the latest version of dnf (dnf_bundle_aix_71_72.tar) udpated rpm.rte (which worked) and ran an "rpm -Uhv *.rpm (which did not work).
root@ax081:/tmp/dnftmp # rpm -Uhv *.rpm
error: Failed dependencies:
tcl >= 8.6.11 is needed by python3.9-tkinter-3.9.16-0.ppc
tk >= 8.6.11 is needed by python3.9-tkinter-3.9.16-0.ppc
/opt/freeware/bin/python3_32 is needed by zchunk-1.1.4-32_2.ppc
root@ax081:/tmp/dnftmp # rpm -qa | grep tcl
tcl-8.4.7-3.ppc
root@ax081:/tmp/dnftmp
I checked on another system that has the latest dnf, and it doesn't have python3.9-tkinter installed.
So I'm obviously not going about this in the right way. Not sure I want to try any of those options the dnf command suggests.
Any suggestions?
Cheers,
Peter
------------------------------
Peter McFarlane
andersenIT
Brisbane
------------------------------