rpmsave and rpmnew files.

2010-06-25 123 words 1 min read

When upgrading an rpm based Linux System, all of us would have seen ”*.rpmsave” or ”*rpmnew” files being created. These are the config files in the rpm that rpm utility thinks should be overwritten (creates a *.rpmsave for the earlier file) or should not be overwritten (create *.rpmnew with the new file).

If you ever wondered what to do with these files then you can use this small script that would show the diff between the two files and you can decided which to keep or which to delete.

for i in `find / -print | egrep ”rpmnew$|rpmsave$”` ;

do echo ;

echo;

echo ===================================================;

echo $i;

echo ===================================================;

echo;

diff -y -u $i `echo $i |sed -e ’s/\.rpmsave//g’ |sed -e ’s/\.rpmnew//g’`;

done


Tags: Linux

Related Articles:


author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it