building RPM package: force to install in path of a dependent relocated package

↘锁芯ラ 提交于 2019-12-02 02:47:55

Hah. So I did a bit of source diving and discovered that apparently (at least for rpm 4.8.0 I didn't look at other versions) the RPM_INSTALL_PREFIX and RPM_INSTALL_PREFIX# environment variables are set for the %pre (and possibly other scriptlets) to the values of (what appear to be the %{INSTPREFIXES} and/or %{INSTALLPREFIX} macros). [source link]

I would try those in your %pre script. They look like they will give you what you want.

Same code in rpm head.

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