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

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


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