How to remove the old kernel after Linux kernel upgrade __linux
Source: Internet
Author: User
How to remove the old kernel after Linux kernel upgradeFirst we need to look at which kernel is currently in use:
Uname-r This command will tell you the kernel version currently in use
Next, if you are compiling the kernel yourself, please delete the following files and folders
1. Remove obsolete kernel library files from the/lib/modules/directory
2. Remove obsolete kernel source code from the/usr/src/kernels/directory
3. Delete the core files and kernel images that were launched in the/boot directory
4. Change the/BOOT/GRUB/MENU.LST, delete the unused launch list
If you are using a Yum or RPM Package Manager update
Rpm-qa | grep kernel* Find all Linux kernel versions
Rpm-e kernel-(the kernel version to be deleted)
When you delete with the RPM command line, you will encounter a dependency problem, that is, if the uninstall occurs when the uninstall is not allowed, please use
RPM-E--nodeps kernel-(version to be deleted) do not check dependencies delete directly
Or:
Yum Remove kernel-(version to be removed)
This is recommended to remove, it will prompt all dependencies, if you confirm that he will delete all the relevant documents, that is, the uninstall is very clean.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.