installing kernel source code in Redhat or centos, kernel headers install
2011-11-05 09:21
519 查看
安装内核源码步骤installing kernel source code in Redhat or centos, kernel headers install 2011-03-10 15:15 Both CentOS and RHEL5 includes following packages: Kernel-headers : It includes the C header files that specify the interface between the Linux kernel and userspace libraries and programs. The header files define structures and constants that are needed for building most standard programs and are also needed for rebuilding the glibc package. kernel-devel : This package provides kernel headers and makefiles sufficient to build modules against the kernel package. c) Actual kernel source code : You can always download actual source code here. Look for kernel*.rpm file. Rhel / CentOS 5 install kernel headers Use yum command as follows:
# yum install kernel-devel Kernel-headers Install kernel source code Type the command as follows:
# cd /tmp
# wget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/kernel-2.6.18-8.1.8.el5.src.rpm # rpm -ivh kernel-2.6.18-8.1.8.el5.src.rpm Note change version number as per your current kernel. For recompiling or adding a new module or device driver you just need kernel-devel and Kernel-headers packages. To rebuilt kernel rpm goto /usr/src/redhat/SPECS directory, modify kernel spec file and use rpmbuild command to rebuild rhel/centos kernel rpm.
# yum install kernel-devel Kernel-headers Install kernel source code Type the command as follows:
# cd /tmp
# wget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/kernel-2.6.18-8.1.8.el5.src.rpm # rpm -ivh kernel-2.6.18-8.1.8.el5.src.rpm Note change version number as per your current kernel. For recompiling or adding a new module or device driver you just need kernel-devel and Kernel-headers packages. To rebuilt kernel rpm goto /usr/src/redhat/SPECS directory, modify kernel spec file and use rpmbuild command to rebuild rhel/centos kernel rpm.
相关文章推荐
- Install apache in linux(ubuntu or redhat/centos)
- Howto install VMware tools on Centos 6.3 or Redhat 6.3 RHEL
- Installing Python 2.6 in CentOS 5 (or RHEL5)
- Install Language support in CentOS 5 or Red Hat Enterprise Linux CentOS add Chinese Support
- Install Language support in CentOS 5 or Red Hat Enterprise Linux CentOS add Chinese Support
- install php7 mysql5.6 apache2.4 in centos 6 or 7
- Install CodeBlocks in CentOS 7
- How to install pam_mysql in CentOS or Red Hat
- Manage Android source code like sourceinsight in MotoDev Studio or Eclipse
- Install MongoDB on RedHat Enterprise, CentOS, or Fedora Linux
- TCP Socket Establish;UDP Send Package Process In Kernel Sourcecode Learning
- Installing openvswitch in CentOS 6.3 from Git Source
- Install Linux Kernel 4.10 In CentOS and Ubuntu
- how to install your kernel code in FC6
- CentOS Kernel Source Install
- How to install codeblocks in RedHat without root authority
- Install ProcessMaker 3.1 or 3.2 in CentOS/RHEL 7
- Install CodeBlocks in CentOS 7
- At least one valid code-source or import-shared-library element is required for shared-library "global.libraries" in /embedded-
- cygwin下安装crosstool-ng错误'Installing kernel headers': scripts/basic/fixdep: No such file or directory