LSX-blog

Feed Rss

【原创】打包内核为RPM包

05.31.2015, Linux, by .

下载内核包

1
https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.7.tar.gz

安装依赖包

1
yum install gcc rpm-build redhat-rpm-config ncurses-devel patchutils bc xmlto asciidoc elfutils-libelf-devel zlib-devel binutils-devel newt-devel python-devel perl-ExtUtils-Embed hmaccalc kernel-firmware -y

解压内核压缩包

1
tar zxvf linux-3.16.7.tar.gz

复制本机内核配置到新内核目录

1
2
cd linux-3.16.7
cp /boot/config-2.6.32-504.8.1.el6.x86_64 .config

增加内核安装后默认启动

1
2
cd linux-3.16.7
vim scripts/package/mkspec

在%post最后面增加如下行

1
echo "/sbin/grubby --set-default 0"

在%post段后面添加%preun段

1
2
3
echo "%preun"
echo "new-kernel-pkg --rminitrd --rmmoddep --remove $KERNELRELEASE"
echo ""

简单设置config

1
make menuconfig

General setup —> Local version – append to kernel release
输入
.el6.x86_64
保存
创建RPM包
make rpm-pkg

等待完成
~/rpmbuild/RPMS/x86_64 即可看到。

【原创】打包内核为RPM包 有 81,952 条回应

  1. [url=https://wellbutrin.us.org/]buy wellbutrin[/url] [url=https://retina.us.org/]purchase generic retin a[/url] [url=https://zovirax.us.com/]zovirax 800 mg[/url] [url=https://proscar.us.com/]proscar 5mg price in usa[/url] [url=https://cephalexin365.com/]cephalexin 800 mg[/url] [url=https://motrin.us.com/]motrin 800[/url] [url=https://bupropion365.com/]bupropion 150 mg coupon[/url] [url=https://azithromycin.us.org/]buy azithromycin[/url] [url=https://ivermectin.us.org/]ivermectin online[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url]

    回复
  2. [url=https://cephalexin365.com/]cephalexin pills[/url] [url=https://wellbutrin.us.org/]wellbutrin cost south africa[/url] [url=https://ivermectin.us.org/]stromectol tablet 3 mg[/url] [url=https://domperidone.us.com/]where to buy motilium 10mg[/url] [url=https://motrin.us.com/]motrin 800[/url]

    回复
  3. [url=https://proscar.us.com/]buy proscar[/url] [url=https://azithromycin.us.org/]how to get azithromycin 1g[/url]

    回复
  4. [url=http://lipitor.us.org/]lipitor 10 mg tablet[/url] [url=http://prazosin.us.com/]prazosin drug[/url] [url=http://chloroquinaralen.com/]chloroquine hydroxychloroquine[/url] [url=http://attarax.com/]atarax tablets[/url]

    回复
  5. [url=https://nexium.us.org/]can i purchase nexium over the counter[/url] [url=https://singulair.us.com/]where to buy singulair[/url] [url=https://domperidone.us.com/]domperidone[/url] [url=https://trazodonesale.com/]trazodone 50mg[/url]

    回复
  6. [url=https://ivermectin.us.org/]buy ivermectin[/url]

    回复
  7. What a material of un-ambiguity and preserveness of precious know-how about unpredicted
    emotions.

    回复
  8. [url=http://hydroxychlorothiazide.com/]hydrochlorothiazide 2.5 mg[/url] [url=http://bupropion365.com/]bupropion xl 300mg[/url] [url=http://lipitor.us.org/]lipitor 80 mg[/url] [url=http://proscar.us.com/]proscar drug[/url] [url=http://tamoxifenpct.com/]tamoxifen 10 mg[/url]

    回复
  9. Hi friends, how is the whole thing, and what you desire to say regarding this piece of writing, in my view its really amazing in favor of me.

    回复
  10. [url=https://flomax.us.com/]buy flomax[/url] [url=https://nexium.us.org/]nexium 20 mg[/url] [url=https://metformin.us.org/]metformin medication[/url] [url=https://motrin.us.com/]motrin 200 mg[/url] [url=https://zovirax.us.com/]where to buy zovirax cream[/url] [url=https://domperidone.us.com/]buy domperidone[/url] [url=https://retina.us.org/]retin a 0.25[/url] [url=https://tamoxifenpct.com/]buy nolvadex tamoxifen[/url] [url=https://priligy.us.com/]priligy tablets for sale[/url] [url=https://attarax.com/]atarax 25 mg[/url]

    回复
  11. [url=https://motrin.us.com/]cost of 600mg motrin[/url]

    回复
  12. [url=http://tamoxifenpct.com/]tamoxifen medication[/url]

    回复
  13. I’ve been surfing online more than three hours today, yet I never found any interesting article like
    yours. It’s pretty worth enough for me. In my opinion, if
    all site owners and bloggers made good content as you did, the internet
    will be much more useful than ever before. -tbym26

    回复
  14. [url=http://cialisprice.us.org/]discount cialis 20 mg coupon[/url]

    回复
  15. Awesome facts. Kudos! [url=https://payday8online.com/]fast personal loans[/url] personal loans poor credit

    回复
  16. [url=http://hydroxychloroquinecv.com/]plaquenil drug[/url] [url=http://domperidone.us.com/]motilium[/url] [url=http://duloxetine.us.com/]cymbalta 30 mg price australia[/url] [url=http://retina.us.org/]generic retin-a micro[/url] [url=http://wellbutrin.us.org/]wellbutrin xl 150[/url]

    回复
  17. Today, I went to the beach with my children. I found a sea shell and gave it to my
    4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to
    her ear and screamed. There was a hermit crab inside and it
    pinched her ear. She never wants to go back!

    LoL I know this is entirely off topic but I had to tell someone!

    回复
  18. [url=https://motrin.us.com/]motrin over the counter[/url]

    回复
  19. [url=https://domperidone.us.com/]buy no prescription motilium[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide online[/url] [url=https://malegra.us.org/]buy malegra 50 mg[/url]

    回复
  20. [url=http://singulair.us.com/]singulair daily[/url] [url=http://malegra.us.org/]buy malegra online[/url] [url=http://bupropion365.com/]where to buy bupropion[/url] [url=http://motrin.us.com/]motrin tablets[/url] [url=http://ivermectin.us.org/]ivermectin 1%[/url] [url=http://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url] [url=http://retina.us.org/]generic retin a 5[/url] [url=http://trazodonesale.com/]buy trazodone[/url]

    回复
  21. Hey outstanding website! Does running a blog such as this take
    a large amount of work? I have very little knowledge of computer programming but I was hoping to start my own blog in the near future.

    Anyways, should you have any ideas or tips for new blog owners please share.
    I know this is off subject but I just needed to ask.
    Thanks!

    回复
  22. [url=https://motrin.us.com/]motrin coupon[/url]

    回复
  23. [url=https://metformin.us.org/]metformin hci[/url]

    回复
  24. Amazing information. Thanks a lot. [url=https://paydayloansbbv.com/]bad credit car loans[/url] unsecured personal loans

    回复
  25. [url=https://flomax.us.com/]flomax generic otc[/url] [url=https://azithromycin.us.org/]azithromycin buy online[/url] [url=https://cephalexin365.com/]buy cephalexin[/url] [url=https://trazodonesale.com/]buy trazodone[/url] [url=https://singulair.us.com/]singulair brand cost[/url] [url=https://malegra.us.org/]malegra 200 mg price[/url] [url=https://wellbutrin.us.org/]buy wellbutrin online cheap[/url] [url=https://prazosin.us.com/]prazosin[/url] [url=https://amitriptyline24.com/]buy elavil[/url] [url=https://chloroquine.us.org/]chloroquine otc canada[/url]

    回复
  26. If you are going for most excellent contents like I do, just visit
    this site everyday since it gives feature contents, thanks

    回复
  27. 먹튀사이트, 먹튀검증 먹튀사이트
    먹튀폴리스입니다. 먹튀폴리스는 신규는 물론 오픈된 먹튀사이트를 철저히 먹튀검증하여 먹튀없는 시대를 만들어가고 있습니다.
    먹튀폴리스를 사랑하는 여러분의 많은 호응바랍니다.
    여러분의 충실한 검증사이트가 되도록 노력하겠습니다.

    回复
  28. Thanks , I have just been searching for info about this subject for ages and yours is the best I’ve came upon so
    far. But, what concerning the conclusion? Are you positive about the supply?

    回复
  29. [url=http://hydroxychlorothiazide.com/]order hydrochlorothiazide over the counter[/url] [url=http://tamoxifenpct.com/]tamoxifen cost uk[/url] [url=http://motrin.us.com/]motrin 800 mg[/url] [url=http://zovirax.us.com/]zovirax generic[/url] [url=http://chloroquine.us.org/]chloroquine phosphate for sale uk[/url] [url=http://hydroxychloroquinecv.com/]hydroxychloroquine sulfate price[/url] [url=http://domperidone.us.com/]buy motilium online[/url] [url=http://azithromycin.us.org/]azithromycin buy online[/url]

    回复
  30. Your style is very unique compared to other folks I
    have read stuff from. I appreciate you for posting when you have the
    opportunity, Guess I’ll just bookmark this blog.

    回复
  31. [url=https://cephalexin365.com/]buy cephalexin 500mg canada[/url] [url=https://malegra.us.org/]malegra 100 gel[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide 50 mg[/url] [url=https://duloxetine.us.com/]cymbalta generic cost[/url] [url=https://domperidone.us.com/]buy motilium[/url] [url=https://singulair.us.com/]buy singulair tablets[/url] [url=https://chloroquinaralen.com/]chloroquine buy[/url] [url=https://trazodonesale.com/]rx trazodone[/url] [url=https://prazosin.us.com/]prazosin drug[/url] [url=https://hydroxychloroquinecv.com/]plaquenil 10 mg[/url]

    回复
  32. [url=http://hydroxychlorothiazide.com/]hydrochlorothiazide 50mg[/url] [url=http://hydroxychloroquine.us.com/]hydroxychloroquine buy[/url] [url=http://flomax.us.com/]flomax generic otc[/url] [url=http://proscar.us.com/]proscar tablets[/url] [url=http://cialisprice.us.org/]cialis price[/url] [url=http://nexium.us.org/]nexium buy[/url] [url=http://priligy.us.com/]buy priligy[/url] [url=http://chloroquine.us.org/]generic chloroquine[/url] [url=http://metformin.us.org/]metformin[/url] [url=http://azithromycin.us.org/]where to buy azithromycin[/url]

    回复
  33. [url=http://bupropion365.com/]bupropion sr 150[/url]

    回复
  34. [url=https://zovirax.us.com/]zovirax 800 mg[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url]

    回复
  35. [url=http://singulair.us.com/]singulair over the counter[/url] [url=http://zovirax.us.com/]zovirax tablets[/url] [url=http://flomax.us.com/]buy flomax[/url] [url=http://cialisprice.us.org/]cialis price[/url] [url=http://duloxetine.us.com/]duloxetine[/url] [url=http://hydroxychlorothiazide.com/]hydrochlorothiazide generic[/url]

    回复
  36. If you desire to improve your know-how only keep visiting this site and
    be updated with the newest information posted here.

    回复
  37. Incredible many of superb advice! [url=https://paydayloansbbv.com/]money in minutes[/url] cash now

    回复
  38. [url=https://tamoxifenpct.com/]tamoxifen buy[/url] [url=https://attarax.com/]atarax pills[/url] [url=https://ivermectin.us.org/]stromectol ivermectin[/url] [url=https://metformin.us.org/]metformin[/url] [url=https://chloroquine.us.org/]chloroquine[/url]

    回复
  39. [url=https://metformin.us.org/]metformin[/url] [url=https://nexium.us.org/]nexium[/url] [url=https://motrin.us.com/]motrin 800mg uk[/url] [url=https://prazosin.us.com/]prazosin 5 mg[/url] [url=https://cephalexin365.com/]rx cephalexin[/url] [url=https://attarax.com/]atarax buy[/url] [url=https://prednisolone.us.org/]buy prednisolone tablets[/url] [url=https://amitriptyline24.com/]amitriptyline 20 mg[/url] [url=https://proscar.us.com/]buy proscar[/url] [url=https://trazodonesale.com/]trazodone 50mg daily[/url] [url=https://chloroquine.us.org/]chloroquine buy[/url] [url=https://malegra.us.org/]buy malegra dxt[/url] [url=https://hydroxychloroquine.us.com/]hydroxychloroquine chloroquine[/url] [url=https://hydroxychloroquinecv.com/]quineprox kratom chloroquine[/url] [url=https://tamoxifenpct.com/]price of tamoxifen[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide 25 mg tablet[/url] [url=https://flomax.us.com/]flomax price[/url] [url=https://wellbutrin.us.org/]buy wellbutrin[/url] [url=https://retina.us.org/]retin-a micro[/url] [url=https://domperidone.us.com/]domperidone[/url]

    回复
  40. [url=http://hydroxychlorothiazide.com/]buy hydrochlorothiazide[/url] [url=http://hydroxychloroquinecv.com/]plaquenil sulfate[/url] [url=http://motrin.us.com/]motrin discount[/url] [url=http://domperidone.us.com/]buy motilium uk[/url] [url=http://duloxetine.us.com/]where to buy cymbalta[/url]

    回复
  41. I’m not that much of a online reader to be honest but your blogs really nice, keep it up!
    I’ll go ahead and bookmark your website to come back in the future.
    Cheers

    回复
  42. [url=http://amitriptyline24.com/]amitriptyline 10mg[/url]

    回复
  43. Just wish to say your article is as astounding.
    The clearness in your post is simply cool and i could assume you’re an expert on this subject.
    Well with your permission allow me to grab your feed to keep updated with forthcoming post.
    Thanks a million and please carry on the rewarding work.

    回复
  44. [url=http://chloroquinaralen.com/]buy chloroquine[/url]

    回复
  45. These are in fact impressive ideas in regarding blogging.
    You have touched some nice things here. Any way keep up wrinting.

    回复
  46. I must thank you for the efforts you’ve put in writing this blog.
    I am hoping to check out the same high-grade content by you later on as well.
    In fact, your creative writing abilities has encouraged me to get my very own website now 😉

    回复
  47. Nicely put, Thank you. [url=https://paydayloansttf.com/]online cash advance[/url] personal loan for bad credit

    回复
  48. [url=https://hydroxychloroquine.us.com/]hydroxychloroquine sulfate[/url] [url=https://ivermectin.us.org/]where to buy ivermectin[/url] [url=https://nexium.us.org/]nexium pills in canada[/url] [url=https://proscar.us.com/]buy proscar online[/url] [url=https://metformin.us.org/]metformin er 500[/url]

    回复

发表评论

电子邮件地址不会被公开。 必填项已用*标注