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

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

 



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@xxxxxxxxxx          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux