Upgrade cURL to latest on CentOS

This is an old question, but it is still one the first results in google search, so I'd like post the solution that got my problem solved.

1) create a new file /etc/yum.repos.d/city-fan.repo

2) Paste the following contents:

[CityFan]
name=City Fan Repo
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/
enabled=1
gpgcheck=0

3) type:

yum clean all
yum install curl 

4) And it's done.

Observe that for other rhel/centos versions, all you have to do is specify the appropriate city-fan url.


Why do you need to upgrade curl? Is there a specific feature you're missing?

You can get it straight from the developer:

http://curl.haxx.se/download.html

Scroll down to the Redhat (thanks twirrim) listings, find a suitable RPM (RHEL5 based) and install.