Re: How to uninstall a kernel and *all* of its "dependencies"?
AFAIK aptitude will not allow you to leave youtself without any kernel easily :)
You can see which kernel packages are installed on your machine using
dpkg -l 'linux-image*'
On Fri, Oct 23, 2009 at 7:02 PM, Jari Fredriksson <firstname.lastname@example.org> wrote:
> 23.10.2009 14:54, Alexey Salmin kirjoitti:
>> On Fri, Oct 23, 2009 at 6:35 PM, Jari Fredriksson <email@example.com> wrote:
>>> 23.10.2009 14:23, Klistvud kirjoitti:
>>>> Dne, 23. 10. 2009 12:49:12 je Johannes Wiedersich napisal(a):
>>>>> Why don't you just give it a try and follow up with any questions or
>>>>> problems you face?
>>>> Because I'm not yet familiar enough with Debian (or GNU/Linux, for that
>>>> matter) to know where to look for leftovers once the kernel is
>>>> uninstalled; I'm able to track down the location of Grub's menu.lst and
>>>> of the kernel modules, but that's about it. I'm just trying to get some
>>>> input from more experienced users before 'giving it a try'; eventually,
>>>> I *will* do that, and follow with any questions or problems I may face.
>>> I don't know if this is the correct way, but I just remove all files in
>>> /boot that resemble the kernel version, plus
>>> /lib/modules/<kernel-version> plus edit the /boot/grub/menu.lst by hand
>>> and remove the lines for the kernel.
>>> Now that I think about it, maybe I should to it via package management...
>>> You're currently going through a difficult transition period called "Life."
>> That's definitely not a right way. Generally, modifying system files
>> manually is usually a bad idea.
>> Almost every file in your system (I'm talking about /usr /lib /boot
>> etc, not /home or /var/log) belongs to some package.
>> If you want to remove it - it's better to remove a whole package. When
>> the package is removed you can delete it's reverse-dependencies using
>> "apt-get auto-remove" (or smth like that in another package manager) -
>> but be careful here, check the packages list which are going to be
>> removed. There accidentally might be some important things, you can
>> tell that you still need with explicit install command.
>> Please not that removing the package leaves it's configuration files.
>> If you want to remove them as well you should "purge" the package.
>> That was a brief introduction in a concept of software packages :)
> Yup, I know how packages are managed, and usually I do that. aptitude
> remove or purge..
> But somehow I have not done that with kernel packages.
> I do not want to command "aptitude purge kernel" ;D
> Kernels are different, as there are various versions, and I just never
> want to live without *a* kernel.
> You're currently going through a difficult transition period called "Life."