rpmnew substitution

I am tired of having to re-write, manually, all the *.rpmnew files that appear when I upgrade. Most of them don’t need to be diff’ed, in my case at least.

For example, I just diff the httpd.conf file and that’s it so, here’s a script to mv *.rpmnew to *:


find . -iname '*.rpmnew' | while read f; do mv -f $f ${f%.rpmnew}; done

Thanks zcat, from irc://freenode/fedora

One thought on “rpmnew substitution

  1. Ok, there’s this new yum-merge-conf plugin in Fedora 7. This one takes care of it and I quote:

    This yum plugin adds the “–merge-conf” command line option. With this option,
    Yum will ask you what to do with config files which have changed on updating a
    package.

    – yum-merge-conf’s info

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>