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,550 points

1 answer to this question.

0 votes

got answer from this link

worked for me.

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


name=City Fan Repo




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
• 58,140 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
• 58,140 points
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
• 58,140 points
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,150 points
0 votes
1 answer
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
• 58,140 points
+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,650 points