trying a yum update on mysql, postgres or php forces the others to install. is that really wanted ??
On 2/27/07, Michael Gabriel irzyxel@gmail.com wrote:
trying a yum update on mysql, postgres or php forces the others to install. is that really wanted ??
This is yum's behavior, because you have these packages installed on your system. Try it with an --exclude mysq*,postgres* and it'll work just fine. You can get around this by using an includepkg or exclude statement in the repository config file as documented in the wiki entry centosplus http://wiki.centos.org/Repositories/CentOSPlus
On Wed, 2007-02-28 at 00:48 +0100, Michael Gabriel wrote:
trying a yum update on mysql, postgres or php forces the others to install. is that really wanted ??
Here is some testing on a system with nothing else installed: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [root@i386 ~]# yum --enablerepo=centosplus install php
<snip>
============================================================================= Package Arch Version Repository Size ============================================================================= Installing: php i386 5.1.6-3.el4s1.5 centosplus 1.1 M Installing for dependencies: apr i386 0.9.4-24.5.c4.2 base 88 k apr-util i386 0.9.4-21 base 51 k curl i386 7.12.1-8.rhel4 base 231 k httpd i386 2.0.59-1.el4s1.5.el4.centos centosplus 928 k libidn i386 0.5.6-1 base 169 k php-cli i386 5.1.6-3.el4s1.5 centosplus 2.0 M php-common i386 5.1.6-3.el4s1.5 centosplus 135 k
Transaction Summary ============================================================================= Install 8 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 4.7 M
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
As you can see ... there is not a requirement for mysql or postgresql in php by itself.
Now ... IF you install php-mysql and php-pgsql, that does change:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [root@i386 ~]# yum --enablerepo=centosplus install php php-mysql php-pgsql
============================================================================= Package Arch Version Repository Size ============================================================================= Installing: php i386 5.1.6-3.el4s1.5 centosplus 1.1 M php-mysql i386 5.1.6-3.el4s1.5 centosplus 77 k php-pgsql i386 5.1.6-3.el4s1.5 centosplus 61 k Installing for dependencies: apr i386 0.9.4-24.5.c4.2 base 88 k apr-util i386 0.9.4-21 base 51 k curl i386 7.12.1-8.rhel4 base 231 k httpd i386 2.0.59-1.el4s1.5.el4.centos centosplus 928 k libidn i386 0.5.6-1 base 169 k mysql i386 5.0.27-1.el4.centos centosplus 3.3 M perl-DBI i386 1.53-2.el4s1 centosplus 602 k php-cli i386 5.1.6-3.el4s1.5 centosplus 2.0 M php-common i386 5.1.6-3.el4s1.5 centosplus 135 k php-pdo i386 5.1.6-3.el4s1.5 centosplus 219 k postgresql-libs i386 8.1.8-1.el4s1.1 centosplus 183 k
Transaction Summary ============================================================================= Install 14 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 9.1 M
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
In that case, you would get a portion of mysql and postgresql.
AND ... if you had mysql and postgresql installed, yum would want those upgraded to the version in centosplus repo.
That is the way the Web Stack works ... all the components are designed to work together.
Trying to make the Web Stack "mix and match" (ie, I want php-5 and mysql-3 and postgresql-8 ... not mysql-5) would require many changes ... and I spent 6 months begging/pleading/forcing RH to release the RHWAS code. It is a vastly superior stack for EL4 and is what the Enterprise customers want, need, and are willing to by big bucks for. It is based the source code from:
http://www.redhat.com/solutions/rhappstack/
That is the CentOS Web Stack. Not sure why it is evil ... all the components work together and offer an upgrade path.
Thanks, Johnny Hughes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Feb 28, 2007 at 02:39:57AM -0600, Johnny Hughes wrote:
On Wed, 2007-02-28 at 00:48 +0100, Michael Gabriel wrote:
trying a yum update on mysql, postgres or php forces the others to install. is that really wanted ??
Here is some testing on a system with nothing else installed: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [root@i386 ~]# yum --enablerepo=centosplus install php
curl i386 7.12.1-8.rhel4 base 231 k
Why would php need curl ?
[]s
- -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
Rodrigo Barbosa wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Feb 28, 2007 at 02:39:57AM -0600, Johnny Hughes wrote:
On Wed, 2007-02-28 at 00:48 +0100, Michael Gabriel wrote:
trying a yum update on mysql, postgres or php forces the others to install. is that really wanted ??
Here is some testing on a system with nothing else installed: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [root@i386 ~]# yum --enablerepo=centosplus install php
curl i386 7.12.1-8.rhel4 base 231 k
Why would php need curl ?
Because it has a curl based library built in to the core:
RedHat could have spun this off into a php-curl RPM package I guess but they chose not to with php4 and I don't think php5 in RHEL5 will either...
Jay
On 2/28/07, Jay Lee jlee@pbu.edu wrote:
Rodrigo Barbosa wrote: -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Feb 28, 2007 at
02:39:57AM -0600, Johnny Hughes wrote:
On Wed, 2007-02-28 at 00:48 +0100, Michael Gabriel wrote:
trying a yum update on mysql, postgres or php forces the others to
install.
is that really wanted ??
Here is some testing on a system with nothing else installed:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [root@i386
~]# yum --enablerepo=centosplus install php
curl i386 7.12.1-8.rhel4 base
231 k
Why would php need curl ?
Because it has a curl based library built in to the core:
RedHat could have spun this off into a php-curl RPM package I guess but they chose not to with php4 and I don't think php5 in RHEL5 will either...
They have been known to do this if someone sends them a bugzilla reprort with a patch for the spec file.
Cheers...james
On Wed, Feb 28, 2007 at 03:59:55PM -0500, Jay Lee wrote:
Because it has a curl based library built in to the core: http://php.net/curl RedHat could have spun this off into a php-curl RPM package I guess but they chose not to with php4 and I don't think php5 in RHEL5 will either...
Or, why the command-line client isn't in a separate package from libcurl....