LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to check if a System is Linux 3/4 AND suse 9/10 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-check-if-a-system-is-linux-3-4-and-suse-9-10-a-840721/)

logforlinux 10-27-2010 06:25 AM

How to check if a System is Linux 3/4 AND suse 9/10
 
Hi,
I have a program that i want to install on only RHEL 3 and 4. It does not support RHEL 5. How do i check if a Reh Hat OS is 3 or 4 and not 5.

Similarly i need to check this for SUSE 9 and 10.
For RHEL, i am trying to see uname -a and also cat /proc/redhat-release. How do i make sure that if the target system is RedHat 3 or 4.
and in case of SUSE, how i decide for SUSE 9 or 10 and not other.

Thanks in advance for your help.

zhjim 10-27-2010 06:36 AM

Most distros come with a *version file inside /etc.

Don't have any suse or RedHat at hand but on debian it is

Quote:

/etc/debian_version
Do a
Code:

ls /etc/*version*
to check out

Nylex 10-27-2010 06:53 AM

Look at /etc/SuSE-release.

raviteja_s 10-31-2010 09:21 AM

redhat cat /etc/redhat-release

chrism01 11-01-2010 12:53 AM

Do you know that RHEL3 is out of support as of yesterday (31-Oct-2010) unless the user pays for an add-on sunsbscription for Extended Life Cycle Phase: http://www.redhat.com/security/updates/errata/ ?

neekarina 11-01-2010 01:39 AM

Most distros come with a *version file inside /etc.

Don't have any suse or RedHat at hand but on debian it is


Quote:
/etc/debian_version

Do a

Code:
ls /etc/*version*to check out

The answer is very correct, I also do that

neekarina 11-01-2010 01:40 AM

The answer is very correct, I also do that


All times are GMT -5. The time now is 12:12 AM.