Answers:
从rpm
手册页:
--prefix NEWPATH
For relocatable binary packages, translate all file paths that
start with the installation prefix in the package relocation
hint(s) to NEWPATH.
--relocate OLDPATH=NEWPATH
For relocatable binary packages, translate all file paths that
start with OLDPATH in the package relocation hint(s) to NEWPATH.
This option can be used repeatedly if several OLDPATH's in the
package are to be relocated.
rpm
,不是yum
。
您可以仅chroot /tp/
将根目录更改为该位置。然后重试yum
安装。
这对于LIVEOS是很常见的,例如对于需要大包装安装的原型/测试运行,而预先设计的RAMDISK在该特定位置的分配很小。