[Tip] Problem with rpm ("different operating system")

I have once experienced this problem without understanding what caused it but now learned thatn there is even a PMR dealing with it. Sometimes it happens that you encounter the following (rather cryptical) error message when trying to install an rpm-package:

package <rpm_package_name> is for a different operating system

Seeing this error for rpm-packages explicitly made for AIX and downloaded from IBM makes the error message rather unlikely to be true. Of course you can override rpm s safety measures with the --ignoreos option, but you surely want to know und understand what causes it in first place:

This is usually because of an incorrect entry in /opt/freeware/lib/rpm/rpmrc like the following:

[....]
os_compat: aix7.2: aix7.1: aix6.1 aix6.0 aix5.3 aix5.2 aix5.1 aix5.0 aix4.3
os_compat: aix6.1: aix6.0 aix5.3 aix5.2 aix5.1 aix5.0 aix4.3
os_compat: aix6.0: aix5.3 aix5.2 aix5.1 aix5.0 aix4.3
[...]

What you need to do is to correct this to the following form:

[....]
os_compat: aix7.2: aix7.1: aix6.1 aix6.0 aix5.3 aix5.2 aix5.1 aix5.0 aix4.3
os_compat: aix7.1: aix6.1 aix6.0 aix5.3 aix5.2 aix5.1 aix5.0 aix4.3
os_compat: aix6.1: aix6.0 aix5.3 aix5.2 aix5.1 aix5.0 aix4.3
os_compat: aix6.0: aix5.3 aix5.2 aix5.1 aix5.0 aix4.3
[...]

I hope this helps.

bakunin

2 Likes

. . . .