Hi, Please have a look at the patch below; It adds a new -D <DIR> option to cpio-2.11, where <DIR> is a destination directory for copy-in mode.
See: http://pjp.dgplug.org/tools/cpio-2.11-destination-dir.patch Files changed: cpio-2.11/src/copyin.c: new function: prefix_directory_name(*file_hdr) cpio-2.11/src/extern.h: new constant: int destination_dir_flag; cpio-2.11/src/global.c: new constant: int destination_dir_flag = false; cpio-2.11/src/main.c: new option -D <DIR> Now the command works well, $ rpm2cpio bash-3.2-24.el5.x86_64.rpm | ./cpio -imdD bash I hope you find it useful. Do let me know if it needs any more changes. Thank you. --- Regards -Prasad PS: Please don't send me html/attachment/Fwd mails
