In this article let’s discuss about How to install git in aws ec2 instance?. Let’s go through the following methods without any delay.
#Create an EC2 instance with Amazon Linux 2 with internet access #Connect to your instance using putty #Perform a quick update on your instance: sudo yum update -y #Install git in your EC2 instance sudo yum install git -y #Check git version git version
If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!
Method 2 :
$ sudo yum install git
Hope the above solution works.
Realted Posts : Error: add-apt-repository command not found