Linux - NewbieThis 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
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.
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?
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
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?
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.