Re: %config, %config(noreplace) and %post-install actions

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

 




What we do here is to put the config as a seperate rpm.

you can then produce a rpm for each localization setup.

If you really want to get fancy, you can have the main rpm select which rpm to install in post config and install it.


On Thu, 7 Jul 2005, Adam Welch wrote:

I like the semantics of %config and %config(noreplace).  However, I find
that I'd often like to make small modifications to config files as part
of post-installation, and not have these modifications trigger the
.rpmsave or .rpmnew on the next upgrade.  You see, often the
configuration modifications that I make in post-install are of the
"localization" variety, rather than the "customization" variety.  I'd
like the "localization" mods to not be reflected in the "changed-or-not"
status of the package.  That is, I think that I'd like to munge the MD5
of various config files as part of post-install, to account for
localizations.

Now, it seems to me having used RPM and monitored this list for some
time, that even if this is possible it may violate the "spirit of RPM".
My sense is that RPM gurus tend to advocate for minimal %post-install
activity, so that RPMs are harder to break and are therefore more
flexible, and more easily reused in contexts such as yum.

I'd appreciate comments both on the immediate problem and/or if/how
"solving" it would violate the "spirit of RPM."

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


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager             7 West 24th Street #100     -
- +1 (443) 921-0381                 Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited.


[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