[Yum] Using older confi files after yum update

Jake Adams jadams5 at cs.byu.edu
Wed Nov 10 19:47:06 UTC 2010


seth vidal wrote:
> Is it yum's config file? OR just a config file of some kind from some
> pkg?
> 
> If it is the former - then I'm surprised.
> 
> If it is the latter then are you sure it is marked as a config file in
> the rpm specfile for the owning pkg?
> 
> If not then you can mark the file %config(noreplace) which should keep
> the file from being changed.
> 
> -sv
> 

Thanks for the reply.  I wasn't very clear at first- I've modified a
file that is provided by a package (/etc/X11/xinit/Xsession, provided by
xorg-x11-xinit for fedora 13 for the curious) but when I update that
package it copies over a new version of the file and removes my edits.
I'm not looking to build my own RPM (which is my understanding of where
the %config(noreplace) comes into play) but just somehow mark this file
so it isn't changed.  I can blacklist the whole package, but I'm looking
for something a little more granular.  I understand if it's something
yum isn't capable of, I just haven't been able to find anything that
says one way or the other.

Jake Adams


More information about the Yum mailing list