Regarding RPM

Jason Pyeron jpyeron at pdinc.us
Sun Jun 20 13:06:03 UTC 2010


> -----Original Message-----
> From: rpm-list-bounces at lists.rpm.org 
> [mailto:rpm-list-bounces at lists.rpm.org] On Behalf Of Amol P
> Sent: Sunday, June 20, 2010 8:17
> To: rpm-list at lists.rpm.org
> Subject: Regarding RPM
> 
> Hi All,
> 
> I have few questions regarding RPM:
> 
> 1.) Considering that certain condition doesn't get met, then 
> can we *exit* from the pre/post installation shell script by 
> providing the k/w 'exit' ?
> 
> 2.) Can I take a User Input in pre/post installation section 
> of RPM during installation of RPM.
> For example, during the installation of RPM, I would like to 
> ask to user to provide a installation path for the 
> application that is going to be installed etc.

No, that is an anti-pattern, and would break most rpm installers. RPMs are
designed to be installed in an unattended mode.

> If No, then is there any other work around to do the same?

Config RPMs. Typicall address the interactive portion requirement. For your
dynamic install path issue, I suggest you use a macro, and rebuild the source so
the %files section would be correct.


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 



More information about the Rpm-list mailing list