I installed PHP 5.0.4 from the CentOSPlus repo a week ago, but now the yum cronjob seems to have upgraded to a new kernel, a new MySQL and god knows what else. Big mistake.
How do I (safely) revert back to the stock CentOS 4.3 rpms? I want to keep PHP 5.0.4, but that's it.
Is there a cleaner way than uninstalling the rpms, editing the repo file and the (re)installing from base?
I just recently learned about the protectbase plugin, which I intend to use from here on out. The damage is done though.
This question is a repost from the forums. They sadly don't seem to recieve much traffic.
Best regards, Jens
Jens Jensen wrote:
I installed PHP 5.0.4 from the CentOSPlus repo a week ago, but now the yum cronjob seems to have upgraded to a new kernel, a new MySQL and god knows what else. Big mistake.
How do I (safely) revert back to the stock CentOS 4.3 rpms? I want to keep PHP 5.0.4, but that's it.
Is there a cleaner way than uninstalling the rpms, editing the repo file and the (re)installing from base?
I just recently learned about the protectbase plugin, which I intend to use from here on out. The damage is done though.
This question is a repost from the forums. They sadly don't seem to recieve much traffic.
Best regards, Jens
What is the protect base plugin and will it work with EL 4?
Jerry Hubbard schrieb:
What is the protect base plugin and will it work with EL 4?
http://mirror.centos.org/centos/4/docs/html/yum/sn-yum-maintenance.html#sn-y...
Second part of the question: yes.
Alexander
On Sun, 2006-08-06 at 00:39 +0200, Alexander Dalloz wrote:
Jerry Hubbard schrieb:
What is the protect base plugin and will it work with EL 4?
http://mirror.centos.org/centos/4/docs/html/yum/sn-yum-maintenance.html#sn-y...
Second part of the question: yes.
Alexander
Protectbase does work ... however it is not what you are trying to accomplish.
The purpose of protect base is to allow you to do updates from a repository and prevent updating any protected packages but allow updating of non-protected packages.
php would show up as protected ... and would not update.
You need to edit the centosplus section of CentOSBase.repo and use:
includepkgs=php*
that will allow you to get only php from centosplus.
You should be able to see the packages that are upgraded here:
http://mirror.centos.org/centos/4/centosplus/
(pick your arch)
and you can download the packages manually from [os] and [updates] and replace them with the command:
rpm -Uvh package1 package2 package3
(etc.)
On 8/5/06, Johnny Hughes mailing-lists@hughesjr.com wrote:
The purpose of protect base is to allow you to do updates from a repository and prevent updating any protected packages but allow updating of non-protected packages.
php would show up as protected ... and would not update.
This was discussed before on a thread I started a few weeks ago ... if the [base] section contains
protect=1 exclude=php*
then the php packages from centosplus would be available, along with any other centosplus packages that do not have corresponding packages in the base, while protecting the overlapping packages.
You need to edit the centosplus section of CentOSBase.repo and use:
includepkgs=php*
That works when protectbase is not used. Which approach is preferable probably depends on how many packages one wants from centosplus, and on whether one wants to protect the base packages from any other repos one may have enabled (such as rpmforge).