Re: rpm user input

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

 



Brian J. Murrell wrote:
On Thu, 2008-04-10 at 23:09 +0200, Toralf Lund wrote:
You can enter any program/command in the %pre and %post sections of the spec, including ones that ask for user input. These sections are essentially scripts that get executed before and after the files are installed, respectively. If the %pre script(let) exits with a "false" (non-0) status, the rpm won't actually be installed.

Ehm.  I thought interactivity in rpm scripts was verboten.  I thought
one of the primary tenets of RPM packages is that they MUST do their
work without any interaction as interaction may not always be possible
(think batch installation).
Depends on how you see it and what you mean. Yes, in guidelines for good & proper packaging, interactivity is probably forbidden. Technically, in terms of how rpm actually works, it is allowed, as far as I know. Or to be more precise, rpm doesn't impose any extra restrictions, so interactivity works, if and only if, it does in the environment rpm is executed from.

Also, I didn't say *I* would do this, did I?

- Toralf


_______________________________________________
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