Carl Lowenstein wrote:
> I have been running Ubuntu 5.10 for a couple of months now.  There
> have been some kernel upgrades during that time, and older versions of
> the kernel are still present in /boot and show up in the GRUB menu. 
> What is the approved (Debian-oriented) method of doing this?

If you have been using apt-get instead of aptitude, you can ``apt-get
remove''. You can also ``dpkg --remove'' (dpkg -r) the packages.

Neither will remove dependencies that are no longer required. This is a
job for deborphan.

If you have been using aptitude(1) to install packages, then ``aptitude
remove'' will remove, and any non-required dependencies.

> Is this a job for "# apt-get remove"?  What is the best way to get the
> package names that belong to these older kernel versions?

% COLUMNS=200 dpkg -l | grep \^i.*kernel-image | awk '{print $2}'

There is probably an easier way, but this is the way that is easiest for
me (though I usually leave off the awk)

-john

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie

Reply via email to