On Fri, 20 Jul 2001, Joerg Johannes wrote: > Hello list > > I have, in the last few weeks, compiled a lot of kernels (with > make-kpkg) > Well, I have installed these kernel-image-blah.deb's, but without > removing the old ones. dpkg -l shows > > ii kernel-image-2. # <-- dpk -l does not show more of the package > version > ii kernel-image-2. > ii kernel-image-2. > ii kernel-image-2. > ... > > How can I safely remove the old ones (whose files were overwritten by > the newer ones) ? > I could make a 2.4.5 kernel and remove all the 2.4.3.deb's, but will > this work? won't dpkg complain about files that are not there but should > be there? > Perhaps this is evil, but it might workt: # dpkg --get-selections > installeddebs <edit the file and remove all old kernel-images> # echo installeddebs | dpkg --set-selections
Greetz, Sebastiaan