Some issues also in RHEL5: [root@rhel57 ~]# file bz676045/* bz676045/dummy-1.0-1.i386.rpm: RPM v3 bin i386 dummy-1.0-1 bz676045/dummy-1.0-1.ia64.rpm: RPM v3 bin IA64 dummy-1.0-1 bz676045/dummy-1.0-1.noarch.rpm: RPM v3 bin dummy-1.0-1 bz676045/dummy-1.0-1.ppc64.rpm: RPM v3 bin dummy-1.0-1 bz676045/dummy-1.0-1.ppc.rpm: RPM v3 bin PowerPC dummy-1.0-1 bz676045/dummy-1.0-1.s390.rpm: RPM v3 bin dummy-1.0-1 bz676045/dummy-1.0-1.s390x.rpm: RPM v3 bin dummy-1.0-1 bz676045/dummy-1.0-1.x86_64.rpm: RPM v3 bin i386 dummy-1.0-1 bz676045/dummy.spec: ASCII text [root@rhel57 ~]# rpm -q file file-4.17-15.el5_3.1 +++ This bug was initially created as a clone of Bug #676045 +++ +++ This bug was initially created as a clone of Bug #676041 +++ Description of problem: file doesn't detect certain architectures of RPM files, e.g. ppc64 or s390x. Version-Release number of selected component (if applicable): All. How reproducible: Always. Steps to Reproduce: 1. file foo-1.0-1.ppc64.rpm Actual results: RPM v3.0 bin Expected results: RPM v3.0 bin PowerPC 64 (or similar) Additional info: File doesn't recognize RPM arches for ppc64, s390, s390x and possibly others.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: Magic patterns for RPM didn't contain detection for MiNT, S/390, S/390x, PowerPC64, SuperH and Xtensa architectures. Consequence: RPM packages for those architectures were not detected by File and was detected as "bin". Fix: Detection for mentioned architectures have been added into RPM magic pattern. Result: File detects mentioned architectures properly now.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0201.html