
| This forum is proudly powered by Scientific Linux 6 | SL website Download SL Help Search Members |
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| leigh123linux |
Posted: Apr 20 2011, 03:28 PM
|
|||||||||||||
![]() SLF Junior ![]() ![]() Group: Members Posts: 46 Member No.: 48 Joined: 14-April 11 |
First install fedpkg from the fedora epel repo
You will probably need to install and setup the required build tools as well
Setup your rpmbuild directory, as non-root run
as non root check out and build newt needed for rebuilding the newer kernels.
Now for the kernel build (Takes 10 - 60 minutes to complete depending on hardware) (I have chosen the F15 kernel which is currently 2.6.38.3).
If it completes successfully you will find the packages (kernel,kernel-devel,kernel-headers and perf) at ~/rpmbuild/RPMS/`uname -m`/ You can use fedpkg to build any package in the fedora and epel repos ![]() If you have the required build requirements already installed you could run
to build |
|||||||||||||
| leigh123linux |
Posted: Apr 20 2011, 04:06 PM
|
|||
![]() SLF Junior ![]() ![]() Group: Members Posts: 46 Member No.: 48 Joined: 14-April 11 |
I will need to do a guide on rebuilding the kmods next
|
|||
| AndrewSerk |
Posted: Apr 20 2011, 06:30 PM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
Hello leigh,
I found that when executing the code "su -c "yum -y --nogpgcheck install ~/rpmbuild/RPMS/`uname -m`/newt*rpm -x newt-debuginfo,newt-static" " It looks in the /root.... directory for the rpm instead of the /home/user/rpmbuild/......... Besides that everything went great and it was as simple as copy/paste. Great How To, Thank you, ![]() EDIT: Thanks for putting time in the command to remind me how slow my build-system is. real 29m53.583s user 55m33.318s sys 12m6.579s |
|
| leigh123linux |
Posted: Apr 20 2011, 06:50 PM
|
|||||
![]() SLF Junior ![]() ![]() Group: Members Posts: 46 Member No.: 48 Joined: 14-April 11 |
Thanks, I have changed it to
|
|||||
| spoovy |
Posted: Apr 20 2011, 07:42 PM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() Group: Moderators Posts: 281 Member No.: 5 Joined: 8-April 11 |
Great thanks Leigh i'll give that a go.
-------------------- |
|
| alexander.hunt |
Posted: Jul 12 2011, 06:52 PM
|
|
|
SLF Newbie Group: Members Posts: 11 Member No.: 149 Joined: 10-May 11 |
Thank you very much Leigh, I used your instructions to rebuild the F15 kernel (version 2.6.38.8-35.el6.x86_64) last night and also the linux-firmware package from F15 that it wanted at install time. It all worked perfectly, installed perfectly and booted perfectly, even lsmod showed that all the blacklisted modules that I have personally blacklisted on my machine were still blacklisted.
What an easy way to do a kernel upgrade! ![]() Thank you again, I am a big fan of your work (Thanks for the Firefox5 package as well). Best regards, Alex |
|
| lebenskuenstler |
Posted: Jul 13 2011, 06:42 PM
|
|
|
SLF Newbie Group: Members Posts: 4 Member No.: 391 Joined: 6-July 11 |
Just a minor remark: rpmdevtools (and fakeroot) has also to be installed.
![]() LK |
|
| spoovy |
Posted: Jul 13 2011, 08:06 PM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() Group: Moderators Posts: 281 Member No.: 5 Joined: 8-April 11 |
Is there any advantage to using this fedpkg method over this one = http://scientificlinuxforum.org/index.php?showtopic=128 ?
-------------------- |
|
| AndrewSerk |
Posted: Jul 14 2011, 02:53 AM
|
|||
![]() SLF Moderator ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 524 Member No.: 54 Joined: 14-April 11 |
One advantage of fedpkg is, you don't have to hunt down srpms. |
|||
| spoovy |
Posted: Aug 15 2011, 09:27 AM
|
|
![]() SLF Moderator ![]() ![]() ![]() ![]() Group: Moderators Posts: 281 Member No.: 5 Joined: 8-April 11 |
I finally got around to testing this out. Very interesting, but i've one question - is it possible to browse the Fedora repos from the command line somehow? I built python3 but just guessed at the name, which luckily worked (ie "fedpkg co -a -B python3").
This post has been edited by spoovy: Aug 15 2011, 09:28 AM -------------------- |
|
![]() |
![]() ![]() ![]() |