RPM Compatibility from Red Hat Enterprise Linux (RHEL) 6 to RHEL 5 and earlier
Issue
- Red Hat Enterprise Linux 5 (RHEL5) and earlier cannot install RPM packages built on RHEL6.
- Trying to install packages built on RHEL6 on an older RHEL release will give errors as follows:
# rpm -i testpkg-1.0-1.el6.x86_64.rpm error: Failed dependencies: rpmlib(FileDigests) <= 4.6.0-1 is needed by testpkg-1.0-1.el6.x86_64 rpmlib(PayloadIsXz) <= 5.2-1 is needed by testpkg-1.0-1.el6.x86_64 - Disabling the dependency checking (a bad idea!) will give more obscure errors:
# rpm -i --nodeps testpkg-1.0-1.el6.x86_64.rpm error: unpacking of archive failed: cpio: Bad magic # rpm -i --nodeps another-testpkg-1.0-2.el6.x86_64.rpm error: unpacking of archive failed on file /tmp/testpkg1.txt;4cb5bdd2: cpio: MD5 sum mismatch - Note: RHEL 6 can install packages built on RHEL 5 and older releases.
- How to create a package meant to be installed on a RHEL5 from a RHEL6 system
Environment
- Red Hat Enterprise Linux 5 with rpm-4.4.x and earlier
- Red Hat Enterprise Linux 6 with rpm-4.8.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
