Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
We got a new machine on which a LINUX is installed. I check the LINUX version with 3 different command but get 3 different results. WHich one is the correct one?
This command shows the version is RHEL 4
Code:
[root@s003ap03n-test ~]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
This command shows the version is Red Hat 3
Code:
[root@s003ap03n-test ~]# cat /proc/version
Linux version 2.6.9-78.ELsmp (brewbuilder@ls20-bc2-14.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)) #1 SMP Wed Jul 9 15:46:26 EDT 2008
This command shows no version but the bit system
Code:
[root@s003ap03n-test ~]# uname -a
Linux s003ap03n-test.proactiv.de 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
I'm no RedHat guru, but based on the given criteria, it appears to be RHEL4 as indicated in the first output you gave. A quick Google also seems to indicate that RHEL4 included some 2.6.9.xxx kernels, so that seems reasonably likely that RHEL4 is right.
The next 2 commands you did are both mainly used to determine what kernel is currently running, not necessarily which linux distro it is. Kernel names can contain names/strings ahat can be arbitrary and meaningless, but the version number (2.6.9) should be correct. The 3.4.6 is referring to the GCC Compiler version which was/is installed/used in the machine and to build the kernel.
The first command shows you that you have RedHat Enterprise Linux 4, release 8 installed. That's your 'distro', the brand, like there are Debian, Ubuntu and others.
The second one shows you what kernel you have installed (2.6.9-78) and the last command shows you the same but with info like hostname included.
I imagine that at some point in time there has been a partial update/upgrade performed that didn't update the kernel version, for whatever reason.
You say it's a new machine but yet it has an old(ish) version of RedHat installed, any idea how that is? Did you buy it second hand from a company (German?)?
Kind regards,
Eric
PS: Missed the GCC part, thanks for pointing that out (need to get some sleep one of these days )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.