Re: rpm user input
Toralf Lund <[email protected]> Thu, 10 Apr 2008 23:09:41 +0200
| Newsgroups | gmane.linux.redhat.rpm.general |
|---|---|
| Message-ID | <[email protected]> |
nived g wrote: > Hello, > > I need to build an RPM that requires the user to input some values > during install time. I've searched regarding this and came to know > that RPM doesn't support interactive installation. But I've seen > certain RPMs which, for example, requires the user to accept license > during install time. Is there any way to do this? The installation of > the software that I'm trying to package will always be manual. 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. - Toralf > Thanks. > > Regards, > Nived > > ------------------------------------------------------------------------ > > _______________________________________________ > Rpm-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/rpm-list