Subject: | |
From: | |
Reply To: | |
Date: | Thu, 30 Sep 2004 10:39:35 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
William Bell wrote:
> Hi,
>
> If I edit the system configuration of a package and then update that
> package with yum what happens? Does yum overwrite my configuration file
> with the new one from the new rpm?
>
> Is there a suggested and tried method of maintaining the configuration of
> a group of machines. (We previously used autorpm and re-installed our own
> rpm containing our specific configuration.)
>
> Thanks and Best Regards,
>
> Will
Hi Will,
It all depends on how you have your rpm configured. It really doesn't
have anything to do with yum, other than yum will install the rpm.
Look in your rpm spec file, down in the %file section, and see what the
file is marked as
*Marked as just a regular file, which actually means is has no marks
/mydir/myfile
rpm will just replace whatever is curently /mydir/myfile with what it has.
*Marked as a config file.
%config /mydir/myfile
rpm will check and see if that file has changed since the previous rpm
was installed.
If that file has changed then it will save it as /mydir/myfile.rpmsave
it will then put the new file in it's place.
If that file has not changed, then it will be replaced with the new file
*Marked as a noreplace config file
%config(noreplace) /mydir/myfile
rpm will check and see if that file has changed since the previous rpm
was installed.
If that file has changed, it will leave it in place. The new file will
be installed as /mydir/myfile.rpmnew
If that file has not changed, then it will be replaced with the new file
Hope this helps
Troy
--
__________________________________________________
Troy Dawson [log in to unmask] (630)840-6468
Fermilab ComputingDivision/CSS CSI Group
__________________________________________________
|
|
|