prefix and reloctable rpm package according to an other rpm prefix

坚强是说给别人听的谎言 提交于 2019-12-13 22:02:36

问题


I have install sample.rpm in /opt. I want samplw2.rpm find the relocation path of sample.rpm ad install itself in same place. is there any command or macro in spec file which check it befor installation or not?


回答1:


I'm pretty sure this isn't possible; the file locations are fixed. The easiest solution would be to put them in a known location, and then set up a symlink in your %post, e.g. linking /opt/sample2 to /usr/local/sample2 where the latter is where the RPM puts the files.



来源:https://stackoverflow.com/questions/53736277/prefix-and-reloctable-rpm-package-according-to-an-other-rpm-prefix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!