CentOS: update a package from a repository safely on a production server

Posted by dan on Server Fault See other posts from Server Fault or by dan
Published on 2011-01-13T01:10:38Z Indexed on 2011/01/13 1:54 UTC
Read the original article Hit count: 331

Filed under:

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

© Server Fault or respective owner

Related posts about centos