Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I had some files on a server. Then I installed a rpm package that have same files in it. As a result, rpm package overwrite these files and I lost my newly edited files. I wonder if there is a way to recover/restore these files via rpm capabilities?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

rpm does not create backups of files that are not marked as configuration files, so the changes are lost. However, rpm also won't overwrite files that exist in the rpmdb but have a different signature, and will refuse to install the package unless forced.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.