Install kernel source for fedora8

Source: Internet
Author: User
Install kernel source for fedora8
Source: chinaunix blog Date: 2008.07.10 20:43 (0 comments in total) I want to comment
 
Install kernel source
07 November 2007
Installing the kernel source isTypically not neededUnless you wish
Re-compile your kernel or for some special development. However in some
Cases
Kernel Headers
May be required.
There are 3 basic steps involved in installing the kernel source.
  • Download the desired kernel source (matching your current KernelIf required)
  • Installing the SRC. RPM package
  • Using rpmbuild to prepare the source into a usable state
    Note:Following these steps will consumeAtLeast400 mbOf disk space!
    1. Download the kernel source
    Obtaining kernel source (DefaultFedora 8 kernel)
    TheDefaultKernel source can be found through any fedora mirror. Look in
    Directory "/source/srpms/" under the "/8/" directory. For example:
    Http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Fedora/source/SRPMS/
    .
    Kernel-2.6.23.1-42.fc8.src.rpm 31--200-2007 46 m

    Obtaining kernel source (forUpdatedFedora 8 kernel)
    If you updated your kernel, then the typically the last 2 or 3 releases of
    Source of the kernel will be available though the fedora updates.
    If you requireYou can (try to) match the kernel source with your running kernel.
    Look in the update directory on most fedora mirror sites. For example:
    Http://download.fedora.redhat.com/pub/fedora/linux/updates/8/SRPMS/
    .
    Obtaining kernel source through 'yum '(LatestFedora 8 kernel)
    There are Yum utilities which will downloadLatestKernel source. If it does not find anything, then there are no updates (yet) use the default fedora kernel source.
    [Mirandam @ Charon ~] $
    Sudo
    Yum install Yum-utils
    [Mirandam @ Charon ~] $ CD downloads
    [Mirandam @ Charon downloads] $ yumdownloader -- source Kernel
    2. Install the kernel source
    Install the kernel. SRC. RPM that you chose to download in the previous steps.
    [Mirandam @ Charon downloads] $ sudo rpm-IVH kernel-2.6.23.1-42.fc8.src.rpm
    1: kernel ####################################### #### [100%]
    Ignore group kojibuilder does not exist or user kojibuilder does not exist warnings.
    3. Prepare the source
    To prepare the source to be useable:
    [Mirandam @ Charon downloads] $ sudo rpmbuild-BP -- target =$ (Uname-m)/Usr/src/RedHat/specs/kernel. spec
    The source files will be properly located in/usr/src/RedHat/build/kernel-2.6.23 /.
    There are 2 useful directories:
  • Linux-2.6.23.Arch/
    This will have the standard kernel.org kernel with fedora patches and updates.
    The arch architecture will match the output of uname-M, usually i686.
    You may use noarch for the -- target = option if you wish.
  • Vanilla/
    This will have the standard kernel.org kernel only (no patches or updates ).
    Note:The process fedora uses to build and configure kernels can be found in greater depth on
    Fedora Wiki
    . The above information is very basic and meant to allow access to the source and not necessarily build it.


    This article is from the chinaunix blog. If you want to view the original text, click:Http://blog.chinaunix.net/u/1807/showart_1078335.html

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.