Friday, August 5, 2011

Extract rpm without installing

Run below command:

$ rpm2cpio packagename.rpm | cpio -idmv 
where rpm2cpio will change rpm file to cpio, -i is for extract, -d is to create leading directories where needed, -m is to preserve modification time and -v is for verbose mode.

No comments: