{"id":885,"date":"2010-07-08T10:12:22","date_gmt":"2010-07-08T08:12:22","guid":{"rendered":"http:\/\/raftaman.net\/?p=885"},"modified":"2021-05-15T11:46:40","modified_gmt":"2021-05-15T09:46:40","slug":"dealing-with-rpmnew-and-rpmsave-files","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=885","title":{"rendered":"Dealing with .rpmnew and .rpmsave files"},"content":{"rendered":"<p>When an upgrade includes changes to a default configuration file, the package will write either a <strong><tt.>.rpmnew<\/code><\/strong> or a <strong><code>.rpmsave<\/code><\/strong> file instead of overwriting the configuration file on your system. Which file a package creates is up to the discretion of the package maintainer.<\/p>\n<p>From <a href=\"http:\/\/www.linux.com\/archive\/feature\/121476\">&#8220;Dealing with .rpmnew and .rpmsave files&#8221;<\/a> By Bruce Byfield:<\/p>\n<blockquote><p>\nAn <strong>.rpmnew<\/strong> file contains the new default configuration file and leaves your original configuration file untouched. By contrast, and <strong>.rpmsave<\/strong> file is a copy of your original configuration file, which has been replaced by the new default file.\n<\/p><\/blockquote>\n<p>The following script can be helpful to find (and possibly merge) those files with your original configuration<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfor a in $(find \/etc \/var -name '*.rpm?*'); do diff -u $a ${a%.rpm?*}; done\r\n<\/pre>\n<p>You may also want to check on<a href=\"http:\/\/www.redhat.com\/archives\/rhl-devel-list\/2007-March\/msg00601.html\"> yum-merge-conf<\/a>, a yum plugin to merge configuration files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When an upgrade includes changes to a default configuration file, the package will write either a .rpmnew or a .rpmsave file instead of overwriting the configuration file on your system. Which file a package creates is up to the discretion of the package maintainer. From &#8220;Dealing with .rpmnew and .rpmsave files&#8221; By Bruce Byfield: An .rpmnew file contains the new&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=885\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[28,13,7,48,35],"class_list":["post-885","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-bash","tag-centos","tag-fedora","tag-rpm","tag-yum"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=885"}],"version-history":[{"count":7,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/885\/revisions"}],"predecessor-version":[{"id":1244,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/885\/revisions\/1244"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}