LinuxQuestions.org
Review your favorite Linux distribution.
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 06-09-2015, 07:10 AM   #1
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
How to automatically keep only 3 kernels/headers at max in centos server


Hello,

I have a centos server and has many kernels and the old kernels aren't deleted. I want only 3 kernels/headers to be present and want the old one to be deleted automatically. For this i did
Code:
vi /etc/yum.conf
and made
Code:
installonly_limit=3
.


But when i restarted the server and did
Code:
rpm -qa | grep kernel
it still showed the past five old kernels. Do i need to mnually remove it for that above changes to take place or did i go wrong somehere?
 
Old 06-09-2015, 07:20 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,996

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
Wait for the next kernel update.
 
  


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
CentOS 5.5 server Squid service stops automatically. vinod.chougule Linux - Newbie 3 09-24-2012 07:03 AM
kernels, headers, and glibc; a few questions... linus72 Linux - General 4 07-18-2010 10:50 AM
Headers for custom kernels? miros84 Linux - Hardware 2 01-26-2010 07:28 AM
kernel-headers and custom compiled kernels jaakkop Slackware 2 11-22-2005 12:21 PM

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

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