building a package that can not be upgraded

Hebenstreit, Michael michael.hebenstreit at
Mon Jul 9 15:20:31 UTC 2012

I can think of some complex packages with very involved installation procedures where upgrading might be a problem. Other than that, no, can't think of anything else


From: rpm-list-bounces at [mailto:rpm-list-bounces at] On Behalf Of Valery Reznic
Sent: Saturday, July 07, 2012 9:51 AM
To: General discussion about the RPM package manager
Subject: Re: building a package that can not be upgraded

I never said package that can't be updated useless, I just asked what it can be used for,
because my imagination has it's limits.

In your example - you said yourself  - one as easily can just remove package from repository.
OK, with non-upgradable package may be one will get more clear message. Good thing too.

Any other uses?


From: Stuart D Gathman <stuart at<mailto:stuart at>>
To: rpm-list at<mailto:rpm-list at>
Sent: Friday, July 6, 2012 8:49 PM
Subject: Re: building a package that can not be upgraded

On 07/05/2012 05:09 PM, Valery Reznic expounded in part:
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?

Like /dev/null and /dev/full, such boundary conditions often have uses.  For instance, how about an RPM package that can't be *installed*?  Why would you want such an apparently useless thing?  Well, right off, I could see it being useful in some repository to replace a broken package - effectively also preventing anything depending on it from being installed with a clean error.  (Although simply removing the broken package from yum repo results in a reasonable error message.)

In fact, the use case for "can't be upgraded" in this instance is a broken package.  Eventually, the package will be fixed, and *then* you will want to upgrade it.  So maybe you want to create a new release of the current (broken) version that can't be installed.  That will prevent updates with yum until you get it fixed.

Rpm-list mailing list
Rpm-list at<mailto:Rpm-list at>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Rpm-list mailing list