[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to avoid keeping old kernels in dpkg/apt

On Wed, Mar 23, 2005 at 07:30:45AM +0100, Pander wrote:

> But after having installed a few kernels dpkg tells me this:
> ii  kernel-image-2 10.00.Custom   Linux kernel binary image for 
> version 2.4.21
> How do I get rid of these old entries in dpkg/apt OR how can I 
> avoid this in the future with a different install command?

You need to remove the old kernel-image packages from your system. You
can purge every last trace of the files the package installed with
'dpkg -P'. For example:

  dpkg -P kernel-image-2.6.10-pbg4

Note that the package name is not the same as the file name of the
package itself. It's usually everything up until the revision number
("10.00.Custom", in your case).  If you don't quite get it right, dpkg
will complain, and offer a few pointers.

Also, you can avoid having dpkg truncate the package names, etc., in
its output by prepending "COLUMNS=XXX" to the command line (where
"XXX" is the number of characters in each column of data in the
output). For example:

  COLUMNS=150 dpkg -l


Reply to: