Re: Using older confi files after yum update

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1289337370.19843.27.camel@oliver>
On Tue, 2010-11-09 at 13:53 -0700, Jake Adams wrote:
> Greetings!
> 
> I have been searching the web and the mailing lists for an answer to
> this, but have been unable to find anything about it.
> 
> I have a config file that I have modified for my environment.  However,
> when I do a yum update it overwrites this file.  I can restore the old
> file from another machine and everything works fine.  Can I tell yum to
> not replace that one file during a yum update?
> 

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.