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

2010-11-29 Thread giggzounet
Hi, On our cluster with CentOS 5.5, I have a little problem with a script for infiniband (this problem: http://web.archiveorange.com/archive/v/NUQmuN84gd3D31Fdl8PU). So the fix a very easy. But what will yum/RPM do during the next update ? Will it overwrite the file ? Will it write on display

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

2010-11-29 Thread giggzounet
Le 29/11/2010 12:44, Gabriel Tabares a écrit : a very easy. But what will yum/RPM do during the next update ? Will it overwrite the file ? Will it write on display that the file was modified by an user (as under debian) ? As far as I can tell, if the file is marked as a configuration file

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

2010-11-29 Thread Nico Kadel-Garcia
On Mon, Nov 29, 2010 at 7:38 AM, giggzounet giggzou...@gmail.com wrote: Le 29/11/2010 12:44, Gabriel Tabares a écrit : a very easy. But what will yum/RPM do during the next update ? Will it overwrite the file ? Will it write on display that the file was modified by an user (as under debian) ?

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

2010-11-29 Thread giggzounet
Le 29/11/2010 13:41, Nico Kadel-Garcia a écrit : On Mon, Nov 29, 2010 at 7:38 AM, giggzounet giggzou...@gmail.com wrote: Le 29/11/2010 12:44, Gabriel Tabares a écrit : a very easy. But what will yum/RPM do during the next update ? Will it overwrite the file ? Will it write on display that the

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

2010-11-29 Thread giggzounet
Le 29/11/2010 13:44, giggzounet a écrit : Le 29/11/2010 13:41, Nico Kadel-Garcia a écrit : On Mon, Nov 29, 2010 at 7:38 AM, giggzounet giggzou...@gmail.com wrote: Le 29/11/2010 12:44, Gabriel Tabares a écrit : a very easy. But what will yum/RPM do during the next update ? Will it overwrite

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

2010-11-29 Thread Jim Perrin
On Mon, Nov 29, 2010 at 7:52 AM, giggzounet giggzou...@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

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

2010-11-29 Thread giggzounet
Le 29/11/2010 14:08, Jim Perrin a écrit : On Mon, Nov 29, 2010 at 7:52 AM, giggzounet giggzou...@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

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

2010-11-29 Thread ken
On 11/29/2010 07:38 AM giggzounet wrote: Le 29/11/2010 12:44, Gabriel Tabares a écrit : ... where in the rpm package can I find if the file is a configuration file or not ? This will list configuration files for an installed $package: rpm -Vv $package 21|grep -e ^ c

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

2010-11-29 Thread Jim Perrin
On Mon, Nov 29, 2010 at 12:39 PM, ken geb...@mousecar.com wrote: rpm -Vv $package 21|grep -e ^  c Or the slightly easier (and per the rpm documentation) rpm -qc packagename HTH -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell

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

2010-11-29 Thread ken
On 11/29/2010 04:29 PM Jim Perrin wrote: On Mon, Nov 29, 2010 at 12:39 PM, ken geb...@mousecar.com wrote: rpm -Vv $package 21|grep -e ^ c Or the slightly easier (and per the rpm documentation) rpm -qc packagename HTH rpm -qvc $package gives more info-- the files' permissions