[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to take user input while in preinstall directive while installing RPM



On Fri, May 11, 2007 at 07:04:55PM +0530, Kumar, Manish wrote:
> I am novice in RPM . I am writing a spec file in which before
> installation in the %pre section I want to call a script this script
> should take user input like some configuration parameters to install the
> software.
>  

This is a very frequently asked newbie question, and the answer is: don't do
that. RPM is not meant to be interactive. What would a GUI tool like yumex
or anaconda do when your script started asking questions mid-transaction?

 If you need configuration parameters, to install, make a wrapper around the
RPM. But even better, make the software configure itself on first run.

-- 
Matthew Miller           mattdm mattdm org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]