Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to delete the old kernel in CentOS 6.3s

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to delete the old kernel in CentOS 6.3, concise and easy to understand, absolutely can make your eyes shine, through the detailed introduction of this article I hope you can gain something.

CentOS 6.3 will update the kernel from time to time, resulting in a lot of boot entries at boot time, we can delete the old kernel, keep the latest kernel, this can free up some disk space.

(1) View installed kernels

Command: rpm -q kernel

Display results: kernel-2.6.32-279.el6.i686

kernel-2.6.32-279.9.1.el6.i686

kernel-2.6.32-279.11.1.el6.i686

kernel-2.6.32-279.14.1.el6.i686

(2) Remove the old kernel

Install yum-utls: sudo install yum-utils

Set how many old kernels you want to keep, for example I want to keep two: sudo package-cleanup --oldkernels --count=2

Check the kernel information again with rpm -q kernel, leaving only the latest two:

kernel-2.6.32-279.11.1.el6.i686

kernel-2.6.32-279.14.1.el6.i686

(3)Set the number of permanent kernel installations, I set it to two

sudo gedit /etc/yum.conf

Set installonly_limit=2

(4)Restart and you will see only two kernel startup entries.

The above is how to delete the old kernel in CentOS 6.3. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report