Re: Fedora 10 kernel source.

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

 



On 23/09/08 01:54, Paul W. Frields wrote:
> 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-*
> 
> 

Thanks for helping. yumdownloader didn't like the --enablerepo=rawhide, however
I did enable it in the repo and then I had no problem retrieving the kernel.

-- 
Erik.

-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux