momo zone

调核人的blog

从rpm 档提取文件

1) The easiest way is to use Midnight Commander to navagate into the RPM
and then copy the file out that you are interested in. 

2) Another method is to do it at the command line using the following
commands:
cd /tmp
md rpmtmp
cd rpmtmp
rpm2cpio {FullNameOfRPM} | cpio -iumd {FullNameOfFileToExtract}
Be sure to clean up after you.

According to Pam Roberts:

3) You can use rpm-get, which is in rpm-utils-1.5-1.noarch.rpm from your
friendly local rpmfind.net and installs without any problems.

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: