It is true that currently CentOS have gone to
point releases.
As the link says :
The CentOS Project provides updates or other changes ONLY for the latest version of each major branch. Thus, if the latest minor version of CentOS-6 is version 6.6 then the CentOS Project only provides updated software for this minor version in the 6 branch. If you are using an older minor version than the latest in a given branch, then you are missing security and bugfix updates.
What this means is that for old minor releases no updates are provided,
so what you might as well disable all the yum repositories by adding
enabled=0
(or changing the enabled=1
to 0
) to each of the [...] sections of the files in /etc/yum.repos.d
.
Nevertheless, older minor branches can still be found in the
CentOS vault,
so you are not stuck if you have not kept up with the current minor release.
You do not have to go through the vault in sequence, as the above document also
says :
Any minor version is just a snapshot with previous updates, plus the latest batch of new upstream updates, rolled into a new [base] repo with an initially empty [updates] repo.
See also the post
How do I keep Centos at version 6.3?.
To instruct yum to install a specific version from the repository :
Modify the file /etc/yum.repos.d/CentOS-Base.repo
and change all paths
to point to baseurl=http://vault.centos.org/VERSION/...
.
List all available versions in the repository of your package using
the --showduplicates
flag.
For example for the available versions of the GD extension for PHP:
# yum --showduplicates list php-gd
Once you know the full name of the version to install, specify
the package name with the version, for example :
# yum install php-gd-5.2.6
References :