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

Leave a Comment