> rpm -qa
Showing posts with label rpm. Show all posts
Showing posts with label rpm. Show all posts
Monday, February 27, 2012
Extract RPM without installing
Extract RPM file using rpm2cpio and cpio command:
> rpm2cpio php-5.1.4-1.esp1.x86_64.rpm | cpio -idmv
Output:
/etc/httpd/conf.d/php.conf
./etc/php.d
./etc/php.ini
./usr/bin/php
...
19188 blocks
Output of rpm2cpio piped to cpio command (see how to use cpio) with following options:- i: Restore archive
- d: Create leading directories where needed
- m: Retain previous file modification times when creating files
- v: Verbose i.e. display progress
Subscribe to:
Posts (Atom)