From 2d3ec07a63c8bae7d704f09e5dc0d6c4d181ba49 Mon Sep 17 00:00:00 2001 From: Cheng-Yang Chou Date: Sat, 12 Apr 2025 02:12:25 +0800 Subject: [PATCH] Update kernel header install command for clarity Remove the redundant 'kmod' installation since it is already installed earlier. Also replace the hardcoded kernel version with 'uname -r' to improve portability and compatibility with modern Linux distributions. --- lkmpg.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lkmpg.tex b/lkmpg.tex index 7236142..1558a82 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -210,7 +210,7 @@ apt-cache search linux-headers-`uname -r` The following command provides information on the available kernel header files. Then for example: \begin{codebash} -sudo apt-get install kmod linux-headers-5.4.0-80-generic +sudo apt-get install linux-headers-`uname -r` \end{codebash} On Arch Linux: