RPM - Install time parameters

前端 未结 3 1149
无人共我
无人共我 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:34

    I think this is a very valid question, specially as soon as you are moving into the application development realm. There he configuration of the application for different target systems is your daily bread: you need to configure for Development, Integration Test, Acceptance Test, Production etc. I sure don't think building a seperate package for each enviroment is the solution. Basically it should be the same code running in different enviroments. I know that this requirement is not supported by rpm. But what you can do as a work around is to use a simple config file, that the %pre script knows to look for. The config file could be a simple shell script that for example sets environment variables, and then the different und pre and post scripts can use those.

提交回复
热议问题