Old kernel removal

Mike Klinke lsomike at futzin.com
Sat Jan 10 15:49:57 UTC 2004


On Saturday 10 January 2004 07:32, Alexandre Strube wrote:
 
> Well, this will not remove everything... /lib/modules keeps old
> stuff forever - I just noticed this when I saw redhat 8's stuff on
> my fedora installation (which was redhat 8, then 9, then fedora)
>
 

You may have/had something else going on. This method has, at least as 
far back as 7.3, deleted the associated /lib/modules tree. For 
example:

09:38:33 # cd /lib/modules
09:38:39 # ls

2.4.22-1.2115.nptl
2.4.22-1.2129.cust1
2.4.22-1.2129.nptl
2.4.22-1.2129.nptl.caps.rhfc1.ccrma

09:38:40 # rpm -qa | grep kernel-

kernel-2.4.22-1.2129.nptl
kernel-2.4.22-1.2129.nptl.caps.rhfc1.ccrma
kernel-2.4.22-1.2115.nptl

09:39:49 # rpm -e kernel-2.4.22-1.2115.nptl

09:41:29 # ls

2.4.22-1.2129.cust1
2.4.22-1.2129.nptl
2.4.22-1.2129.nptl.caps.rhfc1.ccrma

Regards, Mike Klinke





More information about the users mailing list