提取rpm檔案內容

qqmengxue發表於2012-01-31

Quickest way to get going would be to use rpm2cpio

rpm2cpio package.rpm > package.cpio

cpio -idumv < package.cpio

That last op will create a tree containing folders and files that come with the package. You could do a dry run in /tmp and copy everything into place, or, alternatively (and might I add, at your own risk) run it in "/" so that the files are copied into the correct locations. You might also need to add any custom library paths to /etc/ld.so.[d | conf] and run ldconfig.

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10130206/viewspace-1057217/,如需轉載,請註明出處,否則將追究法律責任。

相關文章