clean out old kernel versions?

Colin Law clanlaw at gmail.com
Sun Mar 7 15:14:34 UTC 2021


On Sun, 7 Mar 2021 at 07:10, Bret Busby <bret.busby at gmail.com> wrote:
>
> On 07/03/2021, Dave Stevens <geek at uniserve.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)?
> >
> > I could find a use for that 4.4 GB of disk space.
> >
> > D
> >
>
>
> As has been previously mentioned on the list, try running the
> following; initially, and, whenever you perform a system update.
>
> sudo apt-get -y update && sudo apt-get -y dist-upgrade && sudo apt-get
> -y autoremove && sudo apt-get -y autoclean

While that set of commands is certainly useful, I think that only the
autoremove command will help to answer the question here.  I don't
think any of the others will affect /boot.

Colin




More information about the ubuntu-users mailing list