thanks Paul Nasrat wrote: On Sun, Nov 07, 2004 at 10:37:17PM -0800, Ben Tu wrote:Hi All, I would like to build an RPM package that would ask the user for input at pre-install time and use those inputs at post-install time. does anyone know how I can do it? Can I ask user for input in the %pre script and retrieve those inputs in the %post script?No. RPM is designed to be non-interactive - consider what occurs should you not be installing via a tty - such as with a depsolver (yum/apt/up2date) or a gui. Without some more clue to what sort of actions you are trying to take it's pretty impossible to suggest alternatives, however here are some thoughts: 1) Encapsulate the dialog on first run. This is done by packages such as the macromedia plugin rpm: http://macromedia.mplug.org/rpmsource/ 2) For path changes just make a relocatable rpm Please provide some more details about what exactly you are trying to achieve. Paul _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list |
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list