问题
i have a rpm package, and i need to extract some files from it. The package is not relocatable, i have try "rpm --root/--prefix", which doesn't work. what methods i should take to do the extraction?
Thank In Advace.
回答1:
if You need to extract some file only, use this commands:
rpm2cpio rpmfile.rpm | cpio -idmv
来源:https://stackoverflow.com/questions/3280696/how-to-install-rpm-package-to-non-default-path