clean out old kernel versions?

Dave Stevens geek at uniserve.com
Sun Mar 7 17:03:55 UTC 2021


On Sun,  7 Mar 2021 09:13:52 -0500 (EST)
Robert Heller <heller at deepsoft.com> wrote:

> At Sat, 6 Mar 2021 21:52:58 -0800 "Ubuntu user technical support, not
> for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
> 
> > 
> > Linux user-Satellite-A100 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18
> > 18:34:49 UTC 2016 i686 i686 i686 GNU/Linux
> > 
> > cat /etc/issue
> > Linux Mint 18 Sarah \n \l
> > 
> > --------------
> > 
> > 
> > /boot has 440 files in it, almost all of which are old kernel
> > entries. Is there a simple way to get rid of all but the most
> > recent few (2 or 3)?  
> 
> Have you *ever* run 'sudo apt autoremove'?

yes like this:

 $ sudo apt autoremove
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user at user-Satellite-A100 /boot $ 

 /boot $ ls -l | wc
    440    3953   31232
user at user-Satellite-A100 /boot $ 


d


> 
> > 
> > I could find a use for that 4.4 GB of disk space.
> > 
> > D
> >   
> 



-- 
In modern fantasy (literary or governmental), killing people is the
usual solution to the so-called war between good and evil. My books are
not conceived in terms of such a war, and offer no simple answers to
simplistic questions.

----- Ursula Le Guin




More information about the ubuntu-users mailing list