For example, if the server (CentOS) has PHP 5.2.6 installed and has added a third party repository that provides both PHP 5.2.12 and PHP 5.3.1.
PHP 5.2.12 and PHP 5.3.1 are the latest versions for PHP 5.2 and PHP 5.3 respectively.
When yum update command runs, will yum simply upgrade PHP 5.2.6 to PHP 5.3.1?
Or it has some intelligence that a major upgrade (5.2 to 5.3) may cause problems and thus to be safe, it decides to upgrade to PHP 5.2.12 instead?
By the way, will a repository contain multiple versions of a package, or it only contains the latest version?
If you are using the remi repos there's a lot of help here - I used this upgrading Fedora 6:
Although more generally, all you need is
Or for a specific version, remove .i386 etc, add a hyphen then add the version
Alternatively
Will show you all packages and
Will update everything except kernel packages etc
Generally the maintainer will only provide the latest version, however it's possible to have more than one version in a repository.