[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
- From: Martin Hamant <mh accelance fr>
- To: rpm-list redhat com
- Subject: Re: How to take user input while in preinstall directive while installing RPM
- Date: Fri, 11 May 2007 16:34:22 +0200
Le Fri, 11 May 2007 09:45:52 -0400
Matthew Miller <mattdm mattdm org> écrivait:
> 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.
Debian do ! but you can tell to not ask. So you're right, don't do that
with RPM ^^
>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.
A possible solution would be to write a small shell script that
installs with the package, and ask the user to run the script somewhere
in %post, afterwards.
This not a very good idea neither to print some text at install time ,
but ... it could be a good compromise in some cases.
--
Martin
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]