parsed.org

Tips by tag: cpio

Copying a filesystem by xinu on Jan 12, 2005 10:59 AM

Here is a way to copy an entire filesystem without descending down its subsumed mount points. This example uses the root filesystem:

$ find / -xdev | cpio -pm /desired/location
commandscopycpiofilesystemfindrootshell
Extract RPM by xinu on Aug 17, 2005 11:22 AM

If you want to extract the contents of an RPM to the current directory without installing it, run the following:

rpm2cpio foo.rpm | cpio -idv
commandscpioextractinstallationrpmrpm2cpio
RSS