Cpio

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
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
Line 1: Line 1:
 +
== Create a CPIO archive ==
 +
<source lang="bash">
 +
find . | cpio -oH newc > ../myfs.cpio
 +
</source>
 +
 
== View the files in an .rpm file ==
 
== View the files in an .rpm file ==
 
<source lang="bash">
 
<source lang="bash">

Revision as of 19:24, 26 August 2012

Create a CPIO archive

find . | cpio -oH newc > ../myfs.cpio

View the files in an .rpm file

rpm2cpio myrpmfile.rpm | cpio -it

Extract the files from an .rpm file

rpm2cpio myrpmfile.rpm | cpio -idmv
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox