• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Upgrading CentOS (minor upgrades)

N_Vas

Basic Pleskian
Hello,

Just wanted to double check what is the best way to upgrade CentOS (ie - from 6.5 to 6.6 for example) when Plesk is installed.

Want to be sure if I upgrade though CentOS directly this won't negatively affect anything in Plesk.

Thanks
 
You can install all available updates with yum but you can't use dist-upgrade.
 
To amplify Igor's post:

Forgive me if I'm telling you stuff you already know. I just want to cover all the bases.

RedHat, and downstream distributions based on it (e.g. Centos), are designed to be used in situations where you want to keep up to date in terms of security and bugfixes, but where major changes in the way things work are out of the question. This is one reason why RedHat and Centos are so popular for hosting environments.

So, as a general rule, upgrading Centos 6.x to 6.y (using the yum upgrade command) is normally a safe thing to do with Plesk installed. This is generally called a "minor" version upgrade.

What you cannot do (currently!) is upgrade from 6.x to 7.x (or 5.x to 6.x) safely, and certainly not with Plesk installed. A big jump like this is termed a "major" version upgrade.

There are some Linux distributions, Ubuntu, for example, that do allow "major" version upgrades already, but to do this with Plesk installed is not something I'd recommend (but I've been told that this view is a bit old fashioned and that I'm being a bit of a dinosaur here). And there are plans in progress (or maybe it is already done) to allow Centos to do the same thing smoothly. As I understand it, a later version of Plesk may support this type of Centos upgrade at some point in the future.

There are, very occasionally, exceptions to the rule that minor version upgrades are safe. Quite recently there was a small issue with one particular Centos 6 package, and a long time ago there was a major issue with a Centos 5 minor update. Because of this, it is usually best to wait a little while after a minor version upgrade is released before updating your systems, to check for any reports of problems.

But don't let this stop you installing important security updates, and make sure you do upgrade before too long. The kind of problems I'm talking about are usually resolved quite swiftly and it is normally vital that you upgrade - you won't get all the security updates if you don't.

And to put your mind at ease and specifically answer your question, you should not encounter any issues with 6.5 to 6.6 - I've done it on numerous systems with no problems. But it is always sensible to make a backup just in case - at the very least do a Plesk backup and copy it somewhere safe. You can't have too many backups or take too many precautions.

In fact while I'm here, one precaution you should always take when running "yum upgrade" is to actually view and check what's about to be upgraded, especially if you have any third party repos enabled. Check for unexpected changes, such as php 5.4 getting installed if you are used to running 5.3 (which can happen if you have certain third party repos enabled), and similarly for MySQL, and back out if you aren't sure you are happy with what's being updated or upgraded.
 
Hello Faris,

Thank you VERY MUCH I really appreciate this.

I'm more familiar with debian and ubunto, so I appreciate any detailed information.

So that I'm clear, to periodically run updates - would I want to run:

yum-update
or
yum-upgrade


'yum-upgrade' removes obsolete packages but I'm not sure if this is good or not (perhaps we want to keep older PHP or MySQL for example)?



Also, in the case if the CentOS server has CloudLinux installed, is there a different procedure to update the server?



Thanks again
 
I can't comment on CloudLinux - I've never used it I'm afraid.

Regarding whether to update or upgrade, a few of us were discussing this not so long ago. It is darned confusing isn't it?
The upshot of that discussion was that in the opinion of those who know a million times more than me, you should use "yum upgrade".
(also no hyphen - yum-update and yum-upgrade may be scripts that I'm not used to using and may do something different to that I'm expecting).

However, in most cases you should find that "yum update" actually does exactly the same thing as "yum upgrade" due to a configuration line in yum.conf that makes "yum update" remove obsoletes as well!
 
Back
Top