On 12/29/05, John H. Robinson, IV <[EMAIL PROTECTED]> wrote:
> 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.

Of course, in the "newbie" mode, I have been using whatever is the
Ubuntu equivalent of Fedora's "up2date".  That is, responding to a
prompting icon with "yes".  So I don't know exactly what it did.

> 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)

Eventually one finds out that the files are called "linux-image" in
the Ubuntu context.  And "#apt-get remove" seems to have done the job,
including cleaning up the GRUB menu.lst.

Now if I only knew the version difference between files with name and version:
    linux-image-386                  2.6.12.16.1
    linux-image-2.6.12-10-386    2.6.12-10.25
That is, what's with a dot or a dash after the third field in the version name.
This is a job for Samuel F.B. Morse, to distinguish the dots from the dashes.

    carl
--
    carl lowenstein         marine physical lab     u.c. san diego
                                                 [EMAIL PROTECTED]

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

Reply via email to