Quote:== BEGIN cat /etc/redhat-release ==XCP release 1.6.07-61365c== END cat /etc/redhat-release ==And the above... [by AlanBartlett]
Hello UNIX & Linux Stack,
I just got a VM running on CentOS 6.5 and ls -l /etc/*release returns a number of files like /etc/centos-release, /etc/lsb-release, and /etc/redhat-release.
The last one, /etc/redhat-release, is a symlink to the centos-release file.
Is it safe to remove /etc/redhat-release?
Or could it cause issues later?
I need to verify by script that someone is using RHEL 6+ I know I can look at the /etc/redhat-release but I need a number so I can do something like:
if [ $ver -lt 6 ] ; then
... do something ...
/etc/redhat-release is text and if it's Fedora or Redhat or other the text can be greatly different.
Any one have an idea?