dsc3507
Posts: 40
Joined: Sun Apr 28, 2013 5:08 am

PIDORA 18 source

Mon Feb 17, 2014 3:48 pm

Where can I get an easily downloadable source pakage for version Pidora 18? I need to compile some modules that require it.

macemoneta
Posts: 59
Joined: Sun Oct 23, 2011 12:47 pm
Contact: Website

Re: PIDORA 18 source

Mon Feb 17, 2014 7:12 pm

You can get source for a package with:

yumdownloader --source packagename

dsc3507
Posts: 40
Joined: Sun Apr 28, 2013 5:08 am

Re: PIDORA 18 source

Mon Feb 17, 2014 9:45 pm

I guess I said that wrong. I don't want source for a package, I want the entire source pacakge for the Pidora 18 kernel.

macemoneta
Posts: 59
Joined: Sun Oct 23, 2011 12:47 pm
Contact: Website

Re: PIDORA 18 source

Mon Feb 17, 2014 11:06 pm

The kernel is just a package.

yumdownloader --source raspberrypi-kernel

dsc3507
Posts: 40
Joined: Sun Apr 28, 2013 5:08 am

Re: PIDORA 18 source

Mon Feb 17, 2014 11:42 pm

Ok pardon my ignorance...

When I 'yumdownloader --source raspberrypi-kernel' it downloads

raspberrypi-kernel-3.12.0-5.20131106git839f349.rpfr which is only a 6.6M file

I need source for kernel 3.6.11 Pidora 18

What do I need to do?

dsc3507
Posts: 40
Joined: Sun Apr 28, 2013 5:08 am

Re: PIDORA 18 source

Mon Feb 17, 2014 11:45 pm

ops sorry about size. It is 114M but wrong kernel.

dsc3507
Posts: 40
Joined: Sun Apr 28, 2013 5:08 am

Re: PIDORA 18 source

Tue Feb 18, 2014 12:39 am

What I want to do is have the kernel source tree at /usr/src/kernels

I don't want to rebuild the kernel. I need to use it for building other code. Will installing the rpm just create a kernel source tree or will it also rebuild the kernel?

macemoneta
Posts: 59
Joined: Sun Oct 23, 2011 12:47 pm
Contact: Website

Re: PIDORA 18 source

Tue Feb 18, 2014 4:04 am

To install the source rpm, install the rpmdevtools package:

yum install rpmdevtools

Once that's done, you can create the install tree as a user (not root) with:

rpmdev-setuptree

You can then install the source (as the same user) with:

rpm -ivh raspberrypi-kernel*.src.rpm

The source will be in the ~/rpmbuild/SOURCES/ directory.

dsc3507
Posts: 40
Joined: Sun Apr 28, 2013 5:08 am

Re: PIDORA 18 source

Tue Feb 18, 2014 4:31 am

OK thanks.. Is the '*' in the kernel line to be replaced with version? I need to search for available versions?

dsc3507
Posts: 40
Joined: Sun Apr 28, 2013 5:08 am

Re: PIDORA 18 source

Tue Feb 18, 2014 7:02 am

OK here is what I did. Created the tree which exists then....

[doug@raspi src]$ rpm -ivh raspberrypi-kernel-3.6.11-12.20130920git966efc7.rpfr18.src.rpm
Updating / installing...
1:raspberrypi-kernel-3.6.11-12.2013################################# [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
[doug@raspi src]$

and nothing in the directories under tree.

macemoneta
Posts: 59
Joined: Sun Oct 23, 2011 12:47 pm
Contact: Website

Re: PIDORA 18 source

Tue Feb 18, 2014 1:30 pm

$ rpmdev-setuptree

$ rpm -ivh raspberrypi-kernel-3.6.11-5.20130415git197d15b.rpfr18.src.rpm

$ find /home/mmoneta/rpmbuild/
/home/mmoneta/rpmbuild/
/home/mmoneta/rpmbuild/RPMS
/home/mmoneta/rpmbuild/SOURCES
/home/mmoneta/rpmbuild/SOURCES/197d15b20993e8d58e83ab871abb5a6b441a9b17

$ cd ~/rpmbuild/SOURCES/

$ file 197d15b20993e8d58e83ab871abb5a6b441a9b17
197d15b20993e8d58e83ab871abb5a6b441a9b17: gzip compressed data, from Unix

$ mv 197d15b20993e8d58e83ab871abb5a6b441a9b17 linux.tar.gz

$ tar xvzf linux.tar.gz

dsc3507
Posts: 40
Joined: Sun Apr 28, 2013 5:08 am

Re: PIDORA 18 source

Tue Feb 18, 2014 6:03 pm

OK, got it! Thanks for the help.

Return to “Pidora / Fedora”