Rate This Document
Findability
Accuracy
Completeness
Readability

Downloading Kernel Source Code

This section describes how to obtain the correct kernel source code version and decompress the kernel source code.

  1. Download the kernel source package to the local PC according to Software Environment, upload it to the /usr/src directory on the server, and decompress the kernel source package.
    1
    2
    3
    cd /usr/src
    tar -zxvf linux-5.15.98.tar.gz
    mv linux-5.15.98 linux-kernel-5.15.98
    
  2. Suppress the local version number.
    1
    2
    cd /usr/src/linux-kernel-5.15.98
    touch .scmversion