Re: %configure question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux