How To Find the RHEL/CentOS Release Version on Amazon Linux

rpm -qa | grep epel-release | awk -F- ‘{print $3}’ Examples: RHEL5/Centos5 root@aws1:/root # cat /etc/issue Amazon Linux AMI release 2010.11.2 (beta) root@aws1:/root # rpm -qa | grep epel-release epel-release-5-4.noarch root@aws1:/root # rpm -qa | grep epel-release | awk -F- ‘{print $3}’ 5 RHEL6/Centos6 root@aws2:/root # cat /etc/issue Amazon Linux AMI release 2013.09 root@aws2:/root # […]