Remove Linux Kernel: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Created page with "To remove an unwanted kernel from your operating system: <br><br> List installed kernels <pre> rpm -qa | grep kernel </pre> Remove a specific kernel <pre> rpm -e kernel-2.6.18-1..."
 
No edit summary
Line 1: Line 1:
= Old Kernels =
<pre>
rpm -q kernel
</pre>
<pre>
yum -y install yum-utils
</pre>
Keep 0 old kernels
<pre>
package-cleanup --oldkernels --count=0
</pre>
Ediy yum for default settings
<pre>
vi /etc/yum.conf
</pre>
Current and Previous
<pre>
installonly_limit=2
</pre>
= Specific Kernel =
To remove an unwanted kernel from your operating system:
To remove an unwanted kernel from your operating system:
<br><br>
<br><br>

Revision as of 04:48, 23 July 2015

Old Kernels

rpm -q kernel
yum -y install yum-utils

Keep 0 old kernels

package-cleanup --oldkernels --count=0

Ediy yum for default settings

vi /etc/yum.conf

Current and Previous

installonly_limit=2


Specific Kernel

To remove an unwanted kernel from your operating system:

List installed kernels

rpm -qa | grep kernel

Remove a specific kernel

rpm -e kernel-2.6.18-194.3.1.el5