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包 有 15,020 条回应

  1. rfb [url=https://realmoney.us.org/#]free vegas slots[/url]
    twd [url=https://realmoney.us.org/#]heart of vegas free slots[/url]

    回复
  2. rks [url=https://freecasinoslots.us.org/#]casino games free slots[/url] cxr [url=https://freecasinoslots.us.org/#]free casino games with bonus[/url]
    nzy [url=https://freecasinoslots.us.org/#]grand falls casino[/url]

    回复
  3. [url=http://amoxicillin2019.com]how long does amoxicillin 875 mg tab wes stay in system after stopping [/url]
    [url=http://onlineviagra.us.com]online viagra[/url]
    [url=http://tadalafil02.us.com]tadalafil 20 mg tablets [/url]
    [url=http://genericsynthroid.us.org]generic levothyroxine [/url]
    [url=http://antabuse-abc.com]can i buy antabuse online [/url]
    [url=http://antabuse02.us.com]www.antabuse02.us.com[/url]
    [url=http://suhagra.us.com]buy suhagra[/url]
    [url=http://ventolin.us.com]http://ventolin.us.com[/url]

    回复
  4. ezf [url=https://bovadacasino.us.org/#]buffalo slots[/url]
    wto [url=https://bovadacasino.us.org/#]igt free slots[/url]

    回复
  5. eph [url=https://freecasinoslots.us.org/#]royal river casino[/url]

    回复
  6. bfz [url=https://bovadacasino.us.org/#]hot shot casino slots[/url]

    回复
  7. jbs [url=https://onlinecasinobay.us.org/#]free buffalo slots[/url]

    回复
  8. zxm [url=https://casinobingo.us.org/#]free slots machines[/url]

    回复
  9. qeb [url=https://realmoney.us.org/#]casino bonus[/url]

    回复
  10. [url=https://cialis5.com/]cialis generic[/url] [url=https://antabuse250.com/]antabuse medication[/url] [url=https://antabusedisulfiram.com/]antabuse disulfiram[/url] [url=https://metformin850.com/]metformin buy[/url] [url=https://prednisolone20.com/]prednisolone acetate[/url] [url=https://clomidforwomen.com/]clomid[/url] [url=https://atarax50.com/]atarax tablets[/url] [url=https://tadacip2019.com/]tadacip 20 mg[/url] [url=https://cafergotmedication.com/]cafergot online[/url] [url=https://doxycycline02.com/]doxycycline[/url]

    回复
  11. bzz [url=https://doubledowncasino.us.org/#]vegas casino online[/url]
    ooy [url=https://doubledowncasino.us.org/#]best casino slots online[/url]

    回复
  12. tqd [url=https://onlinecasinobay.us.org/#]free games online slots[/url] frc [url=https://onlinecasinobay.us.org/#]free slots games[/url]
    wsm [url=https://onlinecasinobay.us.org/#]free slots hollywood[/url]

    回复
  13. [url=https://antabusedisulfiram.com/]buy disulfiram online[/url]

    回复
  14. [url=https://valtrexcost.com/]generic valtrex cost[/url] [url=https://buspar10.com/]buspar[/url] [url=https://prednisolone10.com/]buy predislone tablets[/url] [url=https://zoloft50.com/]zoloft 50 mg[/url] [url=https://kamagra10.com/]kamagra[/url] [url=https://genericcolchicine.com/]colchicine[/url] [url=https://cialisq.com/]cialis[/url] [url=https://atenolol50mg.com/]tenormin 50[/url] [url=https://antabuse250.com/]antabuse 500mg[/url] [url=https://prednisolone1.com/]prednisolone buy online[/url] [url=https://azithromycinwithoutprescription.com/]azithromycin buy online[/url] [url=https://advair250.com/]advair[/url] [url=https://doxycycline02.com/]buy doxycycline 100mg[/url] [url=https://ventolin100.com/]ventolin[/url] [url=https://genericsynthroid.com/]buy synthroid[/url] [url=https://metformin850.com/]buy cheap metformin[/url] [url=https://seroquelwithoutprescription.com/]buy seroquel[/url] [url=https://buyindocinonline.com/]indocin[/url] [url=https://zithromaxazithromycin.com/]azithromycin zithromax[/url] [url=https://ventolinhfainhaler.com/]ventolin order[/url]

    回复
  15. vvj [url=https://casinoavenue.us.org/#]cashman casino slots[/url]

    回复
  16. pkz [url=https://bovadacasino.us.org/#]charlestown races and slots[/url]

    回复
  17. tcv [url=https://onlinecasinobay.us.org/#]slots for real money free no deposit[/url] piy [url=https://onlinecasinobay.us.org/#]real casino[/url]

    回复
  18. bng [url=https://hypercasino.us.org/#]play slots for real money[/url]

    回复
  19. uvl [url=https://doubledowncasino.us.org/#]free slots vegas world[/url]
    oxb [url=https://doubledowncasino.us.org/#]free casino slots with bonus[/url]

    回复
  20. yvy [url=https://doubledowncasino.us.org/#]play blackjack for free[/url]

    回复
  21. ant [url=https://hypercasino.us.org/#]gsn casino[/url]
    byk [url=https://hypercasino.us.org/#]vegas world free games online slots[/url]

    回复
  22. [url=http://buycialisonline.us.com]can i break cialis in half [/url]
    [url=http://buycialisonline.us.com]ordering cialis from canada reviews [/url]
    [url=http://buycialisonline.us.com]buycialisonline.us.com[/url]
    [url=http://buyallopurinol.us.org]generic for allopurinol [/url]
    [url=http://retinanorxprice.com]rx strength retin a [/url]
    [url=http://doxycycline100mg.us.com]doxycycline100mg.us.com[/url]
    [url=http://stromectol.us.com]stromectol[/url]
    [url=http://buysildenafil.us.org]can you take nebulized albuterol every 4 hours as needed [/url]

    回复
  23. fvo [url=https://casinobingo.us.org/#]new no deposit casino usa[/url]
    nqe [url=https://casinobingo.us.org/#]pop slots[/url]

    回复
  24. nkj [url=https://hypercasino.us.org/#]heart of vegas slots[/url]

    回复
  25. [url=https://tadalafil20tab.com/]buy tadalafil 20mg[/url] [url=https://prednisone1.com/]prednisone[/url] [url=https://azithromycinwithoutprescription.com/]azithromycin z-pak[/url] [url=https://celebrex400.com/]celebrex 200 mg[/url] [url=https://atenolol50mg.com/]tenormin 50 mg[/url] [url=https://prednisolone1.com/]where to buy prednisolone[/url] [url=https://antabusedisulfiram.com/]buy antabuse[/url] [url=https://acyclovir400.com/]acivir[/url] [url=https://advair250.com/]advair diskus 250/50[/url] [url=https://lisinopril5.com/]lisinopril[/url] [url=https://motiliumotc.com/]motilium otc[/url] [url=https://doxycycline2.com/]100mg doxycycline[/url] [url=https://prednisone10.com/]prednisone 20 mg tablets[/url] [url=https://prednisolone10.com/]buy predislone tablets[/url] [url=https://genericcolchicine.com/]colchicine buy[/url] [url=https://kamagra10.com/]kamagra oral jelly[/url] [url=https://nolvadex10.com/]nolvadex 10[/url] [url=https://sildenafilx.com/]sildenafil 100mg price[/url] [url=https://valtrexcost.com/]valtrex pills[/url] [url=https://atarax50.com/]atarax[/url]

    回复
  26. qbf [url=https://casinoavenue.us.org/#]doubledown casino free slots[/url] urp [url=https://casinoavenue.us.org/#]free games online no download no registration[/url]
    ucc [url=https://casinoavenue.us.org/#]free slots no download no registration[/url]

    回复
  27. wlb [url=https://freecasinoslots.us.org/#]slots for real money[/url]

    回复
  28. obk [url=https://freecasino888.us.org/#]vegas casino slots[/url]

    回复
  29. wgy [url=https://doubledowncasino.us.org/#]vegas slots online[/url]

    回复
  30. [url=http://prednisolone10.com/]prednisolone 10 mg[/url] [url=http://antabusedisulfiram.com/]buying antabuse online[/url] [url=http://prednisolone40.com/]prednisolone buy[/url] [url=http://genericcolchicine.com/]colchicine[/url] [url=http://atarax25.com/]atarax 25 mg[/url] [url=http://cafergotmedication.com/]buy cafergot[/url] [url=http://seroquelwithoutprescription.com/]seroquel 300mg[/url] [url=http://buyindocinonline.com/]buy indocin online[/url] [url=http://prednisone5.com/]prednisone 5mg[/url] [url=http://kamagra10.com/]buy kamagra[/url]

    回复
  31. rqo [url=https://casinobingo.us.org/#]online gambling for real money[/url]
    oix [url=https://casinobingo.us.org/#]hollywood casino online[/url]

    回复
  32. xdk [url=https://freecasino888.us.org/#]free slots machines[/url] ety [url=https://freecasino888.us.org/#]pop slots casino[/url]
    cnm [url=https://freecasino888.us.org/#]casino online slots[/url]

    回复
  33. [url=http://amoxicillin2019.com]http://amoxicillin2019.com[/url]
    [url=http://buycialisonline.us.com]cialis price dominican republic [/url]
    [url=http://vardenafil.us.org]vardenafil.us.org[/url]
    [url=http://azithromycin250mg.us.com]does zithromax lower blood pressur [/url]
    [url=http://zithromax.club]zithromax 500 without prescription [/url]
    [url=http://antabuse.us.com]www.antabuse.us.com[/url]
    [url=http://elocon.network]elocon.network[/url]
    [url=http://buysildenafil.us.org]www.buysildenafil.us.org[/url]

    回复
  34. [url=https://tetracyclinerx.com/]tetracycline cream[/url] [url=https://lipitor20.com/]lipitor price[/url] [url=https://prednisone5.com/]prednisone 5 mg[/url] [url=https://motilium10mg.com/]motilium tablets[/url] [url=https://cialis5.com/]cialis[/url]

    回复
  35. [url=https://tadacip2019.com/]tadacip 20[/url] [url=https://atarax25.com/]atarax 25[/url] [url=https://nolvadex10.com/]nolvadex 10[/url] [url=https://advair250.com/]advair generic[/url] [url=https://ventolinhfainhaler.com/]ventolin hfa inhaler[/url] [url=https://azithromycinwithoutprescription.com/]azithromycin antibiotic[/url] [url=https://buspar10.com/]buspar[/url] [url=https://kamagra10.com/]kamagra[/url] [url=https://prednisone10.com/]prednisone 10mg pack[/url] [url=https://acyclovir800.com/]acyclovir[/url]

    回复
  36. wfu [url=https://bovadacasino.us.org/#]grand falls casino[/url]
    fzd [url=https://bovadacasino.us.org/#]online casino reviews[/url]

    回复
  37. xhu [url=https://hypercasino.us.org/#]heart of vegas slots[/url]
    dqp [url=https://hypercasino.us.org/#]google free casino slot games[/url]

    回复
  38. [url=https://cialisq.com/]cealis from canada[/url]

    回复
  39. swb [url=https://freecasinoslots.us.org/#]200 free slot games[/url]
    miy [url=https://freecasinoslots.us.org/#]play slots online[/url]

    回复
  40. iiu [url=https://casinoavenue.us.org/#]free 777 slots no download[/url]

    回复
  41. gax [url=https://casinoavenue.us.org/#]pompeii slots[/url] itz [url=https://casinoavenue.us.org/#]indian casinos near me[/url]

    回复
  42. [url=http://lipitor20.com/]lipitor[/url] [url=http://atarax50.com/]buy atarax[/url] [url=http://doxycycline02.com/]doxycycline prices[/url] [url=http://prednisolone20.com/]prednisolone 20mg[/url] [url=http://ventolin100.com/]ventolin 90 mcg[/url]

    回复
  43. xco [url=https://freecasino888.us.org/#]penny slots free online[/url]

    回复
  44. rvp [url=https://doubledowncasino.us.org/#]hollywood casino free slots online[/url]
    skc [url=https://doubledowncasino.us.org/#]online gambling sites[/url]

    回复
  45. wiv [url=https://bovadacasino.us.org/#]caesars slots free casino[/url]
    iid [url=https://bovadacasino.us.org/#]free slots online no download no registration[/url]

    回复
  46. vpj [url=https://doubledowncasino.us.org/#]caesar casino free slots games[/url]
    sbs [url=https://doubledowncasino.us.org/#]hollywood casino online[/url]

    回复
  47. res [url=https://doubledowncasino.us.org/#]pop slots casino[/url]

    回复
  48. wyk [url=https://onlinecasinobay.us.org/#]big fish casino slots[/url]

    回复
  49. ala [url=https://casinobingo.us.org/#]mohegan sun free online slots[/url]

    回复
  50. ths [url=https://bovadacasino.us.org/#]online casino games free[/url]

    回复

发表评论

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