Closed. This question is off-topic。它当前不接受答案。
想要改善这个问题吗? Update the question,所以它是用于堆栈溢出的on-topic。
已关闭8年。
Improve this question
rpm install命令,在所有位置安装文件,例如:/usr/bin,/usr/sbin,/etc/,/usr/share
这样,很难弄清安装的所有内容。
是否可以强制rpm将所有内容安装在单个目录中?
或在整个安装过程中使用
想要改善这个问题吗? Update the question,所以它是用于堆栈溢出的on-topic。
已关闭8年。
Improve this question
rpm install命令,在所有位置安装文件,例如:/usr/bin,/usr/sbin,/etc/,/usr/share
这样,很难弄清安装的所有内容。
是否可以强制rpm将所有内容安装在单个目录中?
最佳答案
您可以使用--relocate
更改安装过程的1个目录
rpm -i --relocate /usr/sbin=/some/other/path/sbin packagename.rpm
或在整个安装过程中使用
--prefix
rpm -i --prefix=/some/other/path/ packagename.rpm
关于linux - 如何强制RPM将文件安装在单个目录中,有可能吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13738970/