, 1 min read
cpio command cheat sheet
cpio is a command, which is less used than tar. So the required options are often forgotten. cpio needs the < redirection to get its archive from stdin.
- List content of cpio-archive:
cpio -tv < archive - Extract data out of cpio-archive:
cpio -idmv < archive,-iis extract,-dcreates required directories,-mpreserves modification times
rpm-files are essentially cpio-archives or compressed cpio-archives.