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

Solution Verified - Updated -


  • 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
cpio: premature end of file


Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content