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@xxxxxxxxx>
To: "rpm-list@xxxxxxxxxxxxx" <rpm-list@xxxxxxxxxxxxx>
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@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list