近日有同事问我,只想提取RPM包里的某个文件,该怎么办。
其实,RPM是用cpio打包的,因此,可以转换成cpio然后解压。一般系统都提供了rpm2cpio这个工具,那么,我们就可以如下解压:
#rpm2cpio xxxx.rpm | cpio -div
近日有同事问我,只想提取RPM包里的某个文件,该怎么办。
其实,RPM是用cpio打包的,因此,可以转换成cpio然后解压。一般系统都提供了rpm2cpio这个工具,那么,我们就可以如下解压:
#rpm2cpio xxxx.rpm | cpio -div