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=https://proscar.us.com/]proscar medicine[/url] [url=https://motrin.us.com/]motrin[/url] [url=https://lipitor.us.org/]lipitor medication[/url] [url=https://cephalexin365.com/]buy cephalexin[/url] [url=https://chloroquine.us.org/]buy chloroquine online[/url]

    回复
  2. You actually stated that fantastically. [url=https://payday8online.com/]small business loans[/url]
    [url=http://hollymariecombs.info/forum/viewtopic.php?f=19&t=1879957]l870xwd o96unp[/url] 9e1e6_1

    回复
  3. Hi my family member! I wish to say that this article is amazing, great written and come with almost all significant
    infos. I would like to look extra posts like this .

    回复
  4. You actually reported this well! [url=https://canadianpharmacyntv.com/]canada pharmacy[/url]
    [url=https://ofofohub.com/pawon-olamide-video/#comment-73543]g287eux z19ycp[/url] ab390e5

    回复
  5. Superb data. Regards. [url=https://top7writingservices.com/]websites for essays in english[/url]
    [url=http://www.mciolczyk.jawnet.pl/metin2/DejaVu/viewtopic.php?f=10&t=2708842]u51ucjq e10jkh[/url] 415f19e

    回复
  6. [url=https://singulair.us.com/]singulair generic[/url] [url=https://prednisolone.us.org/]buy prednisolone[/url] [url=https://metformin.us.org/]metformin[/url] [url=https://ivermectin.us.org/]ivermectin[/url] [url=https://prazosin.us.com/]prazosin[/url] [url=https://nexium.us.org/]buy nexium[/url] [url=https://chloroquine.us.org/]chloroquine cost us[/url] [url=https://priligy.us.com/]buy priligy[/url]

    回复
  7. You actually explained it superbly. [url=https://viagradocker.com/]buy viagra[/url]
    [url=http://www.rippedmass.org/forums/anabolic-discussion-forum/77660-sex-pills-viagra.html#post307561]s41vwnx d70mmn[/url] 6415f19

    回复
  8. [url=http://azithromycin.us.org/]where to buy azithromycin[/url]

    回复
  9. Kudos, I value it. [url=https://essaywriting4you.com/]essays in college[/url]
    [url=http://takachiho.wafflecell.com/bbs/viewtopic.php?f=7&t=792564&p=1162386#p1162386]o91ysuf a69kam[/url] 390e5c2

    回复
  10. You actually expressed that very well! [url=https://paydayloansbbv.com/]bad credit car loans[/url]
    [url=http://www.agramtrade.hr/iklip-stalak-za-ipad-/8025813442030/ik-multimedia/]l24yvld v37smu[/url] 390e5c2

    回复
  11. You actually explained this adequately. [url=https://homeworkcourseworkhelp.com/]managerial accounting homework help[/url]
    [url=http://extorvfx.extor.org/3d-plane-model-bestairbd-by-destiny-group/comment-page-62/#comment-215860]p21gyoh p27wpb[/url] ba6415f

    回复
  12. [url=http://motrin.us.com/]motrin tablets[/url] [url=http://hydroxychlorothiazide.com/]buy hydrochlorothiazide online[/url] [url=http://malegra.us.org/]buy malegra[/url] [url=http://wellbutrin.us.org/]how to buy wellbutrin over the counter[/url]

    回复
  13. Effectively expressed without a doubt! . [url=https://paperwritingservicestop.com/]farm writing paper[/url]
    [url=http://163.32.94.234/artcms/forum/viewtopic.php?pid=343715#p343715]f10nxpa l200vh[/url] 03fc1a0

    回复
  14. [url=https://nexium.us.org/]nexium price comparison uk[/url] [url=https://lipitor.us.org/]cost of lipitor 90 tablet[/url] [url=https://hydroxychlorothiazide.com/]50mg hydrochlorothiazide[/url] [url=https://chloroquine.us.org/]generic chloroquine[/url] [url=https://prednisolone.us.org/]prednisolone buy online[/url]

    回复
  15. Nicely put. Thank you! [url=https://payday8online.com/]payday loans direct lenders bad credit[/url]
    [url=http://www.radostzhit.ru/history.php?ID=286080&MID=1612323&result=reply#message1612323]v42pnmg a52gcv[/url] b390e5c

    回复
  16. [url=https://wellbutrin.us.org/]buy wellbutrin[/url] [url=https://bupropion365.com/]bupropion xl 150mg[/url] [url=https://azithromycin.us.org/]azithromycin buy online[/url] [url=https://flomax.us.com/]flomax 90 price[/url] [url=https://priligy.us.com/]buy priligy[/url] [url=https://cialisprice.us.org/]cialis canadian online[/url]

    回复
  17. [url=http://cephalexin365.com/]cephalexin keflex[/url] [url=http://tamoxifenpct.com/]tamoxifen drug[/url] [url=http://malegra.us.org/]malegra 100 price[/url] [url=http://trazodonesale.com/]generic trazodone[/url] [url=http://retina.us.org/]retin-a 0.025[/url] [url=http://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url] [url=http://wellbutrin.us.org/]wellbutrin buy india[/url] [url=http://duloxetine.us.com/]buy cymbalta[/url] [url=http://attarax.com/]buy atarax[/url] [url=http://proscar.us.com/]proscar drug[/url] [url=http://motrin.us.com/]order motrin[/url] [url=http://hydroxychlorothiazide.com/]buy hydrochlorothiazide[/url] [url=http://chloroquinaralen.com/]aralen tablets price[/url] [url=http://cialisprice.us.org/]cialis daily online pharmacy[/url] [url=http://nexium.us.org/]nexium online[/url] [url=http://prazosin.us.com/]prazosin price canada[/url] [url=http://prednisolone.us.org/]prednisolone 5mg tablets price[/url] [url=http://ivermectin.us.org/]how much is ivermectin[/url] [url=http://singulair.us.com/]singulair online[/url] [url=http://metformin.us.org/]buy metformin[/url]

    回复
  18. You actually suggested that terrifically. [url=https://payday8online.com/]personal loans for poor credit[/url]
    [url=https://school11kbr.ru/index.php/forum/dobro-pozhalovat/120067-univer-novaya-obshchaga-film#418267]n768jri v97tyt[/url] 15f19e1

    回复
  19. Cheers. I like it! [url=https://canadianpharmacyntv.com/]canada pharmacies online[/url]
    [url=http://www.vigilance-medicaments.org/forum/viewtopic.php?f=2&t=211188]g19dmhv k73mnz[/url] 19e1e5_

    回复
  20. You suggested this very well. [url=https://top7writingservices.com/]technical writing help[/url]
    [url=http://163.32.94.234/artcms/forum/viewtopic.php?pid=343346#p343346]q94svpt n18bcn[/url] 2ba6415

    回复
  21. I’m really enjoying the design and layout of your website.

    It’s a very easy on the eyes which makes it much more pleasant for me to come here
    and visit more often. Did you hire out a developer to create your theme?

    Great work!

    回复
  22. [url=http://nexium.us.org/]buying nexium online[/url]

    回复
  23. Nicely put. Regards. [url=https://ciaonlinebuyntx.com/]Achat Cialis Au Quebec[/url]
    [url=http://moto-rage.com.ua/site/forum.php?mod=viewthread&tid=70&pid=368360&page=6258&extra=page%3D1#pid368360]y35eqqn v44bnb[/url] 9e1e4_0

    回复
  24. Excellent blog here! Also your site loads up fast!

    What web host are you using? Can I get your affiliate link to your host?

    I wish my site loaded up as fast as yours lol

    回复
  25. [url=https://prednisolone.us.org/]prednisolone buy online[/url] [url=https://cialisprice.us.org/]generic cialis[/url] [url=https://hydroxychloroquine.us.com/]hydroxychloroquine 700[/url] [url=https://zovirax.us.com/]generic zovirax cream 5g[/url] [url=https://duloxetine.us.com/]cymbalta 30 mg[/url] [url=https://chloroquine.us.org/]chloroquine tablet 500mg[/url] [url=https://ivermectin.us.org/]ivermectin cost in usa[/url] [url=https://singulair.us.com/]singulair 10mg[/url] [url=https://bupropion365.com/]bupropion 150 mg cost[/url] [url=https://flomax.us.com/]buy flomax uk[/url]

    回复
  26. You explained this perfectly! [url=https://paydayloansttf.com/]payday loan bad credit[/url]
    [url=http://www.dasuan110.com/bbs/forum.php?mod=viewthread&tid=1544317&extra=]c44pral k67kty[/url] 7c03fc1

    回复
  27. Fine facts. Kudos. [url=https://homeworkcourseworkhelp.com/]sociology coursework[/url]
    [url=http://aforaisha.com/2017/01/30/happy-new-year/#comment-1077452]b47lqmx g115fl[/url] e5c2ba6

    回复
  28. I don’t even know how I ended up here, but I thought this post
    was good. I do not know who you are but definitely you are going to a famous blogger
    if you are not already 😉 Cheers!

    回复
  29. [url=https://retina.us.org/]buy retin a[/url] [url=https://prazosin.us.com/]buy prazosin[/url] [url=https://chloroquine.us.org/]chloroquine cost us[/url] [url=https://zovirax.us.com/]zovirax ointment cost without insurance[/url] [url=https://wellbutrin.us.org/]wellbutrin xl 300 mg[/url] [url=https://flomax.us.com/]canada flomax[/url] [url=https://bupropion365.com/]buy bupropion[/url] [url=https://ivermectin.us.org/]ivermectin 500ml[/url]

    回复
  30. [url=https://metformin.us.org/]can i buy metformin over the counter[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url] [url=https://chloroquinaralen.com/]buy chloroquine[/url] [url=https://flomax.us.com/]buy flomax[/url]

    回复
  31. You explained it adequately. [url=https://dissertationwritingtop.com/]length of dissertation[/url]
    [url=http://www.mciolczyk.jawnet.pl/metin2/DejaVu/viewtopic.php?f=10&t=2709051]j669hjh g37iod[/url] 1a0ab39

    回复
  32. [url=https://domperidone.us.com/]motilium cost australia[/url] [url=https://proscar.us.com/]generic proscar australia[/url] [url=https://retina.us.org/]order retin a gel[/url] [url=https://wellbutrin.us.org/]buy wellbutrin[/url] [url=https://trazodonesale.com/]trazodone for sale[/url]

    回复
  33. Truly a lot of superb advice! [url=https://top7writingservices.com/]writing helps[/url]
    [url=http://www.sickautos.com/?q=node/30&page=87#comment-7888]e53fwgl a472lc[/url] 9e1e6_2

    回复
  34. [url=https://ivermectin.us.org/]cost of ivermectin[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide 150mg[/url] [url=https://metformin.us.org/]buy metformin 500 mg online[/url] [url=https://attarax.com/]buy atarax online usa[/url] [url=https://prednisolone.us.org/]buy prednisolone[/url]

    回复
  35. [url=https://nexium.us.org/]nexium medicine[/url] [url=https://duloxetine.us.com/]cymbalta cream[/url]

    回复
  36. [url=http://tamoxifenpct.com/]generic tamoxifen 20 mg[/url] [url=http://hydroxychlorothiazide.com/]pharmacy price 25 mg hydrochlorothiazide[/url] [url=http://hydroxychloroquine.us.com/]buy hydroxychloroquine online[/url] [url=http://priligy.us.com/]priligy tablets[/url] [url=http://domperidone.us.com/]motilium 10 mg[/url]

    回复
  37. [url=http://chloroquine.us.org/]chloroquinum[/url]

    回复
  38. Hello! Do you know if they make any plugins to assist with Search
    Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good success.
    If you know of any please share. Thank you!

    回复
  39. Thanks for the good writeup. It in fact
    used to be a enjoyment account it. Look advanced to more added agreeable from you!
    However, how can we keep up a correspondence?

    回复
  40. You actually stated it adequately. [url=https://writingthesistop.com/]help writing thesis statement[/url]
    [url=http://moto-rage.com.ua/site/forum.php?mod=viewthread&tid=70&pid=368434&page=6262&extra=page%3D1#pid368434]v17eel5 b548xq[/url] 9e1e5_e

    回复
  41. Thanks! Good information. [url=https://payday8online.com/]personal loans with bad credit[/url]
    [url=http://oksana-mukha.com.ua/valide/#comment427990]u94ejpg y804uy[/url] 5c2ba64

    回复
  42. [url=https://cephalexin365.com/]cephalexin 500 mg with out prescription[/url] [url=https://hydroxychloroquinecv.com/]cost of plaquenil in canada[/url] [url=https://azithromycin.us.org/]buy azithromycin online[/url] [url=https://chloroquine.us.org/]chloroquine[/url]

    回复
  43. [url=https://prazosin.us.com/]prazosin sleep aid[/url] [url=https://singulair.us.com/]singulair otc[/url] [url=https://nexium.us.org/]nexium[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url] [url=https://cephalexin365.com/]cephalexin 250[/url] [url=https://chloroquine.us.org/]chloroquine[/url] [url=https://domperidone.us.com/]motilium tablets[/url] [url=https://trazodonesale.com/]trazodone 100 mg cost[/url] [url=https://malegra.us.org/]malegra dxt[/url] [url=https://duloxetine.us.com/]buy duloxetine[/url]

    回复
  44. You made the point. [url=https://essaywriting4you.com/]college essays[/url]
    [url=http://fettesmerci.de/index1.php?dir=04%20Hochzeitsfeier&pic=JD500068]z212jw6 d29aci[/url] 19e1e5_

    回复
  45. Nicely put, Cheers! [url=https://paperwritingservicestop.com/]help writing paper[/url]
    [url=https://m.hyhouse.com/forum/forum.php?mod=viewthread&tid=1390563&extra=]h69vhuu a98qbw[/url] 6415f19

    回复
  46. [url=https://cialisprice.us.org/]cialis online pharmacy us[/url] [url=https://attarax.com/]atarax 50[/url] [url=https://ivermectin.us.org/]buy ivermectin[/url] [url=https://chloroquinaralen.com/]buy chloroquine[/url] [url=https://chloroquine.us.org/]chloroquine[/url] [url=https://prednisolone.us.org/]prednisolone 15[/url] [url=https://zovirax.us.com/]buy zovirax[/url] [url=https://hydroxychlorothiazide.com/]buy hydrochlorothiazide[/url] [url=https://prazosin.us.com/]prazosin generic cost[/url] [url=https://domperidone.us.com/]domperidone[/url] [url=https://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url] [url=https://malegra.us.org/]buy malegra[/url] [url=https://flomax.us.com/]flomax 4mg price[/url] [url=https://priligy.us.com/]priligy price[/url] [url=https://nexium.us.org/]nexium medication[/url] [url=https://bupropion365.com/]buy bupropion[/url] [url=https://tamoxifenpct.com/]tamoxifen cost[/url] [url=https://cephalexin365.com/]500mg cephalexin 100[/url] [url=https://hydroxychloroquinecv.com/]hydroxychloroquine online[/url] [url=https://wellbutrin.us.org/]generic wellbutrin tablets[/url]

    回复
  47. [url=https://motrin.us.com/]motrin generic[/url] [url=https://trazodonesale.com/]trazodone 50 mg[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine online[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide 12.5 coupon[/url] [url=https://amitriptyline24.com/]elavil medication[/url] [url=https://retina.us.org/]retin a generic sale[/url] [url=https://cephalexin365.com/]keflex drug[/url] [url=https://metformin.us.org/]buy metformin[/url]

    回复
  48. Truly all kinds of terrific information! [url=https://canadianonlinepharmacytrust.com/]canadian pharmacies that are legit[/url]
    [url=http://www.sickautos.com/?q=node/30&page=86#comment-7825]d844dlc t81ajq[/url] a0ab390

    回复
  49. You have made the point! [url=https://paydayloansttf.com/]online loans[/url]
    [url=https://www.tankerderbanker.dk/blog/en-tro-folgesvend-og-uven-i-noden-2019-03-20?page=24658#comment-1337212]r44cfj2 r246qz[/url] 0e5c2ba

    回复
  50. Hi! This is kind of off topic but I need some advice from an established blog.
    Is it difficult to set up your own blog? I’m not
    very techincal but I can figure things out pretty quick.

    I’m thinking about making my own but I’m not sure where to start.
    Do you have any ideas or suggestions? Appreciate it

    回复

发表评论

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