Linux Commands - rpm2cpio command (compress an RPM package into a CPIO archive)

by
Jeremy Canfield |
Updated: March 20 2020
| Linux Commands articles
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 ftp://195.220.108.108/linux/fedora-secondary/development/rawhide/source/SRPMS/l/logrotate-3.9.2-3.fc24.src.rpm
Compress the RPM package into a CPIO archive:
[root@server1 ~]# rpm2cpio logrotate-3.9.2-3.fc24.src.rpm > logrotate.cpio
Did you find this article helpful?
If so, consider buying me a coffee over at