Thanks Tres, I tried that in %pre and in the case of condition failure gave a exit 1. That works fine, but I get the message "error: %pre(ABC-1.1-b13p1) scriptlet failed, exit status 1 error: install: %pre scriptlet failed (2), skipping ABC-1.1-b13p1" Is it possible to suppress this error message and give my own message ?? Regards Sateesh -----Original Message----- From: Tres Seaver [mailto:tseaver@xxxxxxxx] Sent: Wednesday, November 10, 2004 12:59 AM To: sahegde@xxxxxxxxx Subject: Re: Hardware check before installing a rpm Sateesh wrote: > I need to do some checking of hardware before installing and only if > the checks are correct then only I need install, other wise exit with > error. Is it possible to check this using %ifXXX or like xxx_canon > tags? What are the possible value for xxx in these ?? The interesting one in your case is '%pre'. Check out the online version of Maximum RPM for details. Tres. -- =============================================================== Tres Seaver tseaver@xxxxxxxx Zope Corporation "Zope Dealers" http://www.zope.com _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list