LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-31-2006, 12:07 AM   #1
Sailesh
LQ Newbie
 
Registered: Jul 2006
Posts: 16

Rep: Reputation: 0
checking version of OS


How to check the exact version of OS I am using...
What is the command. I want the configuration and all..

Ohho.. one more silly question from me.. I am a newbie, so plz bare with me for sometime...
 
Old 07-31-2006, 12:46 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Which version? There are multiple versions (every piece of software usually has it's own..)

Code:
uname -a
gives you information about your kernel etc..for a start.
 
Old 07-31-2006, 12:52 AM   #3
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Rep: Reputation: 30
I think he'd like to know where it says what version he's running under; like with Winxp it's control panel, system I believe.

What linux system do you have? suse, red hat, mandriva, etc?
I'm sort of new myself, so I'm not sure where you can find this. It may (or may not) depend on your OS as to where you need to go to find this.
 
Old 07-31-2006, 12:54 AM   #4
Sailesh
LQ Newbie
 
Registered: Jul 2006
Posts: 16

Original Poster
Rep: Reputation: 0
I want in the format of SUSE 9.1 or SLES 9 with SP1 like that...
Is there someway to get that.
 
Old 07-31-2006, 12:57 AM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
uname -a
gives kernel version. Looks like you didn't compile kernel yourself, so if you post the output, we'll tell you name of your distribution. http://linuxmafia.com/faq/Admin/release-files.html - look up, if you find any of the mentioned files, you'll get version info inside.
 
Old 07-31-2006, 12:58 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
From what I've gathered, it's not completely universal. If you are looking for what release of a particular distro you are running, on varying distros you have:
/etc/version
/proc/version
uname -a

Amongst others. I don't know if it's that important for the majority of distros to provide this information. Mainly because if you've recently done a system update and have the newest packages available, then you could be running a release from 2 releases ago and be as up to date as someone running a current release.

I think where you see the need to know which version you are running are with things like Fedora where they stop providing free support once you reach (I think) 3 versions old; assuming you don't do a dist upgrade.

HTH

Cool
 
1 members found this post helpful.
Old 07-31-2006, 01:04 AM   #7
Sailesh
LQ Newbie
 
Registered: Jul 2006
Posts: 16

Original Poster
Rep: Reputation: 0
I used /proc/version...

It returned the following output

Linux version 2.6.5-7.139-default (geeko@buildhost) (gcc version 3.3.3 (Suse Linux)) #1 Fri Jan 14 15:41:33 UTC 2005

I know its Suse Linux, but the complete info is missing..
 
Old 07-31-2006, 01:10 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
According to this page:
http://www.novell.com/products/linux...rnel-syms.html

It appears to be part of the SLES 9 release.

Cool
 
Old 07-31-2006, 01:32 AM   #9
Sailesh
LQ Newbie
 
Registered: Jul 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Then I tried to install gcc with SLES 9 CDs...
but it is asking me to insert Open Enterprise Server CD...

I tried that one also, but with the same dialogue...
Thats why I want to know what version exactly I needed to fix it...
 
Old 07-31-2006, 01:35 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well in your /proc/version it calls itself SuSE, and the kernel is mentioned on the SLES 9 product page. Maybe the issue is *which* CD you are placing in the drive, not which *version*.

Cool
 
Old 07-31-2006, 01:55 AM   #11
Sailesh
LQ Newbie
 
Registered: Jul 2006
Posts: 16

Original Poster
Rep: Reputation: 0
I went to help center of SUSE and I read SP1 release somewhere...

So I brought both OES 9 with SP1 and SLES9 with SP1 CDs.. Both failed. The error message is still

Insert :
Open Enterprise Server CD1

May be its problem with CD I suppose, but first I want to know whether I am inserting the correct CDs
 
Old 07-31-2006, 07:47 AM   #12
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
Might be easier to reinstall the OS with the gcc option your trying to load. That has worked for me at times.
 
Old 07-31-2006, 08:17 AM   #13
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
That draws you back to Windows age. There should be no need to reinstall an operating system, unless it's very badly damaged or it's Windows.

Do you need to mount the CD manually, or should it do it automatically?
 
Old 07-31-2006, 08:35 AM   #14
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
Quote:
Originally Posted by b0uncer
That draws you back to Windows age. There should be no need to reinstall an operating system, unless it's very badly damaged or it's Windows.
Guilty as charged. But, there comes a point when I've fought with something long enough, I will bite the bullet and do a reinstall to fix an issue.
 
Old 07-31-2006, 08:42 AM   #15
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well, better mount CD, find gcc rpm, and manually install it with rpm -ivh.
 
  


Reply



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
checking for GLIB - version >= 2.4.0... no guarriman Fedora 1 07-19-2005 03:53 AM
Checking Version enik256 Linux - Newbie 4 01-28-2005 12:15 PM
checking XFree86 version. renwood Linux - Newbie 7 11-25-2004 01:11 AM
Checking your kernel version rhraz Linux - Newbie 2 02-27-2004 10:49 PM
Checking the version of a package _maco_ Linux - Newbie 4 02-04-2004 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 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
Open Source Consulting | Domain Registration