what to do with *.rpmnew files?

Sjoerd Mullender sjoerd at acm.org
Thu Jul 20 14:56:32 UTC 2006


On 2006-07-20 16:22, Aaron Konstam wrote:
> On Wed, 2006-07-19 at 16:21 -0700, Don Russell wrote:
>> Today I updated sendmail via yum and received a warning that 
>> /etc/mail/sendmail.mc was created as /etc/mail/sendmail.mc.rpmnew.
>>
>> (A few other files had the same warning, but they are created from the 
>> .mc file so I'm not too concerned.)
>>
>> I gather this happens because I changed the sendmail.mc file so the 
>> update process doesn't want to wipe out my changes.
>>
>> Are there any tools to compare/apply the differences between the rpmnew 
>> version and my current version? Or, do I have to do something like run 
>> diff and then go through all the changes one by one manually?
>>
>> Thanks,
>> Don
>>
>>
> I think if you use diff with the -e option you get a script that can be
> used with sed to change the files to automagically.

No, diff -e produces a script for ed, not sed.  See the manual.

Better would be to use diff -c or diff -u and use patch to apply the
differences.  See "man diff" and "man patch".

-- 
Sjoerd Mullender

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 370 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060720/006cbcee/attachment-0001.sig>


More information about the fedora-list mailing list