autoremove old kernel related packages - Was: Out of space
Vesa-Pekka Tapani Mikkola
mikkola.pekka at saunalahti.fi
Tue Aug 2 21:14:29 UTC 2016
I have about 4*1TB room together in use.
03.08.2016, 00:00, Vesa-Pekka Tapani Mikkola kirjoitti:
>
> Thank You for your words so gentle.
>
> Hard it was here but one step a head is taken well.
>
> Please continue.
>
>
> Pekka
>
> Is linux-generic the only one showing that is manuel??
>
>
> On 08/02/2016 12:42 PM, Oliver Grawert wrote:
>> hi,
>> On Di, 2016-08-02 at 12:35 -0400, Richard Barmann wrote:
>>> My result was slightly different than you show.Is that all right??
>>>
>>> richard at richard-desktop:~$ apt-mark showauto|grep ^linux-
>>> linux-base
>>> linux-firmware
>>> linux-headers-4.4.0-31
>>> linux-headers-4.4.0-31-generic
>>> linux-headers-generic
>>> linux-image-4.4.0-31-generic
>>> linux-image-extra-4.4.0-31-generic
>>> linux-image-generic
>>> linux-libc-dev
>>> linux-sound-base
>>> richard at richard-desktop:~$ apt-mark showmanual|grep ^linux-
>>> linux-generic
>>> richard at richard-desktop:~$
>>>
>> your linux-image-generic and linux-headers-generic as well as linux-
>> libc-dev packages should all be manual ... (they are all second level
>> metapackages), then the autoremove magic should work fine ...
>>
>> ciao
>> oli
>>
>>
>
>
>
> -- ubuntu-users mailing list ubuntu-users at lists.ubuntu.com Modify
> settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
> 02.08.2016, 20:21, Ralf Mardorf kirjoitti:
>> On Tue, 02 Aug 2016 15:47:14 +0200, Oliver Grawert wrote:
>>> hi,
>>> On Di, 2016-08-02 at 14:23 +0200, Ralf Mardorf wrote:
>>>>
>>>>
>>>> Assumed I want to remove the old kernel I run a script, autoremove
>>>> doesn't remove the old kernel.
>>> if:
>>>
>>> apt-mark showmanual|grep linux
>>>
>>> does not list your kernel packages, then this is a bug, please file it
>>> ...
>>> you can unset the "manual" flag to "auto" again with:
>>>
>>> apt-mark auto $packagename
>>>
>>> ...in case it listed your kernel packages
>>>
>>> (i bet your kernel is set to manual simply because it isnt the default
>>> kernel, so you most likely manually apt-get installed it after the OS
>>> was installed, which would have marked it as manual)
>> Hi,
>>
>> you're right.
>>
>> [weremouse at moonstudio ~]$ apt-mark showmanual|grep linux
>> console-setup-linux
>> libselinux1
>> linux-headers-lowlatency
>> linux-image-lowlatency
>> linux-libc-dev
>> linux-lowlatency
>> util-linux
>>
>> I'll stay with this, but maybe for testing purpose I'll run
>>
>> # apt-mark auto linux-lowlatency
>>
>> or do I need to run
>>
>> # apt-mark auto linux-lowlatency linux-headers-lowlatency\
>> linux-image-lowlatency
>>
>> ?
>>
>> Regards,
>> Ralf
>>
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20160803/975b3be0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mikkola_pekka.vcf
Type: text/x-vcard
Size: 245 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20160803/975b3be0/attachment.vcf>
More information about the ubuntu-users
mailing list