LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-09-2013, 12:34 PM   #1
Nikhil_Lagwankar
Member
 
Registered: Aug 2013
Location: Pune
Distribution: Centos, Ubuntu, Fedora
Posts: 36

Rep: Reputation: 0
Rpm kernel output


hi,

I'm new to Cent OS (and linux too)..

when i run the command

rpm -qv kernel

why does it display 2 entries....

kernel-2.6.32-358.el6.x86_64
kernel-2.6.32-358.14.1.el6.x86_64

also at boot time i get 2 entries which look similar to above....
does this mean 2 kernels are installed.
are both needed or can i remove the older among the two.
 
Old 08-09-2013, 02:40 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
You have two kernels installed. This is Good Thing if a new kernel were to introduce problems. They cause no harm (except maybe filling up /boot), but you can remove any kernel you're not currently booted in to if you want to.
 
1 members found this post helpful.
Old 08-09-2013, 02:50 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
You can also limit the number of kernels installed on your machine by adding the following line under the [main] section in /etc/yum.conf
Code:
installonly_limit=2
this will tell to the package manager to preserve only the last kernel previously installed, other than the newest one. As AlucardZero already pointed out, preserving at least one working kernel is a good idea: if the newly installed kernel has problems with your specific hardware and it doesn't boot for some reasons, you can always boot the old kernel and act accordingly (remove the problematic kernel) in order to return to a stable configuration.
 
1 members found this post helpful.
Old 08-09-2013, 02:54 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,189

Rep: Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507
I do believe that the centos 6 default is to have 3 kernels
two in back up

though fedora i think went to 5

3 is a good value , leave it there
 
1 members found this post helpful.
Old 08-09-2013, 08:39 PM   #5
Nikhil_Lagwankar
Member
 
Registered: Aug 2013
Location: Pune
Distribution: Centos, Ubuntu, Fedora
Posts: 36

Original Poster
Rep: Reputation: 0
Talking

hey, thanks for the quick reply
 
  


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
kernel-source.x.x.x.x.rpm vs. kernel.x.x.x.src.rpm mrkozmic Linux - Newbie 2 08-03-2010 10:59 AM
Help - MC panel externalize and rpm output ZviJ Linux - Desktop 0 07-26-2009 07:13 PM
Output rpm cmd listing onto a CD? flasun Linux - Newbie 2 02-12-2009 06:57 AM
counter part of "rpm -ivh --force kernel....rpm in slackware b0nd Slackware 2 01-28-2006 07:46 PM
Funny rpm output tunedLow Linux - Security 2 10-19-2002 10:09 PM

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

All times are GMT -5. The time now is 10:43 AM.

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