RPM - Install time parameters

前端 未结 3 1147
无人共我
无人共我 2020-12-15 23:25

I have packaged my application into an RPM package, say, myapp.rpm. While installing this application, I would like to receive some inputs from the user (an

3条回答
  •  悲&欢浪女
    2020-12-15 23:31

    You could use the relocate option, e.g.

    rpm -i --relocate /env=/uat somepkg.rpm
    

    and have your script look up the variable data from a file located in the "env" directory

提交回复
热议问题