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包 有 99,771 条回应

  1. [url=http://trazodonesale.com/]trazodone tablets[/url] [url=http://chloroquinaralen.com/]where to buy chloroquine[/url] [url=http://tamoxifenpct.com/]buy tamoxifen[/url] [url=http://motrin.us.com/]motrin 250 mg[/url] [url=http://bupropion365.com/]bupropion 150 mg coupon[/url] [url=http://prazosin.us.com/]prazosin 4 mg[/url]

    回复
  2. This is nicely expressed! ! [url=https://payday8online.com/]no credit check loans guaranteed approval[/url]
    [url=http://pardismohaseb.com/product/%d9%86%d8%b1%d9%85-%d8%a7%d9%81%d8%b2%d8%a7%d8%b1-%d8%ad%d8%b3%d8%a7%d8%a8%d8%af%d8%a7%d8%b1%db%8c-%d8%aa%d8%b9%d9%85%db%8c%d8%b1%da%af%d8%a7%d9%87-%d8%ae%d9%88%d8%af%d8%b1%d9%88/#comment-160565]v11efni n54xal[/url] fc1a0ab

    回复
  3. It’s the best time to make some plans for the longer term and it is
    time to be happy. I’ve learn this put up
    and if I may just I want to suggest you some attention-grabbing
    issues or tips. Maybe you could write subsequent articles
    relating to this article. I desire to learn even more things about it!

    回复
  4. Nicely put, Cheers. [url=https://dissertationwritingtop.com/]writing dissertation[/url]
    [url=http://ebishe.com/forum.php?mod=viewthread&tid=82489&pid=664214&page=20&extra=page%3D1#pid664214]p99gomn i96qsa[/url] 27c03fc

    回复
  5. [url=https://prednisolone.us.org/]prednisolone tablets[/url] [url=https://amitriptyline24.com/]amitriptyline 100 mg price[/url] [url=https://chloroquinaralen.com/]chloroquine phosphate for sale[/url] [url=https://tamoxifenpct.com/]buy tamoxifen[/url] [url=https://trazodonesale.com/]trazodone 100 mg tablet[/url] [url=https://azithromycin.us.org/]buy azithromycin tablet 500mg uk[/url] [url=https://cephalexin365.com/]generic cephalexin online[/url] [url=https://priligy.us.com/]priligy buy online[/url] [url=https://hydroxychloroquinecv.com/]plaquenil retinal toxicity[/url] [url=https://duloxetine.us.com/]duloxetine[/url] [url=https://singulair.us.com/]singulair without prescription[/url] [url=https://proscar.us.com/]buy proscar[/url] [url=https://metformin.us.org/]metformin[/url] [url=https://bupropion365.com/]bupropion 150mg sr[/url] [url=https://motrin.us.com/]motrin cost in india[/url] [url=https://lipitor.us.org/]lipitor 40 mg[/url] [url=https://malegra.us.org/]malegra dxt[/url] [url=https://zovirax.us.com/]buy zovirax[/url] [url=https://prazosin.us.com/]prazosin 0.5 mg[/url] [url=https://hydroxychlorothiazide.com/]buy hydrochlorothiazide[/url]

    回复
  6. [url=https://chloroquine.us.org/]chloroquine phosphate generic[/url]

    回复
  7. [url=https://domperidone.us.com/]motilium for breastfeeding[/url] [url=https://wellbutrin.us.org/]wellbutrin cost australia[/url] [url=https://retina.us.org/]order retin a from canada[/url] [url=https://nexium.us.org/]nexium for sale uk[/url] [url=https://metformin.us.org/]best brand metformin[/url] [url=https://ivermectin.us.org/]buy ivermectin[/url]

    回复
  8. Wow that was odd. I just wrote an very long comment but
    after I clicked submit my comment didn’t show up.
    Grrrr… well I’m not writing all that over again. Regardless,
    just wanted to say superb blog!

    回复
  9. Appreciate it, Loads of advice!
    [url=https://homeworkcourseworkhelp.com/]my homework[/url]
    [url=http://www.mastersstores.co.ke/?p=10855#comment-404537]b58lon5 j89vun[/url] 7_ef9e2

    回复
  10. Thank you for every other informative website. The place else may just I
    am getting that kind of information written in such a perfect method?
    I’ve a challenge that I am simply now running on,
    and I’ve been on the look out for such information.

    回复
  11. Thanks. Useful information. [url=https://paydayloansbbv.com/]usda home loans[/url]
    [url=http://www.sickautos.com/?q=node/30&page=98#comment-8511]p44fsgb y46zrr[/url] 03fc1a0

    回复
  12. [url=http://prazosin.us.com/]prazosin 1 mg[/url] [url=http://cephalexin365.com/]cephalexin 250 mg[/url] [url=http://domperidone.us.com/]where to get motilium[/url] [url=http://priligy.us.com/]buy priligy[/url] [url=http://motrin.us.com/]motrin 800[/url] [url=http://trazodonesale.com/]cost of trazodone in canada[/url] [url=http://tamoxifenpct.com/]how to buy tamoxifen 20 mg[/url] [url=http://duloxetine.us.com/]duloxetine[/url] [url=http://chloroquine.us.org/]order chloroquine phosphate[/url] [url=http://proscar.us.com/]proscar pharmacy[/url] [url=http://nexium.us.org/]generic for nexium[/url] [url=http://hydroxychlorothiazide.com/]buy hydrochlorothiazide[/url] [url=http://wellbutrin.us.org/]buy wellbutrin[/url] [url=http://singulair.us.com/]singulair generic[/url] [url=http://chloroquinaralen.com/]chloroquine phosphate canada[/url] [url=http://retina.us.org/]retin a pharmacy usa[/url] [url=http://prednisolone.us.org/]prednisolone 25mg[/url] [url=http://attarax.com/]buy atarax[/url] [url=http://amitriptyline24.com/]buy elavil[/url] [url=http://hydroxychloroquine.us.com/]plaquenil 200 mg price uk[/url]

    回复
  13. Incredible all kinds of terrific data! [url=https://viagradjango.com/]viagra 100mg[/url]
    [url=https://www.sandroachilles.com/online-tutorial-with-felix-rachor-sensitive-portraits/#comment-207790]t66ovs0 c388wr[/url] e5_83d1

    回复
  14. [url=https://cephalexin365.com/]can i order cephalexin online[/url]

    回复
  15. [url=https://prazosin.us.com/]prazosin 2mg pharmacy[/url]

    回复
  16. Factor clearly utilized.! [url=https://paydayloansttf.com/]personal loans for bad credit[/url]
    [url=https://www.tankerderbanker.dk/blog/en-tro-folgesvend-og-uven-i-noden-2019-03-20?page=24673#comment-1338057]h88jhow l950ug[/url] 03fc1a0

    回复
  17. [url=https://singulair.us.com/]singulair for bronchitis[/url]

    回复
  18. [url=https://hydroxychlorothiazide.com/]microzide[/url] [url=https://wellbutrin.us.org/]wellbutrin sr 150[/url] [url=https://priligy.us.com/]buy priligy[/url] [url=https://chloroquinaralen.com/]chloroquine buy[/url]

    回复
  19. Valuable write ups. Thank you. [url=https://paperwritingservicestop.com/]writing paper[/url]
    [url=http://novus-galaxy.ru/forum/index.php?/topic/939-priglashai-druzei-poluchi-bonus/page-4#entry30730]m96czvx t19ifl[/url] e5c2ba6

    回复
  20. You reported this very well. [url=https://paperwritingservicestop.com/]paper help[/url]
    [url=http://semerarocostruzioni.it/clear-cut-essay-samples-systems-an-analysis/#comment-132252]n544ypy g22ygl[/url] e1e7_02

    回复
  21. [url=https://malegra.us.org/]malegra fxt[/url]

    回复
  22. My brother recommended I may like this blog. He was once totally right.
    This put up truly made my day. You can not imagine just how so
    much time I had spent for this information! Thanks!

    回复
  23. You actually explained that terrifically! [url=https://essaywriting4you.com/]writing my essay[/url]
    [url=http://hbcontract.com/shop/tables-conference/square-coffee-table-2/#comment-494422]y63ccfr j91qgk[/url] 415f19e

    回复
  24. Regards. Fantastic stuff! [url=https://viagradocker.com/]viagra cost per pill[/url]
    [url=https://m.hyhouse.com/forum/forum.php?mod=viewthread&tid=1390977&extra=]t101eum l60dvq[/url] e8_0370

    回复
  25. You said it perfectly.. [url=https://writingthesistop.com/]writing thesis[/url]
    [url=http://www.gsmpanda.com/f187/all-latest-nokia-flash-files-1865/index7.html#post84338]b31cxn1 y74njn[/url] c1a0ab3

    回复
  26. You revealed this perfectly! [url=https://essaywriting4you.com/]essay rewriter[/url]
    [url=https://m.hyhouse.com/forum/forum.php?mod=viewthread&tid=1390977&extra=]t101eum l60dvq[/url] 03fc1a0

    回复
  27. Superb stuff, Regards! [url=https://viagradocker.com/]how much does viagra cost[/url]
    [url=http://www.lemppari.com/vieraskirja/vieraskirja.php]p82xikv n11kms[/url] ab390e5

    回复
  28. I believe what you said was very reasonable.
    But, think on this, suppose you were to create a killer headline?

    I am not saying your content isn’t solid., but suppose you added a headline that grabbed people’s attention? I mean 【原创】打包内核为RPM包 – LSX-blog is a
    little vanilla. You could look at Yahoo’s front page and note how they write news titles to
    grab people interested. You might add a related video
    or a related pic or two to get readers interested about what you’ve written. In my opinion, it might make
    your posts a little bit more interesting.

    回复
  29. [url=http://hydroxychloroquinecv.com/]hydroxychloroquine buy[/url]

    回复
  30. Ridiculous story there. What happened after?
    Thanks!

    回复
  31. Thanks, An abundance of stuff!
    [url=https://paperwritingservicestop.com/]write paper[/url]
    [url=https://hentaitoday.com/video/ran-sem-hakudaku-delmo-tsuma-ep-1-eng/#comment-2596737]f87dokx d78pfu[/url] ab390e5

    回复
  32. [url=https://wellbutrin.us.org/]buy wellbutrin[/url] [url=https://hydroxychloroquine.us.com/]plaquenil 2016[/url] [url=https://singulair.us.com/]buy singulair[/url] [url=https://azithromycin.us.org/]azithromycin buy online[/url] [url=https://chloroquinaralen.com/]chloroquine cancer[/url] [url=https://ivermectin.us.org/]buy ivermectin[/url] [url=https://priligy.us.com/]priligy price[/url] [url=https://motrin.us.com/]motrin generic[/url] [url=https://metformin.us.org/]metformin 500[/url] [url=https://chloroquine.us.org/]chloroquine for sale[/url]

    回复
  33. [url=https://malegra.us.org/]malegra for sale[/url]

    回复
  34. Its like you read my mind! You seem to grasp so much
    approximately this, such as you wrote the e book in it
    or something. I feel that you can do with a few p.c. to power the
    message home a little bit, however instead of that,
    this is great blog. A fantastic read. I’ll certainly be
    back.

    回复
  35. [url=https://azithromycin.us.org/]buy azithromycin online[/url] [url=https://motrin.us.com/]motrin 800 prescription[/url] [url=https://ivermectin.us.org/]ivermectin 5 mg price[/url]

    回复
  36. Its such as you learn my thoughts! You seem to grasp so much about this,
    such as you wrote the e book in it or something. I think that you can do with
    some p.c. to pressure the message house a bit, but instead of that, this is fantastic
    blog. An excellent read. I will certainly be back.

    回复
  37. Regards, Numerous write ups.
    [url=https://viagrapython.com/]viagra without a doctor prescription[/url]
    [url=http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4053176-h84wbp3-a65xnd/]h84wbp3 a65xnd[/url] a6415f1

    回复
  38. You’ve made your point. [url=https://buymodafinilntx.com/]Provigil With Buspar[/url]
    [url=http://www.5050clinic.com/bbs/view.php?id=Library&page=10&page_num=10&select_arrange=headnum&desc=&sn=off&ss=on&sc=on&keyword=&no=156&category=]d56romy x37kgr[/url] 5_02530

    回复
  39. [url=https://nexium.us.org/]cheapest nexium tablets[/url] [url=https://flomax.us.com/]where can you buy flomax[/url] [url=https://ivermectin.us.org/]ivermectin virus[/url] [url=https://hydroxychloroquine.us.com/]plaquenil price us[/url] [url=https://bupropion365.com/]generic 300 mg bupropion price[/url]

    回复
  40. Many thanks! I appreciate it. [url=https://paydayloansttf.com/]quick loan[/url]
    [url=http://hollymariecombs.info/forum/viewtopic.php?f=19&t=1880154]f50spyi s28ytb[/url] a6415f1

    回复
  41. [url=http://motrin.us.com/]motrin[/url] [url=http://cephalexin365.com/]canadian pharmacy cephalexin[/url]

    回复
  42. Fine knowledge. Many thanks! [url=https://viagrapython.com/]viagra dick[/url]
    [url=http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4051169-b51rfvx-x89mbi/]b51rfvx x89mbi[/url] c2ba641

    回复
  43. Effectively spoken truly! ! [url=https://canadianpharmacyntv.com/]best canadian prescription prices[/url]
    [url=http://oksana-mukha.com.ua/valide/#comment428547]y67pvrc j45lkg[/url] 9e1e8_9

    回复
  44. You actually reported this very well. [url=https://canadianpharmaceuticalsonlinerx.com/]aarp recommended canadian pharmacies[/url]
    [url=http://www.sickautos.com/?q=node/29&page=9#comment-7967]p14uxy7 i11blr[/url] 6_20829

    回复
  45. Link exchange is nothing else except it is just placing the other
    person’s blog link on your page at proper place and other
    person will also do similar in favor of you.

    回复
  46. [url=https://trazodonesale.com/]trazodone 20 mg[/url] [url=https://metformin.us.org/]prescription metformin from canada[/url] [url=https://chloroquine.us.org/]chloroquine[/url] [url=https://zovirax.us.com/]buy zovirax[/url] [url=https://wellbutrin.us.org/]wellbutrin generic[/url]

    回复
  47. Thanks. Lots of stuff!
    [url=https://paydayloansbbv.com/]discover personal loans[/url]
    [url=https://www.ostrov-kenguru.ru/board/viewtopic.php?f=102&t=1900190]a658agu g12vum[/url] 7c03fc1

    回复
  48. [url=http://nexium.us.org/]otc nexium[/url] [url=http://motrin.us.com/]motrin[/url] [url=http://hydroxychloroquine.us.com/]quineprox 60mg[/url]

    回复
  49. [url=https://proscar.us.com/]buy proscar[/url] [url=https://duloxetine.us.com/]can i buy cymbalta in mexico[/url]

    回复
  50. [url=http://lipitor.us.org/]lipitor 20 mg tablet[/url]

    回复

发表评论

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