Guidelines for %config and %config(noreplace)
Tomas Mraz
tmraz at redhat.com
Mon May 23 18:40:07 UTC 2005
On Mon, 2005-05-23 at 21:31 +0300, Ville Skyttä wrote:
> On Mon, 2005-05-23 at 19:45 +0200, Michael Schwendt wrote:
> > On Mon, 23 May 2005 19:37:47 +0200, Tomas Mraz wrote:
> >
> > > Are there any guidelines when to use %config and when %config
> > > (noreplace)?
>
> How about "Always use noreplace unless your best guess is that it will
> break things"? AFAICS there are really only two situations where
> noreplace is likely to break stuff:
>
> 1) An app is being upgraded from an earlier version which had
> incompatible config files which will break the new version.
>
> 2) An app is being installed for the first time from a rpm, and a file
> marked as config in the package was already present on the system before
> installing the package, AND it's not likely that the app being installed
> would work with the config file that was already present on the system.
That's exactly what I wanted to hear, thanks Ville.
Could someone with rights put this to
http://fedoraproject.org/wiki/PackagingGuidelines
--
Tomas Mraz <tmraz at redhat.com>
More information about the Fedora-maintainers
mailing list