You are not logged in.

#1 2013-04-16 21:30:56

nLinked
Member
Registered: 2013-04-06
Posts: 38

[SOLVED] Do I need to remove old Linux kernals as part of maintenance?

When I used to use Ubuntu, new kernals would get installed, and as part of my monthly maintenance, I would open Synaptic Package Manager, find the old linux-image-* and linux-headers-* packages and purge them, keeping only the latest 1 or 2. This would free much disk space.

In Arch, if a new kernal is found and updated through pacman (example, linux-3.8.7.1), does it overwrite the old one meaning no maintenance needed as I used to on Ubuntu? Or does it depend on my boot loader (I'm using syslinux)?

Last edited by nLinked (2013-04-16 21:41:45)

Offline

#2 2013-04-16 21:38:25

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] Do I need to remove old Linux kernals as part of maintenance?

The linux kernel is found at /boot/vmlinuz-linux . The filename does not show you the kernel name, that means on update the old kernel is simply overwritten because the filename stays the same. This is independent of your bootloader. However old packages not currently installed, and old package versions are kept in /var/cache/pacman/pkg . You can find the linux package there, too. To clean this cache use paccache. IMHO this method is simpler than the ubuntu method, because the boot loader does not need to be updated.

Offline

#3 2013-04-16 21:41:17

nLinked
Member
Registered: 2013-04-06
Posts: 38

Re: [SOLVED] Do I need to remove old Linux kernals as part of maintenance?

Thanks. This is so much of a better system. I prefer it overwriting the old as it means I simply perform my usual system backup with rsync and let it go ahead and update, while at the same time keeping the system clean. I also started using paccache. This is great, so glad I switched!

Offline

#4 2013-04-17 00:50:00

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: [SOLVED] Do I need to remove old Linux kernals as part of maintenance?

Note the obvious: it means you need to know what to do if a new kernel will not boot for you. (Installing the LTS kernel can help with that somewhat.)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-04-17 00:55:46

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] Do I need to remove old Linux kernals as part of maintenance?

In my case LTS usually brings some trouble with either wireless/LAN or Nvidia but certainly can be used for troubleshooting backup kernel. I always have a custom kernel installed from AUR for backup.

Offline

#6 2013-04-17 01:03:44

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: [SOLVED] Do I need to remove old Linux kernals as part of maintenance?

It doesn't shutdown cleanly for me but it is nonetheless worth having for emergencies - I don't carry a live USB with me so it is useful to have something in reserve.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2013-04-17 01:05:49

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] Do I need to remove old Linux kernals as part of maintenance?

The bottom line point is dont do a kernel upgrade when you are not going to have your backup resources.

Offline

Board footer

Powered by FluxBB