LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-28-2013, 06:21 PM   #1
digity
Member
 
Registered: Apr 2005
Posts: 105

Rep: Reputation: 15
centOS reporting two different versions


At the console it says centOS 5.7, but "lsb_release -a" returns 5.9. What gives? Which is the correct version and how could I verify that so I know for sure?
 
Old 03-28-2013, 06:34 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
At what console? You mean your command prompt? What is the output of
Code:
echo $PS1
 
Old 03-28-2013, 06:56 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Also try
Code:
cat /etc/centos-release
unless that's what you meant by 'console'
 
Old 03-28-2013, 08:55 PM   #4
digity
Member
 
Registered: Apr 2005
Posts: 105

Original Poster
Rep: Reputation: 15
The console meaning that old text based interface you get when physically at the computer and monitor - when the machine restarted it dropped out of the windows manager (Gnome) and into the text based interface for about ten seconds before actually rebooting the machine. During those ten seconds that's when I saw centOS 5.7 above the login prompt.

echo $PS1
Code:
[\u@\h \W]\$

cat /etc/centos-release
Code:
cat: /etc/centos-release: No such file or directory
 
Old 03-29-2013, 02:15 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Try

Code:
cat /etc/system-release

Last edited by spiky0011; 03-29-2013 at 02:16 AM.
 
Old 03-29-2013, 03:26 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Can you try:
Code:
~$ cat /etc/issue
And how console is displaying centOS 5.7? Do you see it in login banner when you open a new terminal? If yes, then banner could be set wrongly.
 
Old 03-29-2013, 12:00 PM   #7
digity
Member
 
Registered: Apr 2005
Posts: 105

Original Poster
Rep: Reputation: 15
cat /etc/system-release
Code:
cat: /etc/system-release: No such file or directory

cat /etc/issue
Code:
CentOS release 5.9 (Final)
Kernel \r on an \m
So is it safe to say this is indeed 5.9? If so, I have one quick question... would centOS have auto upgraded itself to 5.9 in January when it was released or did someone have to manually upgrade it to 5.9?
 
Old 03-29-2013, 12:46 PM   #8
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Yes, it's indeed 5.9. You will need to upgrade it manualy, it will not be upgraded automatically.
 
Old 03-29-2013, 05:33 PM   #9
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by shivaa View Post
Yes, it's indeed 5.9. You will need to upgrade it manualy, it will not be upgraded automatically.
That is incorrect. CentOS will automatically upgrade to the latest point release unless you have edited the files in /etc/yum.repos.d to lock it to a specific point release. The .repo files that come with the installation just request the updates for version "5", and on the servers, "5" is just a symlink to the latest point release.

If you did want to stay locked at a particular point release, you would have to edit the .repo file and change all instances of "$releasever" to "5.7", or whatever point release you wanted. Doing so is inadvisable because you would get no further security updates once a later point release came out. If you wanted to run on a particular point release, you would be better off using Scientific Linux, which does continue to offer security updates for older point releases (and does not, by default, automatically update to newer point releases).
 
  


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
LXer: Using Multiple PHP Versions (PHP-FPM & FastCGI) With ISPConfig 3 (CentOS 6.3) LXer Syndicated Linux News 0 03-14-2013 08:10 PM
Centos, local yum repo and multiple versions of rpm b0redom Linux - Server 2 11-30-2012 02:04 AM
[SOLVED] df reporting 100% but du reporting 20% guna_pmk Linux - Server 1 04-15-2011 11:34 AM
[SOLVED] Prepare firmware versions availability for current versions mufy AIX 2 01-03-2011 10:19 AM
centos versions saran_redhat Linux - Newbie 2 11-06-2009 08:28 AM

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

All times are GMT -5. The time now is 08:41 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