Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
linux:rpm [2008/08/08 12:47] a + creating a dummy RPM file |
linux:rpm [2009/05/25 00:35] 127.0.0.1 external edit |
||
---|---|---|---|
Line 31: | Line 31: | ||
**Mass uninstall of packages that match a pattern:** | **Mass uninstall of packages that match a pattern:** | ||
rpm -qa | grep pattern | xargs rpm -e | rpm -qa | grep pattern | xargs rpm -e | ||
+ | |||
+ | **How to extract contents of an RPM package** | ||
+ | | ||
+ | |||
+ | 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. | ||
===== Building a dummy/empty RPM ===== | ===== Building a dummy/empty RPM ===== |