whatis rpm2cpio
rpm2cpio (8) - Extract cpio archive from RPM Package Manager (RPM) package
whatis cpio
cpio (1) - copy files to and from archives
cpio.h [cpio] (0p) - cpio archive values
cpio (rpm) - A GNU archiving program.
e.g
rpm2cpio banner-1.3.1-5.fc8.i386.rpm | cpio -idmv
cd usr/bin/
./banner
This will exract files from rpm and copy to the required place. As above eg. copy the banner binary to /usr/bin
-d, --make-directories Create leading directories where needed
-i, --extract Extract files from an archive (run in copy-in
mode)
-m, --preserve-modification-time
Retain previous file modification times when
creating files
-v, --verbose Verbosely list the files processed
No comments:
Post a Comment