linux kernel 源码安装

有时我们在安装系统后,发现没有安装当前系统的内核源码在/usr/src/kernels目录下,其实我们是少安装了一个rpm包;

当你配置好yum源后:

 yum install kernel-devel
[root@docker 4.19.13-300.fc29.x86_64]# pwd
/usr/src/kernels/4.19.13-300.fc29.x86_64
[root@docker 4.19.13-300.fc29.x86_64]# ls
arch   certs   drivers   fs       init  Kconfig  lib       mm              net      scripts   sound       tools  virt
block  crypto  firmware  include  ipc   kernel   Makefile  Module.symvers  samples  security  System.map  usr    vmlinux.id

更多源码网址:https://mirrors.tuna.tsinghua.edu.cn/kernel/ 

保持更新,转载请注明出处。

猜你喜欢

转载自www.cnblogs.com/xuyaowen/p/usr-src-kernel.html