How can I install curl 7.34 or later on Amazon linux old instance

0 votes

We are using a few older instances to run our server at work, and since they are already in sunset mode we dont really want to update the AMIs. However we now need curl that is able to use TLS 1.2 and that means 7.34 or later. yum lists 7.27 as the latest on our instance, coming from amzn-updates repo. What are our options to update curl on these machines? The openssl version on these machines does support TLS1.2, it is only curl that doesnt support it. Specifically we need git to support TLS1.2.

Aug 9, 2018 in AWS by bug_seeker
• 15,310 points
583 views

1 answer to this question.

0 votes

got answer from this link https://www.digitalocean.com/community/questions/how-to-upgrade-curl-in-centos6

worked for me.

add a new text file called /etc/yum.repos.d/city-fan.repo containing

CityFan

name=City Fan Repo

baseurl=http://nervion.us.es/city-fan/yum-repo/rhel$releasever/$basearch/

enabled=1

gpgcheck=0

Either way, you should then be good to go :

yum install libcurl should update cURL to a (very) recent openSSL-based version (7.46.0 at the time of writing), which will resolve the "unknown protocol" errors for TLSv1 etc.

You may want to then remove/rename the city-fan.repo file if you want to prevent yum later also updating other packages you may have installed with "non-official" later versions.

answered Aug 9, 2018 by Priyaj
• 56,160 points

Related Questions In AWS

0 votes
1 answer

How can i copy tables from one database to other on AWS?

You can use AWS Data pipeline to ...READ MORE

answered Jul 5, 2018 in AWS by Priyaj
• 56,160 points
40 views
0 votes
1 answer

How can I do Continuous data ingestion from on prem data sources to redshift

I can Recommend looking into AWS Schema ...READ MORE

answered Aug 8, 2018 in AWS by Priyaj
• 56,160 points
166 views
0 votes
1 answer

How do i install specific fonts on my instances?

Create a fonts/ folder in your application ...READ MORE

answered Aug 28, 2018 in AWS by Archana
• 4,090 points
103 views
0 votes
1 answer

How can I find out the instance id of an ec2 instance from within the ec2 instance?

On Amazon Linux AMIs you can do: $ ...READ MORE

answered Sep 10, 2018 in AWS by Archana
• 4,090 points
21 views
0 votes
1 answer
0 votes
1 answer

How can I import Amazon AWS resume instance?

Go to the EC2 instance list and ...READ MORE

answered Jul 11, 2018 in AWS by Priyaj
• 56,160 points
41 views
+1 vote
2 answers

How do I run python script on aws EC2 instance(ubuntu)?

I believe that you are using the ...READ MORE

answered Apr 17, 2018 in AWS by Cloud gunner
• 4,260 points
1,634 views