Link to home
Start Free TrialLog in
Avatar of assistunix
assistunixFlag for United States of America

asked on

How to install AIX RPM Installer

Hello
I need to install an rpm fileset, but i do not have rpm installed in my system.
can someone tell me how i can install rpm installer in my AIX 5.3.

also on another system of mine AIX 6.1, i have rpm installer installed, but the version is old, and i want to update it. Can someone give me tips on that as well.

Thanks
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

rpm is part of all AIX 5L and 6.x versions, so you must have it in your AIX 5.3.
Issue lslpp -l | grep -i rpm
If it's missing for some strange reason install rpm.rte from OS installation media.

The only supported way upgrading rpm is via AIX TL/SPm
I'd strongly discourage trying it any other way, because there are several important dependencies.

wmp
Avatar of assistunix

ASKER

I do not have accesss to installation media - so which online source would i be able to download it from ?
The way to install rpm.rte is through smitty installp , in that correct ?

And can you please elaborate a bit on upgrading Rpm via AIX TL/Spm ? Also where can I get the upgrade Rpm version from ?
Is it really not installed in your AIX 5.3?
If so, something must have been horribly messed up during OS installation!
IMHO it's nearly impossible to install AIX 5.x without rpm.rte!

Anyway, you can get the newest rpm.rte (which is currently 3.0.5.51) in installp format from here:
ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/rpm.rte

It should (hopefully) be suitable for AIX 5.3. In any case it will fit to 6.1.

What I meant with TL or SP (the "m" was just a typo due to those tiny Smartphone keys) is AIX Technology Level and Service Pack.

They often contain rpm.rte, and when installing a TL or SP the contained rpm version will be the one best suitable for the particular level.

wmp
hello wmp

turns out it might not be the actual rpm version that's causing the problem, but the AIX-rpm version.
these two may or may not be related, but the issue i am getting is installing gcc on my aix 5.3.

IN AIX 5.3
The following errors occurred during installation:
rpm -ivh gcc-4.2.0-3.aix5.3.ppc.rpm
error: failed dependencies:
AIX-rpm >= 5.3.0.0 is needed by gcc-4.2.0-3

My rpm version is
# rpm --version
RPM version 3.0.5

and when i run rpm -qa | grep AIX , i get an output of AIX-rpm less than 5.3.0.0 (don't remember the exact number, and currently unable to access it to verify the number)

I need help in figuring out, how can i update my AIX-rpm to greater than 5.3.0.0.
would upgrading my # rpm --version   help ?
                                   RPM version 3.0.5

.....
IN AIX 6.1
also, i tried to generate a similar error of AIX-rpm version not being compatible enough to install gcc, and i was able to generate the following error on it, by installing 5.3 gcc version gcc-4.2.4-2.

[root@server] /perzl/5 # rpm -ivh gcc-4.2.4-2.aix5.3.ppc.rpm
error: failed dependencies:
        AIX-rpm < 5.4.0.0 is needed by gcc-4.2.4-2   <note in this installation it is requiring a smaller version AIX-rpm

although i do not need this gcc version of 5.3 to be installed on aix 6.1, however i would like to learn how can i downgrade the AIX-rpm version? as needed in this case.

Do note, that 6.1 gcc version gcc-4.2.4-2 was successfully installed and also 5.3 gcc version gcc-4.2.0-3 was also successfully installed.

my aix 6.1 server information:

[root@server] / # rpm --version
RPM version 3.0.5
[root@server] / # rpm -qa | grep AIX
AIX-rpm-6.1.0.0-7
[root@server] / #

..........
My urgency is on resolving the installation on aix 5.3, which is requiring an upgrade of AIX-rpm to a version higher than 5.3.0.0

Please provide your insight on it.
What do you mean with "actual rpm version" versus "AIX rpm version"?

There should never be more than one rpm version installed on a system, and since AIX 5L this is "AIX-rpm"  - although the difference to e.g. Linux rpm lies only in the packaging method, the contained rpm itself is the well-known Open Source software as always.

The AIX package is called AIX-rpm and has its own version number, but that's the version of the package, not of the rpm binary, which is 3.0.5 as you correctly stated. Please don't confuse these diffferent numbers, the AIX-rpm version number is just for relating it to a particular OS level.

This said, it should be clear that you're assuming a problem at the wrong place.
The actual problem is that you cannot install gcc-4.2.0-3 on your AIX 5.3 system - just because your rpm is at too low a level.
In a way it's sad that you don't remember the actual version! AIX 5.3 should ALWAYS contain AIX-rpm at a 5.3.0.x level!

With AIX 5.3 TL 10 or with the package whose download address I gave you above you will reach AIX-rpm 5.3.0.40-4, which might be sufficient for gcc-4.2.0-3.

Either upgrade AIX 5.3 to the newest TL or install the installp package whose address I gave you. Use smitty install.

As far as I know the higher rpm versions for AIX are only available on the AIX 6.x installation media, but you could search the web for yourself. I, personally, didn't find anything.

And please read Michael Perzl's remarks about problems with upgrading rpm.rte in conjunction with some other packages like gettext (the paragraph starting with "Compatibility ..."). It's interesting!
http://www.perzl.org/aix/

wmp
SOLUTION
Avatar of balasundaram_s
balasundaram_s

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, that's the theory. And yes, /usr/sbin/updtvpkg will give AIX-rpm (that famous "virtual" package) the same version as bos.rte.

But in theory also no rpm package should ever depend on the version of AIX-rpm - and that's only theory, not real life, unfortunately, as we can see here with gcc-4.2.0-3.

And that's what I've been talking about all the time above.

It's really too bad that we do not know the actual AIX-rpm version of the AIX 5.3 installation in question here!
If it were indeed something below 5.3 some very strange things must have happened during installation/upgrade of this AIX 5.3, as I already wrote.
And in this case (and only in this case) running updtvpkg could actually help by harmonizing the version numbers of AIX and AIX-rpm.

I, personally, do have grave doubts here.

wmp

This is the current setting in my system-

root / >
# oslevel -s
5300-07-02-0806

root / >
# rpm -qa | grep AIX
AIX-rpm-5.2.0.40-1

root / >
# lslpp -h rpm.rte
Fileset Level Action Status Date Time
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
rpm.rte
3.0.5.41 COMMIT COMPLETE 05/01/09 17:41:15

Path: /etc/objrepos
rpm.rte
3.0.5.41 COMMIT COMPLETE 05/01/09 17:41:22
 
....
I tried installing an older version of gcc-3.3.2-5.aix5.3.ppc.rpm, but it gave me the same error i had gotten when i tried installing gcc-4.2.0-3.aix5.3.ppc.rpm and both versions gave me the following error. of needing an AIX-rpm greater than 5.3.0.0 .

+-----------------------------------------------------------------------------+
RPM Error Summary:
+-----------------------------------------------------------------------------+
The following errors occurred during installation:
error: failed dependencies:
AIX-rpm >= 5.3.0.0 is needed by gcc-3.3.2-5



So the issue to me, as it seems is that, the gcc versions are for aix 5.3 and although the current level of my aix is 5300-07-02-0806, but my AIX-rpm version states AIX-rpm-5.2.0.40-1(and needs to be updated) . According to you and the search i did online, it seems as the AIX-rpm "version" should show the current oslevel version which is 5300-07-02-0806.

Is that correct?

From my online search i came across this link, which states on how to update your AIX-rpm version. http://www.coolcommands.com/index.php?option=com_cc&task=display&id=789

It is mentioned to to update bos.rte and than use the following command /usr/sbin/updtvpkg to update AIX-rpm. Can you please provide your insight on that? is updating bos.rte neccesary, when the oslevel is already at 5300-07-02-0806, which is higher the 5.2.0.40-1 (the version, AIX-rpm reads).

Please assist with getting gcc installed on this system. Thank you.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It worked- /usr/sbin/updtvpkg updated the AIX-rpm version, which allowed for a successful gcc installation.

Thank you for your help.