LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2010, 06:25 AM   #1
logforlinux
LQ Newbie
 
Registered: Feb 2009
Posts: 14

Rep: Reputation: 0
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.
 
Old 10-27-2010, 06:36 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
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
 
Old 10-27-2010, 06:53 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Look at /etc/SuSE-release.
 
Old 10-31-2010, 09:21 AM   #4
raviteja_s
Member
 
Registered: Jun 2010
Location: India
Distribution: Redhat
Posts: 68

Rep: Reputation: 1
redhat cat /etc/redhat-release
 
Old 11-01-2010, 12:53 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
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/ ?
 
Old 11-01-2010, 01:39 AM   #6
neekarina
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
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
 
Old 11-01-2010, 01:40 AM   #7
neekarina
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
The answer is very correct, I also do that
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check NTFS file system in Linux ?? mynameisthomas Linux - Newbie 8 08-30-2012 04:59 PM
Check failed memory in suse linux shan_nathan Linux - Hardware 1 06-02-2009 09:31 AM
How to check the memory usage in an embedded Linux system? alanchansl Linux - Embedded & Single-board computer 7 07-24-2008 09:21 AM
How can I check whether I have a swap partition in Suse Linux 9.2 pro? pujolasdf Linux - Software 10 02-13-2005 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration