Re: Fedora 10 kernel source.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2008-09-22 at 16:58 -0600, Phil Meyer wrote:
> Erik P. Olsen wrote:
> > I need to view the kernel source of fedora 10. Is there a way to do that?
> >
> >   
> 
> Same as always: (works for all recent Fedora/RH/Centos/Oracle based distros)
> 
> # = root or sudo
> $ = you
> 
> 1. # yum install yumutils rpmdevtools (you may also need sparse, and others)
> 1.a $ /usr/bin/rpmdev-setuptree
> 2. # yumdownloader --source kernel
> 3. $ rpm -ihv kernel-<whatever was just downloaded>.rpm
> 4. $ cd ~/rpmbuild/SPECS
> 5. $ rpmbuild -bp kernel.spec (additional dependencies, if any, will be 
> listed here)
> 6. $ cd ../BUILD/kernel-2.6.??
> 
> There you are!
> 
> Good Luck!

First, you don't need to be -- and probably *shouldn't* be -- root when
you do anything other than run yum or other admin utilities.  Also, keep
in mind that if you're not *running* Rawhide, to get the latest kernel
you need to enable that repo.  Might I suggest these alternate steps?

$ su -c 'yum install yum-utils rpmdevtools'
$ rpmdev-setuptree
$ yumdownloader --enablerepo=rawhide --source kernel
$ rpm -ivh kernel-<blah>.src.rpm
$ su -c 'yum-builddep kernel-<blah>.src.rpm'
$ rpmbuild -bp ~/rpmbuild/SPECS/kernel.spec
$ cd ~/rpmbuild/BUILD/kernel-*

-- 
Paul W. Frields
  gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233  5906 ACDB C937 BD11 3717
  http://paul.frields.org/   -  -   http://pfrields.fedorapeople.org/
  irc.freenode.net: stickster @ #fedora-docs, #fedora-devel, #fredlug

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux