# rpm -qa kernelFirst, we determine the machine has three kernels. Second, we see that that it is running the most recent version, dot-22. Finally, YUM demonstrates that it is smart enough to erase the two old kernels, but not the current kernel.
kernel-2.6.32-279.el6.x86_64
kernel-2.6.32-279.19.1.el6.x86_64
kernel-2.6.32-279.22.1.el6.x86_64
# uname -r
2.6.32-279.22.1.el6.x86_64
# yum erase kernel
<snip>
Removing:
kernel x86_64 2.6.32-279.el6
kernel x86_64 2.6.32-279.19.1.el6
Is this ok [y/N]:
One small problem: I don't want to remove dot-19 because I have a driver problem with dot-22. I only want to remove dot-null. Here's the trick:
# yum list kernelThe critical success factors are to drop the arch and t0 add a dash(-) between the package name and the version number.
Loaded plugins: refresh-packagekit, security
Installed Packages
kernel.x86_64 2.6.32-279.el6
kernel.x86_64 2.6.32-279.19.1.el6
kernel.x86_64 2.6.32-279.22.1.el6
# yum erase kernel-2.6.32-279.el6
No comments:
Post a Comment