How to compress an RPM package into a CPIO archive using rpm2cpio

Home > Search > How-to

In this example, the logrotate RPM package will be downloaded using the WGET command, and then the RPM package will be compressed into a CPIO archive.

Download the logrotate package using the WGET command.

[root@server1 ~]# wget


Compress the RPM package into a CPIO archive:

[root@server1 ~]# rpm2cpio logrotate-3.9.2-3.fc24.src.rpm > logrotate.cpio


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter in the box below so that we can be sure you are a human.