[CentOS] yum/RPM behaviour: does yum/RPM overwrite a file modified by a user during an update ?

giggzounet giggzounet at gmail.com
Mon Nov 29 08:30:36 EST 2010


Le 29/11/2010 14:08, Jim Perrin a écrit :
> On Mon, Nov 29, 2010 at 7:52 AM, giggzounet <giggzounet at gmail.com> wrote:
> 
>> %config(noreplace) %{_sysconfdir}/ofed/openib.conf
> 
> This is what a config file looks like in a spec file. See how it has
> %config at the beginning of the line, with the option of noreplace.
> This file is a config and will not be replaced as far as rpm is concerned.
> 
>> %{_sysconfdir}/sysconfig/network-scripts/ifup-ib
> 
> This file has no such markings, and is not considered a config file by
> rpm. it will be replaced on update.
> 
> 
> 

great! thx for the help.

Bye bye



More information about the CentOS mailing list