Cpio
From Attie's Wiki
(Difference between revisions)
m (Created page with '== View the files in an .rpm file == <source lang="bash"> rpm2cpio myrpmfile.rpm | cpio -it </source> == Extract the files from an .rpm file == <source lang="bash"> rpm2cpio myr…') |
m |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
+ | == Create a CPIO archive == | ||
+ | <source lang="bash"> | ||
+ | find . | cpio -oH newc > ../myfs.cpio | ||
+ | </source> | ||
+ | |||
+ | == Extract a CPIO archive == | ||
+ | <source lang="bash"> | ||
+ | cat ${CPIO_ARCHIVE} | cpio -i --no-absolute-filenames | ||
+ | </source> | ||
+ | |||
== View the files in an .rpm file == | == View the files in an .rpm file == | ||
<source lang="bash"> | <source lang="bash"> |
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