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

Author: , September 9th, 2014

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 # […]

How To Find the Ubuntu Distribution Version

Author: , April 8th, 2014

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.2 LTS Release: 12.04 Codename: precise $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION=”Ubuntu 12.04.2 LTS”

How To Determine Your Perl Module Version

Author: , April 12th, 2012

For example, to see the version for DBD::mysql, do this: perl -MDBD::mysql -we ‘print $DBD::mysql::VERSION;’

Amazon Linux Upgrade Woes

Author: , April 10th, 2012

Upgraded the OS on one of my Amazon server instances today. After rebooting I had the unpleasant experience of seeing my rpc.rstatd monitoring daemon stop functioning. It turns out that AWS changed the actual kernel version for this release, I guess to “celebrate” the fact that it is no longer “beta”. The difficulty is that […]

How To Determine Which Linux Version / Build / Distribution Is Running

Author: , April 10th, 2012

uname -a -OR- cat /proc/version