[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: %configure question
- From: bob proulx com (Bob Proulx)
- To: rpm-list redhat com
- Subject: Re: %configure question
- Date: Sun, 25 Jun 2006 19:22:37 -0600
Tom Hicks wrote:
> I want to do something like %configure but with a slightly different goal.
> I'm looking to have a file marked as belonging to a package so that when I
> uninstall a package the file is removed but when I upgrade the package I
> don't want it to change.
You are talking about different things here. %configure is a macro
that expands to an action usually in the %build script. But files
being part of the package are directives in the %files section. Those
are two unrelated things.
> Also I'd prefer if rpm --verify would either ignore the file or only
> check to see if it exists. I believe this would be possible. Could
> some knowledgable souls please advise me on whether there is some
> build in functionality for this or even some way to do it that's not
> too nasty of a hack.
I think you are best going with not including the file in the %files
section and removing the file in the %postun script. However a bug
there is unrecoverable by upgrade because the %postun script for the
old package runs last. Test the upgrade paths very carefully.
Bob
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]