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]

 



Le Fri, 11 May 2007 09:45:52 -0400
Matthew Miller <mattdm@xxxxxxxxxx> é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

_______________________________________________
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