[ubuntu-us-mn] Removing old kernels
Fred H Olson
fholson at cohousing.org
Thu Sep 5 17:24:19 UTC 2013
On Thu, 5 Sep 2013, Fred H Olson wrote:
> Thanks Tony.
>
> I've been doing upgrades via the Ubuntu Update Manager
> I tried:
> sudo apt-get autoremove
> and it removed:
> Removing linux-headers-3.2.0-25-generic ...
> Removing linux-headers-3.2.0-25 ...
>
> which is not the oldest (third oldest).
>
> It did not seem to touch the other 23 old versions.
I wrote a script to explicitly remove all the old header packages
with lines like:
sudo apt-get remove linux-headers-3.2.0-48-generic
(It's easier to edit a script than command lines...)
and that freed up inodes so now only 30% are in use and 50% of the
kernel partition is in use.
I did have to repeatedly answer the Do you want to continue [Y/n]? but
that was not so bad. apt-get does have the option --force-yes but I had
already started and it seemed easier (and safer) to just continue.
Fred
Thanks again. Fred
More information about the ubuntu-us-mn
mailing list