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,767 条回应

  1. many thanks considerably this fabulous website is elegant and casual

    回复
  2. Valuable data. With thanks! [url=https://buymodafinilntx.com/]Where To Buy Generic Provigil[/url]
    [url=https://dreno.com.pl/de/featured-image-homepage/#comment-72420]t93yksl u118rn[/url] 8_963da

    回复
  3. What’s up, just wanted to say, I loved this blog post.

    It was inspiring. Keep on posting!

    回复
  4. [url=https://wellbutrin.us.org/]wellbutrin drug[/url] [url=https://zovirax.us.com/]zovirax for sale[/url] [url=https://nexium.us.org/]buy nexium[/url]

    回复
  5. Excellent posts. Regards. [url=https://dissertationwritingtop.com/]dissertation research writing[/url]
    [url=http://oksana-mukha.com.ua/gosie/#comment434024]f606yqt x748fg[/url] 0ab390e

    回复
  6. Good post. I learn something new and challenging on sites I stumbleupon every day.
    It will always be useful to read articles from other writers and practice something from other sites.

    回复
  7. You said it nicely.! [url=https://buymodafinilntx.com/]Provigil Generic Online[/url]
    [url=http://microeconomia.org/2008/12/31/un-problema-sobre-mercados-competitivos/comment-page-472/#comment-1733797]w824tim b28rih[/url] f19e1e6

    回复
  8. Thanks a lot! Numerous advice!
    [url=https://payday8online.com/]small business loans[/url]
    [url=https://m.hyhouse.com/forum/forum.php?mod=viewthread&tid=1393799&extra=]s974nda l52cfp[/url] 127c03f

    回复
  9. [url=https://singulair.us.com/]generic singulair[/url] [url=https://chloroquinaralen.com/]chloroquine for sale[/url] [url=https://malegra.us.org/]generic malegra[/url] [url=https://wellbutrin.us.org/]wellbutrin medication[/url]

    回复
  10. Good tips. With thanks! [url=https://ciaonlinebuyntx.com/]Buy Cialis Online No Prescritption[/url]
    [url=http://opelfreunde-outsiders.de/include.php?path=forumsthread&threadid=427096&entries=0#post541718]g76aguf c19cbo[/url] 15f19e1

    回复
  11. Great article, just what I needed.

    回复
  12. Kudos, I enjoy it! [url=https://writingthesistop.com/]reading thesis[/url]
    [url=https://www.tankerderbanker.dk/blog/en-tro-folgesvend-og-uven-i-noden-2019-03-20?page=24948#comment-1353957]m277mhm c32zwu[/url] 6415f19

    回复
  13. Yes! Finally something about buy likes.

    回复
  14. You expressed this effectively. [url=https://top7writingservices.com/]mba thesis writers[/url]
    [url=http://www.rstc.co.id/berita-111-pro–kontra-pembentukan-dewan-pengawas-rumah-sakit.html]q321da9 p676py[/url] 1a0ab39

    回复
  15. You actually stated this very well! [url=https://dissertationwritingtop.com/]dissertation examples[/url]
    [url=http://hollymariecombs.info/forum/viewtopic.php?f=19&t=1890370]t87snif u938gy[/url] e3_525d

    回复
  16. [url=https://motrin.us.com/]how much is motrin 800[/url] [url=https://chloroquine.us.org/]chloroquine pills[/url] [url=https://metformin.us.org/]metformin[/url]

    回复
  17. [url=https://motrin.us.com/]motrin online[/url]

    回复
  18. [url=http://cialisprice.us.org/]generic cialis lowest price[/url] [url=http://nexium.us.org/]generic nexium otc[/url] [url=http://azithromycin.us.org/]buy azithromycin[/url] [url=http://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url] [url=http://proscar.us.com/]order generic proscar[/url] [url=http://duloxetine.us.com/]buy duloxetine[/url] [url=http://motrin.us.com/]cost comparison motrin 800 mg[/url] [url=http://tamoxifenpct.com/]tamoxifen 50 mg[/url] [url=http://bupropion365.com/]bupropion 150 mg tablet[/url] [url=http://trazodonesale.com/]trazodone for sale[/url]

    回复
  19. [url=http://proscar.us.com/]where can i buy proscar[/url] [url=http://duloxetine.us.com/]generic cymbalta no prescription[/url] [url=http://attarax.com/]atarax generic[/url] [url=http://amitriptyline24.com/]amitriptyline 25 mg tablet[/url] [url=http://azithromycin.us.org/]azithromycin pills online[/url] [url=http://chloroquine.us.org/]weimerquin[/url] [url=http://tamoxifenpct.com/]tamoxifen drug[/url] [url=http://wellbutrin.us.org/]buy wellbutrin[/url] [url=http://priligy.us.com/]where can i buy priligy[/url] [url=http://prazosin.us.com/]buy prazosin[/url] [url=http://prednisolone.us.org/]buy prednisolone[/url] [url=http://domperidone.us.com/]domperidone motilium[/url] [url=http://ivermectin.us.org/]ivermectin 18mg[/url] [url=http://zovirax.us.com/]zovirax 400[/url] [url=http://cialisprice.us.org/]price for cialis[/url] [url=http://chloroquinaralen.com/]chloroquine tablets buy online[/url] [url=http://flomax.us.com/]flomax 5 mg[/url] [url=http://lipitor.us.org/]lipitor canada[/url] [url=http://singulair.us.com/]singulair 10 mg buy online[/url] [url=http://metformin.us.org/]metformin 500 mg[/url]

    回复
  20. You actually expressed this exceptionally well! [url=https://canadianonlinepharmacytrust.com/]online pharmacies canada[/url]
    [url=http://www.doripesco.ro/forum/viewtopic.php?f=15&t=115&p=134845#p134845]w27ardw z75afz[/url] ba6415f

    回复
  21. Thanks , I’ve recently been looking for info about this subject for a while
    and yours is the greatest I have came upon till now. However, what in regards
    to the conclusion? Are you positive in regards to the supply?

    回复
  22. Terrific data, Many thanks! [url=https://writingthesistop.com/]thesis editing[/url]
    [url=http://oksana-mukha.com.ua/gosie/#comment436217]a35kqxq e25dvz[/url] a0ab390

    回复
  23. [url=http://bupropion365.com/]bupropion 150 mg tablet[/url] [url=http://tamoxifenpct.com/]tamoxifen pills[/url] [url=http://hydroxychloroquinecv.com/]buy hydroxychloroquine sulfate[/url] [url=http://ivermectin.us.org/]buy ivermectin pills[/url]

    回复
  24. [url=https://flomax.us.com/]buy flomax[/url] [url=https://domperidone.us.com/]domperidone[/url] [url=https://retina.us.org/]retin a over the counter mexico[/url] [url=https://hydroxychloroquine.us.com/]hydroxychloroquine buy[/url] [url=https://duloxetine.us.com/]cymbalta online[/url]

    回复
  25. This is nicely said. ! [url=https://payday8online.com/]get cash fast[/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-169294]g99uir7 b677ex[/url] c1a0ab3

    回复
  26. Seriously a lot of terrific tips. [url=https://canadianpharmacyntv.com/]highest rated canadian pharmacies[/url]
    [url=https://www.blogger.com/comment.g?blogID=976777854705238486&postID=7207764613248197408&page=1&token=1593588214682&bpli=1]u13hhty n10lkm[/url] a0ab390

    回复
  27. I’m not sure why but this web site is loading extremely slow for me.

    Is anyone else having this problem or is it a problem on my end?
    I’ll check back later and see if the problem still exists.

    回复
  28. [url=https://bupropion365.com/]bupropion xl 150mg[/url] [url=https://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url] [url=https://trazodonesale.com/]trazodone generic[/url] [url=https://tamoxifenpct.com/]tamoxifen 5648[/url]

    回复
  29. [url=https://chloroquinaralen.com/]chloroquine aralen[/url] [url=https://nexium.us.org/]otc nexium[/url] [url=https://domperidone.us.com/]buy motilium australia[/url]

    回复
  30. You said it adequately.. [url=https://viaonlinebuyntx.com/]viagra pills 100 mg walmart[/url]
    [url=http://littlebikers.messageboard.nl/forum/viewtopic.php?f=2&t=1025767]h699gam e93glp[/url] 9e1e8_f

    回复
  31. [url=http://malegra.us.org/]malegra dxt[/url]

    回复
  32. [url=http://trazodonesale.com/]trazodone 100mg australia[/url] [url=http://wellbutrin.us.org/]wellbutrin 151 pill[/url] [url=http://azithromycin.us.org/]azithromycin 39 tablets[/url] [url=http://amitriptyline24.com/]amitriptyline pills[/url] [url=http://tamoxifenpct.com/]tamoxifen price[/url] [url=http://flomax.us.com/]flomax generic[/url] [url=http://zovirax.us.com/]zovirax cost[/url] [url=http://lipitor.us.org/]buy lipitor online australia[/url]

    回复
  33. Many thanks. Loads of facts!
    [url=https://paydayloansttf.com/]loans online for bad credit[/url]
    [url=http://www.rstc.co.id/berita-534-.uasi-ppk-blu-di-rstc.html]z64yiva m60fqf[/url] a6415f1

    回复
  34. Whoa tons of fantastic info! [url=https://paperwritingservicestop.com/]paper writing services[/url]
    [url=http://littlebikers.messageboard.nl/forum/viewtopic.php?f=2&t=1038118]n80spg4 j412pn[/url] 4_308aa

    回复
  35. Thanks for sharing your info. I truly appreciate your
    efforts and I will be waiting for your further post thanks
    once again.

    回复
  36. [url=http://zovirax.us.com/]zovirax tablets[/url] [url=http://flomax.us.com/]flomax otc in usa[/url] [url=http://retina.us.org/]where to buy retin a cream in singapore[/url]

    回复
  37. [url=https://duloxetine.us.com/]buy cymbalta online from canada[/url] [url=https://attarax.com/]buy atarax[/url] [url=https://hydroxychloroquine.us.com/]buy hydroxychloroquine 200 mg[/url] [url=https://trazodonesale.com/]trazodone 50 mg tablet[/url] [url=https://cialisprice.us.org/]cialis 5 mg price in usa[/url] [url=https://bupropion365.com/]bupropion 150 mg coupon[/url] [url=https://prazosin.us.com/]prazosin cost[/url]

    回复
  38. Great knowledge. Thanks. [url=https://viagradocker.com/]viagra for sale uk[/url]
    [url=http://oksana-mukha.com.ua/15/#comment435125]m13poyj b724nb[/url] fc1a0ab

    回复
  39. I do accept as true with all the ideas you’ve presented on your post.
    They are really convincing and will definitely work.

    Still, the posts are too quick for novices.
    Could you please extend them a bit from
    next time? Thank you for the post.

    回复
  40. You said it perfectly.. [url=https://canadianpharmaceuticalsonlinerx.com/]canada pharmacy online[/url]
    [url=https://www.tankerderbanker.dk/blog/en-tro-folgesvend-og-uven-i-noden-2019-03-20?page=24867#comment-1349212]c16mpbx y41sfj[/url] 27c03fc

    回复
  41. [url=https://tamoxifenpct.com/]buy tamoxifen[/url] [url=https://flomax.us.com/]buy flomax[/url] [url=https://prazosin.us.com/]prazosin drug[/url]

    回复
  42. [url=http://prednisolone.us.org/]prednisolone online[/url] [url=http://attarax.com/]atarax 50 mg tablet[/url]

    回复
  43. Really lots of fantastic advice. [url=https://ciaonlinebuyntx.com/]cialis tablets[/url]
    [url=https://www.tankerderbanker.dk/blog/en-tro-folgesvend-og-uven-i-noden-2019-03-20?page=24935#comment-1353183]r89hbbg d39mzd[/url] 15f19e1

    回复
  44. Beneficial tips. Thank you! [url=https://canadianpharmacyntv.com/]canadian pharmacy online canada[/url]
    [url=http://www.lakecountyoffroad.org/LCOR_FORUM/viewtopic.php?f=32&t=542372]j51qzpm i34pod[/url] 19e1e3_

    回复
  45. Whoa a lot of superb advice. [url=https://paydayloansttf.com/]no credit check payday loans instant approval[/url]
    [url=https://www.ninoulabelle.com/product/eyelash-glue/#comment-30137]k95gjgr h96ekt[/url] 7c03fc1

    回复
  46. [url=https://hydroxychlorothiazide.com/]buy hydrochlorothiazide[/url] [url=https://hydroxychloroquine.us.com/]hydroxychloroquine sulfate[/url] [url=https://lipitor.us.org/]lipitor 20mg[/url] [url=https://amitriptyline24.com/]amitriptyline brand name 10mg[/url] [url=https://tamoxifenpct.com/]tamoxifen generic[/url] [url=https://ivermectin.us.org/]ivermectin 4000[/url] [url=https://metformin.us.org/]metformin[/url] [url=https://prazosin.us.com/]buy prazosin[/url] [url=https://zovirax.us.com/]where can i buy zovirax cream[/url] [url=https://azithromycin.us.org/]buy azithromycin[/url]

    回复
  47. What’s up to every one, the contents present at this web
    page are really remarkable for people experience, well, keep
    up the nice work fellows.

    回复
  48. [url=https://bupropion365.com/]bupropion 150 mg tablet[/url]

    回复
  49. Reliable facts. Regards! [url=https://essaywriting4you.com/]write a narrative essay[/url]
    [url=https://m.hyhouse.com/forum/forum.php?mod=viewthread&tid=1386823&pid=19298955&page=15&extra=#pid19298955]w83srpg j64uqe[/url] 415f19e

    回复
  50. Effectively expressed indeed! . [url=https://ciaonlinebuyntx.com/]Why Is Cialis Not Working Anymore[/url]
    [url=http://hbcontract.com/shop/contract-furniture/chest-of-drawers/#comment-495814]t582rd6 g13fcd[/url] c1a0ab3

    回复

发表评论

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