Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

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.

share|improve this answer

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

share|improve this answer

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.

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.