Hello,
I have problems removing older kernels from my Centos machines using yum. Can somebody tell me how to remove specific versions ?
[root@web2 root]# rpm -qa | grep kernel-2 kernel-2.4.21-15.EL.c0 kernel-2.4.21-9.0.1.EL.c0 kernel-2.4.21-9.0.3.EL.c0
Is what I have installed....
And
[root@web2 root]# yum remove kernel-2.4.21-9.0.1.EL.c0 Gathering header information file(s) from server(s) Server: CentOS-3.1 - Addons Server: CentOS-3.1 - Base Server: CentOS-3.1 - Extras Server: CentOS-3.1 - Updates Finding updated packages Downloading needed headers Erase: No matches for kernel-2.4.21-9.0.1.EL.c0 No actions to take
is what I get.
Thanks,
Taco
On Wed, May 26, 2004 at 09:34:08PM +0200, Taco Scargo wrote:
Hello,
Hi Taco Scargo,
I have problems removing older kernels from my Centos machines using yum. Can somebody tell me how to remove specific versions ?
<SNIP!>
[root@web2 root]# yum remove kernel-2.4.21-9.0.1.EL.c0
<SNIP!>
Erase: No matches for kernel-2.4.21-9.0.1.EL.c0 No actions to take
I don't know about yum, but with rpm you can just do: rpm -e kernel-2.4.21-9.0.1.EL.c0 and that should take care of your problem.
I don't know if yum understands versions of packages. I think it sees each individual kernel version as a different package. I know with apt they were all stored as kernel#2.4.21-9.0.1.EL.c0 and effectively read as separate packages.
But rpm should solve your problem.
Hope this helps,
Shawn
I don't know about yum, but with rpm you can just do: rpm -e kernel-2.4.21-9.0.1.EL.c0 and that should take care of your problem.
I know, but I want to know it for yum, I guess it should be possible. How to remove it using rpm is no problem. I was just wondering what I was doing wrong.
I don't know if yum understands versions of packages. I think it sees
each individual kernel version as a different
package. I know with apt they were all stored as
kernel#2.4.21-9.0.1.EL.c0 and effectively read as separate
packages.
I have tried this as well, but unfortunately this did not work as well.
Thanks anyway !
Taco
On Thu, 2004-05-27 at 01:23 +0200, Taco Scargo wrote:
I don't know about yum, but with rpm you can just do: rpm -e kernel-2.4.21-9.0.1.EL.c0 and that should take care of your problem.
I know, but I want to know it for yum, I guess it should be possible. How to remove it using rpm is no problem. I was just wondering what I was doing wrong.
yum doesn't have version-specified removes. It will in a future version - but it doesn't as of 2.0.7.
-sv