exclude curl in yum.conf or not?

ditto

Verified User
Joined
Apr 27, 2009
Messages
2,348
I have wondered about this a long time. Should I add curl to exclude in etc/yum.conf? It is not there as default, here is exclude line I have in my etc/yum.conf:

Code:
exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php* bind-chroot*

Several times there has been curl updates in yum, and I have always updated without getting any problems. But I feel a little unsure. And now there is yet again a curl update in yum: https://rhn.redhat.com/errata/RHSA-2013-0983.html

So, it is normal, and shuld not be a problem running two installs of curl, one from yum and one from custombuild? I have never seen curl version downgrade in a phpinfo page after yum update of curl, so it always seems to be fine and always seem to be custombuild version of curl that is used in php.
 
It doesn't matter.
I wondered about that some time ago. You can either choose to exclude from yum or to disable in custombuild's options.conf.
However, I have done neither on a couple of servers for testing purposes.
And updated as well via yum as via custombuild and they don't seem to conflict or cause problems until now.
 
So, it is normal, and shuld not be a problem running two installs of curl, one from yum and one from custombuild? I have never seen curl version downgrade in a phpinfo page after yum update of curl, so it always seems to be fine and always seem to be custombuild version of curl that is used in php.

A version from custombuild gets installed into /usr/local/bin/curl while a version from rpm package is located in /usr/bin/curl:

Code:
# locate curl | grep bin/curl
/usr/bin/curl
/usr/local/bin/curl
/usr/local/bin/curl-config

And if you install PHP with option "--with-curl=/usr/local/lib" then the version from custombuild has a priority, if it exists, and PHP is built against it. And if you have no curl installed from the custombuild script, then PHP is built against the version from rpm/yum.

That's OK, while it might be confusing sometimes:

Code:
[root@server ~]# curl -V | head -1
curl 7.31.0 (i686-pc-linux-gnu) libcurl/7.31.0 OpenSSL/0.9.8b zlib/1.2.3
[root@server ~]#
[root@server ~]# /usr/bin/curl -V | head -1
curl 7.15.5 (i386-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
[root@server ~]#
[root@server ~]# /usr/local/bin/curl  -V | head -1
curl 7.31.0 (i686-pc-linux-gnu) libcurl/7.31.0 OpenSSL/0.9.8b zlib/1.2.3
[root@server ~]#
 
Thank you very much for the explanation, zEitEr. This was valuable information for me. :)
 
Back
Top