The Memory Bank

...for memory blanks

Site Tools


get_rhel_version

Get installed RHEL version details


Get the major and minor version

cat /etc/os-release |grep ^VERSION_ID=|cut -f2 -d'"'
8.10


Get the major version

cat /etc/os-release |grep ^VERSION_ID=|cut -f2 -d'"'|cut -f1 -d'.'
8


Get the minor version

cat /etc/os-release |grep ^VERSION_ID=|cut -f2 -d'"'|cut -f2 -d'.'
10
get_rhel_version.txt · Last modified: (external edit)