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