User Tools

Site Tools


script_to_determine_red_hat_fedora_version

Determine Red Hat or Fedora version

Note only for Red Hat or Fedora

Ditribution

DIST=$(sed s/\ release.*// /etc/redhat-release)

Version including minor version

VER=$(sed s/.*release\ // /etc/redhat-release | sed s/\ .*//)

Major version only

MAJOR=$(sed s/.*release\ // /etc/redhat-release | awk -F. '{print $1}')
script_to_determine_red_hat_fedora_version.txt · Last modified: 2011/08/15 11:40 by root