CentOS: update a package from a repository safely on a production server
- by dan
Hello everybody.
I have a CentOS server on a production environment. I need to update the PHP package that I installed using the REMI repository.
Quite easy:
yum update php
But what is it going to happen if something goes wrong during the update? How can I rollback?
What's the best technique to make sure not to compromise a production server due to an update?
Is it maybe better to compile PHP from the source, rather than using a binary package?
EDIT: I am not afraid of incompatibility between my code and the new PHP version (I have well tested that on development). I am more afraid of something going wrong while CentOS updated the binary (power cut, lost connection, unexpected conflit)
Thanks,
Dan