how to install git on linux 2 instance code example Example 1: insall git onec2 $ sudo yum install git Example 2: installing git on ec2 sudo yum install git -y