32

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?

Chris Henry
  • 1,572

4 Answers4

47

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.

Giacomo1968
  • 3,553
  • 29
  • 42
taksan
  • 571
3

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.

Joseph Kern
  • 9,989
0

Could not get taksan's answer to work for my setup here is what I used

yum install epel-release -y
rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm
yum update curl

more related answers can be found here Upgrading curl on centos 6: libcurl-7.50 requires libnghttp2

GiorgosK
  • 211
-1

Latest stable curl verison is 7.22.0, but so far 7.19.7-16 is the CentOS latest. So you either have to find a repository that offers the latest build now or wait for the CentOS base repo to update the build.

yum update curl

I found a repo for you:

http://download.fedora.redhat.com/pub/fedora/linux/development/rawhide/x86_64/os/Packages/?P=*curl*

You could wget the libcurl and curls files from the link above and then rpm –Uvh packagename, install the libcurl and then the curls pack.

TBK
  • 13