How to extract contents of an RPM package
Submitted by linportal on Fri, 2007-03-02 00:42
Use the following procedure to extract contents of an RPM package:
rpm2cpio package.rpm | cpio -dimv
As the name implies, rpm2cpio takes an RPM package file and converts it to a cpio archive. The -i flag to the cpio command indicates that cpio is reading in the archive to extract files, and the -d flag tells cpio to construct directories as necessary. The -v flag tells cpio to list file names as files are extracted, and the -m flag tells cpio to retain previous file modification times when creating files.
»
- linportal's blog
- Add new comment
- 24653 reads








Recent comments
1 week 3 days ago
1 week 3 days ago
1 week 6 days ago
3 weeks 2 days ago
4 weeks 11 hours ago
9 weeks 2 days ago
10 weeks 12 hours ago
10 weeks 1 day ago
10 weeks 5 days ago
11 weeks 5 days ago