building a package that can not be upgraded

Valery Reznic valery_reznic at yahoo.com
Thu Jul 5 21:09:45 UTC 2012


You can write pre-install script that check number of installed package instances ($1, iirc) and if
package already installed, then exit with error message and non-zero status.

But why do you want to do such a thing?

Valery




>________________________________
> From: "Hebenstreit, Michael" <michael.hebenstreit at intel.com>
>To: "rpm-list at lists.rpm.org" <rpm-list at lists.rpm.org> 
>Sent: Thursday, July 5, 2012 8:17 PM
>Subject: building a package that can not be upgraded
> 
>Is there an easy way to create a package that throws an error when trying to upgrade? Aka rpm -i should work, rpm -F/-U should not
>
>
>Thanks
>Michael
>
>_______________________________________________
>Rpm-list mailing list
>Rpm-list at lists.rpm.org
>http://lists.rpm.org/mailman/listinfo/rpm-list
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20120705/8d59d7d4/attachment.html>


More information about the Rpm-list mailing list