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,520 points
7,494 views

1 answer to this question.

0 votes

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
• 58,100 points

Related Questions In AWS

0 votes
1 answer

How can I find out why my storage space on Amazon EC2 is full?

One or more log files which have ...READ MORE

answered Feb 21, 2022 in AWS by Korak
• 5,820 points
1,449 views
0 votes
0 answers

How to install dart on ec2 linux instance?

Many dart installation tutorials use the apt-get ...READ MORE

Apr 19, 2022 in AWS by Rahul
• 9,680 points
441 views
0 votes
0 answers

How to install dart on ec2 linux instance?

Many dart installation tutorials use the apt-get ...READ MORE

Apr 19, 2022 in AWS by Aditya
• 7,680 points
483 views
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,100 points
794 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,670 points
10,275 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP