SCIENTIFIC-LINUX-USERS Archives

September 2008

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:
Jon Peatfield <[log in to unmask]>
Reply To:
Jon Peatfield <[log in to unmask]>
Date:
Thu, 18 Sep 2008 02:41:13 +0100
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (32 lines)
If a package has a file marked %config in the spec file then the rule is:

   if the config file hadn't been changed (ie matched that from the
   original package installation) then just replace it with the new one

   if it *has* been changed then rename the existing one to <name>.rpmsave
   and put the new one in place.

If the file is marked as config(noreplace) then the logic turns into:

   if the config file hadn't been changed (ie matched that from the
   original package installation) then just replace it with the new one

   if it *has* been changed then install the new one as <name>.rpmnew

Normally config files would be marked %config(noreplace) unless there is a 
change to the config-syntax, but the package specs sometimes get it wrong, 
especially ones which perhaps date back to before (noreplace) was an 
option (or at least a common one!)

After any update it is usually a good idea to look for .rpmsave/.rpmnew 
files just in case!

Here are some web pages describing this (just picked at random from 
googling)

http://rpm.org/api/4.4.2.2/specfile.html
http://docs.fedoraproject.org/drafts/rpm-guide-en/ch09s05.html#id2972655
http://www-uxsup.csx.cam.ac.uk/~jw35/docs/rpm_config.html

  -- Jon

ATOM RSS1 RSS2