SCIENTIFIC-LINUX-USERS Archives

September 2004

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steve Traylen <[log in to unmask]>
Reply To:
Steve Traylen <[log in to unmask]>
Date:
Thu, 30 Sep 2004 16:46:29 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (66 lines)
On Thu, Sep 30, 2004 at 10:39:35AM -0500 or thereabouts, Troy Dawson wrote:
> 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,

Hi Will,

  Hope all is well, There is almost a thesis on the subject here.

  http://www-uxsup.csx.cam.ac.uk/~jw35/docs/rpm_config.html

  Steve


> >
> >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
> __________________________________________________

--
Steve Traylen
[log in to unmask]
http://www.gridpp.ac.uk/

ATOM RSS1 RSS2