Cpio
From Attie's Wiki
(Difference between revisions)
m |
m |
||
Line 2: | Line 2: | ||
<source lang="bash"> | <source lang="bash"> | ||
find . | cpio -oH newc > ../myfs.cpio | find . | cpio -oH newc > ../myfs.cpio | ||
+ | </source> | ||
+ | |||
+ | == Extract a CPIO archive == | ||
+ | <source lang="bash"> | ||
+ | cat ${CPIO_ARCHIVE} | cpio -i --no-absolute-filenames | ||
</source> | </source> | ||
Latest revision as of 11:21, 28 November 2012
Contents |
[edit] Create a CPIO archive
find . | cpio -oH newc > ../myfs.cpio
[edit] Extract a CPIO archive
cat ${CPIO_ARCHIVE} | cpio -i --no-absolute-filenames
[edit] View the files in an .rpm file
rpm2cpio myrpmfile.rpm | cpio -it
[edit] Extract the files from an .rpm file
rpm2cpio myrpmfile.rpm | cpio -idmv