IBM Power Connect, learn, share, and engage with IBM Power. Join / Log in
I tried to install tar-1.33-1.aix6.1.ppc.rpm failed with dependencies in our AIX server but failed with dependencies. rpm.rte version 4.13.03 was installed in the server. Kindly refer to rpm_tar_install_issue_9Mar2023.jpeg file as attached. Kindly advise.
Thank you and regards,
Did you try installing the dependencies?
Trying to install the depencies leads to more dependencies as below:
This is my OS level and rpm.rte version.
Should I update the rpm.rte to 184.108.40.206 first before perform the rpm installation ? Appreciate your reply.
I find AIX's RPM implementation to be troublesome and irritating, largely because of issues that you're encountering. Frequently the simple upgrade of one RPM will require a bunch of dependencies, which will generate additional dependencies. Sometimes there are conflicting dependencies: one RPM will require that another be less than a level while another RPM requires a level above that. You're soon buried in an avalanche of dependencies. Linux doesn't seem to have this problem.
One thing that's worked for me is to make a list of my RPMs (rpm -qa) and then delete all of them. I then reinstall everything I had previously using the latest versions from the AIX Toolbox for Linux. In my experience, the current versions in the Toolbox play nicely with each other. But mixing the current version with older stuff can turn into a pig's breakfast.
As to upgrading rpm.rte, that's not a bad idea, but I doubt it will have any effect on your dependencies. Those are relationships between the individual RPMs.
I don't by any means consider myself an expert on making RPMs work on AIX. If anyone is smarter than I am (which wouldn't take much), please educate us all.
Oh Linux certainly has this same dependancy issue with RPMs, sometimes referred to as "dependancy hell"! In the late 90s when I first started getting in to Linux (before yum) it was way worse than it is now. Yum made it a lot easier as it's works through the dependancies for you.
The issue that you can hit with AIX is clashes between RPMs provided by the IBM repositories clashing with the old non-IBM ones. There are boxes that are "messy" due to history. It's always better if you don't have any RPMs from non-IBM repositories.
My advise here is to use yum/dnf to perform the install, it will then automaticlly sort out the dependancies for you.
AIX RPM works as design. You are using "OpenWear" – Open – free. You pay no price. Install lastest RPM.exe and then run preview install first to find all the dependencies and download all of them. Once you have everything and preview install comes back with OK and you check logs and it looks good then do the update or upgrade. Also there is document on how to create local repository of IBM AIX toolbox.
One other thing: Some years back I was doing RPM surgery and managed to get libc so boogered up that the AIX host crashed and wouldn't reboot. So I strongly recommend cloning your host to a sandbox and experimenting there. Failing that, at least make a mksysb backup before you start mucking about with the RPMs.
Thank you very much for your input. Really appreciate it.
Do you happen to know where can I get this libglib-2.0.a(libglib-2.0.0.so.0) ? Is it from AIX rpm.rte fileset or from RPM package. Kindly advise.
Try glib2 from the AIX Toolbox for Linux. Here's how I came up with that.
So that's why I suggest trying "glib2", which is in the Toolbox. No guarantees, but it's worth a try.
Someone smarter may correct me (and I hope they do if I'm wrong), but I don't think the "rpm.rte" file will have any effect on your dependencies. rpm.rte provides the glue between AIX filesets and the RPMs. But the relationships between the RPM levels are a completely different issue and aren't affected by rpm.rte.
And Minesh's point is well taken: if the RPMs break, then you get to keep both pieces. And there's no official support from IBM (although I have opened tickets and had IBMers help...but that isn't guaranteed). With that said, I've had good luck (after some frustration) with them.
Unlike the native installp, rpm never had the ability to resolve dependencies (be it in AIX or Linux), you either resolve the dependencies manually (which is a royal pain) or install yum/dnf to do that for you like in Linux.
Well, installp relies upon .toc file pretty much the same way as yum/dnf relies upon repo structure/files.
Thanks a lot i will try this !