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
- 26666 reads








Recent comments
1 hour 54 sec ago
4 weeks 3 days ago
4 weeks 3 days ago
6 weeks 1 day ago
10 weeks 1 day ago
12 weeks 1 day ago
12 weeks 1 day ago
12 weeks 1 day ago
12 weeks 5 days ago
16 weeks 18 hours ago