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
Related Articles:
- 2010/06/25 Viewing archive without extracting.
- 2010/06/25 A Unix/Linux cheatsheet complete in most respects.
- 2010/06/25
- 2010/06/24 Linux is just too open
- 2010/06/24 Check file usage using fuser
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.