Centos – Upgrade cURL to latest on CentOS

centosrpmyum

I need to upgrade cURL to the latest version on Centos

2.6.18-164.15.1.el5.centos.plusxen #1 SMP Wed Mar 17 20:32:20 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

I'm unable to find any suitable packages to do so via yum or rpm. Is there a standard way to do this upgrade without installing from source?

Best Answer

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

  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 this into the terminal:

    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 CityFan URL.