-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux Kernel Management
Complete beginner-friendly guide to managing kernels on Linux, covering Arch Linux, CachyOS, and other distributions including installation, removal, switching, kernel parameters, and custom kernels.
- Understanding Kernels
- Available Kernels
- Installing Kernels
- Removing Kernels
- Switching Kernels
- Kernel Parameters
- CachyOS-Specific Kernels
- Custom Kernels
- Troubleshooting
Kernel is the core of the operating system.
What it does:
- Manages hardware: Controls hardware devices
- Manages memory: Handles RAM and memory
- Manages processes: Controls running programs
- System interface: Interface between hardware and software
Why different kernels:
- Different schedulers: BORE, EEVDF, CFS, etc.
- Different features: RT, LTS, etc.
- Different optimizations: Performance, stability
Version format:
6.6.0-arch1
│ │ │ └─── Build number
│ │ └───── Patch version
│ └─────── Minor version
└───────── Major version
Available in repositories:
- linux: Latest stable kernel
- linux-lts: Long-term support kernel
- linux-hardened: Security-hardened kernel
- linux-zen: Performance-optimized kernel
List installed kernels:
# List installed kernels
pacman -Q | grep linux
# Check running kernel
uname -rInstall latest kernel:
# Arch
sudo pacman -S linux linux-headers
# For firmware
sudo pacman -S linux-firmwareInstall LTS kernel:
# Arch
sudo pacman -S linux-lts linux-lts-headersInstall Zen kernel:
# Arch
sudo pacman -S linux-zen linux-zen-headersRemove kernel:
# Remove kernel
sudo pacman -R linux
# Remove with headers
sudo pacman -R linux linux-headersRemove old kernels:
# List kernels
pacman -Q | grep linux
# Remove old kernels (keep current)
sudo pacman -R linux-old-versionSelect kernel at boot:
- Boot menu (GRUB/systemd-boot)
- Select kernel from menu
- Boot
Edit bootloader:
# Edit GRUB
sudo vim /etc/default/grub
# Regenerate
sudo grub-mkconfig -o /boot/grub/grub.cfgEdit GRUB:
# Edit GRUB
sudo vim /etc/default/grubAdd parameters:
GRUB_CMDLINE_LINUX_DEFAULT="quiet mitigations=off"
Regenerate:
sudo grub-mkconfig -o /boot/grub/grub.cfglinux-cachyos:
- Scheduler: BORE (default)
- Best for: Desktop, gaming
- Features: Performance optimized
linux-cachyos-eevdf:
- Scheduler: EEVDF
- Best for: General use, servers
- Features: Modern fair scheduler
linux-cachyos-sched-ext:
- Scheduler: sched-ext (extensible)
- Best for: Advanced users
- Features: Custom schedulers
linux-cachyos-rt:
- Type: Real-time kernel
- Best for: Real-time applications
- Features: Low latency
linux-cachyos-lts:
- Type: Long-term support
- Best for: Stability
- Features: Long-term updates
Install linux-cachyos:
sudo pacman -S linux-cachyos linux-cachyos-headersInstall other kernels:
sudo pacman -S linux-cachyos-eevdf linux-cachyos-eevdf-headersSee CachyOS Kernel Management for detailed CachyOS kernel guide.
See Kernel Compilation for detailed guide.
Boot from previous kernel:
- Boot menu
- Select previous kernel
- Boot
Check modules:
# Check loaded modules
lsmod
# Load module
sudo modprobe module-nameThis guide covered kernel management for Arch Linux, CachyOS, and other distributions, including installation, removal, switching, kernel parameters, and CachyOS-specific kernels.
- Bootloader Configuration - Bootloader setup
- CachyOS Kernel Management - CachyOS kernels
- Kernel Compilation - Custom kernels
- ArchWiki Kernel: https://wiki.archlinux.org/title/Kernel
This guide covers Arch Linux, CachyOS, and other Linux distributions. CachyOS-specific kernels are highlighted where applicable.