clean out old kernel versions?

Bret Busby bret.busby at gmail.com
Sun Mar 7 16:26:02 UTC 2021


On 07/03/2021, Colin Law <clanlaw at gmail.com> wrote:
> 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
>


Whilst I accept that I am not as knowledgeable as some others on this
list, especially about the combination command, I believe that, for
the original poster to run that combination command (or, apparently
better, the apt, rather than the apt-get version, the apt version
having been posted by me, in a revised and later version of the post
to which the response from Colin, is above), initially, and, for
future system updates, will likely both deal with the current problem,
and, prevent a recurrence of the current problem.

But, the freedom to choose, should be a right.

-- 
Bret Busby
Armadale
West Australia
(UTC+0800)
..............




More information about the ubuntu-users mailing list