I just hosed my Centos install and I'm wondering whether to do a yum update? I have loads of mysql and solr databases that I am working on. Will it delete those? Should I do a backup before doing a yum update?


Yes making a backup is ALWAYS the right answer.

No using package managers like yum to upgrade your system will not mess with your data.

The only caveat is that sometimes data formats change between versions of software. For example the data storage format mysql uses might change, and the upgrade scripts might help you convert your data to the new system, but it is very unlikely that a package upgrade like this will actually break your data. Also backups are the right thing to do because if anything goes wrong with system updates such as an unbootable system on a kernel upgrade, that backup will be nice to have in your pocket.


Never do anything you're unsure of out of desperation. Always have a backup even if you think you know what will happen.


It depends on the quality of the package. If the package is written sanely then it will not affect your data in any way. Almost all first-party packages are sane.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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