I've just Dist-Upgrade to kernel 2.6.28-14.How to get rid of previous kernels?

Carl Friis-Hansen ubuntuuser at carl-fh.com
Thu Aug 6 06:41:50 UTC 2009


On Thu, August 6, 2009 04:04, NoOp wrote:
> On 08/05/2009 06:57 PM, NoOp wrote:
>> On 08/05/2009 05:29 AM, Derek Broughton wrote:
>>> Bill Marcum wrote:
>>>
>>>> On 2009-07-30, Pastor JW <pastor_jw at the-inner-circle.org> wrote:
>>>>> On Wednesday 29 July 2009 12:06:37 pm Shannon McMackin wrote:
>>>>>>
>>>>>> If you fire up synaptic, you can actually see all the kernel-related
>>>>>> packages and what can be removed...
>>>>>
>>>>> Which is a much better way of doing it than to rely on a CLI command
>>>>> that you have no idea what it does!
>>>>
>>>> Of course, if you prefer to use the cli, you can also use aptitude in
>>>> interactive mode.
>>>
>>> In any case, I completely disagree with "much better way of doing it".
>>> How
>>> exactly does using a GUI magically make it clear what you've done?
>>>
>>> # sudo aptitude purge ~i2.6.28-12
>>>
>>> would, for instance, remove everything related to the 2.6.28-12 kernel
>>> (including source and headers).  Simpler _and_ more obvious than using
>>> synaptic, where you would likely remove the kernel _image_ and miss the
>>> headers.
>>
>> Interesting... two points:
>>
>> 1. If you are # (root) you won't need 'sudo'.
>>
>> 2. That comand doesn't work for me - does it for you?:
>
> My apologies:
>
> $ sudo aptitude purge -s ~i2.6.28-11
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Reading extended state information
> Initializing package states... Done
> The following packages will be REMOVED:
>   linux-headers-2.6.28-11{p} linux-headers-2.6.28-11-generic{p}
>   linux-image-2.6.28-11-generic{p}
>   linux-restricted-modules-2.6.28-11-generic{p}
> 0 packages upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
> Need to get 0B of archives. After unpacking 173MB will be freed.
> Do you want to continue? [Y/n/?]
>
> Apparently apt-get doesn't do the trick & isn't interchangeable with
> 'aptitude' and that command. Is there a similar '~i" for apt-get?

Would it be a reasonable precaution to include ~n in order to avoid other
fields than name being significant?
sudo aptitude purge -s '~i~n2.6.28-11'
-- 
                         ---------=oOOo=---------
                           Carl Friis-Hansen
                           http://carl-fh.com/
                           Phone: +46 372 15033
                         ---------=oOOo=---------






More information about the ubuntu-users mailing list