Expanding the RHEL6 package failed on RHEL5 machine with rpm2cpio and cpio

Solution Verified - Updated -

Issue

  • I use rpm2cpio and cpio command to expand a rpm package. This worked for RHEL5 packages on RHEL5, and it worked for RHEL6 packages on RHEL6.
# rpm2cpio wget-1.12-1.8.el6.x86_64.rpm | cpio -id
  • When I tried to expand a rpm package for Red Hat Enterprise Linux 6 on Red Hat Enterprise Linux 5, it failed as below.
# rpm2cpio wget-1.12-1.8.el6.x86_64.rpm | cpio -id
cpio: warning: skipped 8826 bytes of junk
...snip...
cpio: premature end of file

Environment

Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.