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包 有 21,971 条回应

  1. [url=https://atenolol911.com/]atenolol 50 mg tablet[/url] [url=https://motilium2019.com/]order motilium[/url] [url=https://cialis500.com/]buy cialis 2.5 mg online[/url] [url=https://sildenafil10.com/]sildenafil tablets 150mg[/url] [url=https://tretinoin24.com/]tretinoin prescription uk[/url] [url=https://retina100.com/]retin a online pharmacy[/url]

    回复
  2. [url=https://tretinoin24.com/]0.009 tretinoin[/url] [url=https://motilium2019.com/]motilium[/url] [url=https://retina100.com/]how much is prescription retin a[/url] [url=https://buspar1.com/]buspar 5 mg[/url] [url=https://prednisone100.com/]prednisone 50 mg price[/url]

    回复
  3. [url=http://cialis0z.com]buy cialis[/url]
    [url=http://propecia0l1.com]finasteride (propecia [/url]
    [url=http://cialis0l1.com]buy cialis[/url]
    [url=http://cialis0z.com]how to get a second cialis savings card [/url]
    [url=http://cialis0z.com]www.cialis0z.com[/url]
    [url=http://viagrad9z.com]where to buy cheap viagra online [/url]

    回复
  4. [url=http://cialis0z.com]cialis[/url]
    [url=http://viagrav3u.com]veega generic viagra [/url]
    [url=http://propecia0l1.com]http://propecia0l1.com[/url]
    [url=http://sildenafild9z.com]discounts for sildenafil 50mg [/url]
    [url=http://cialisa1c.com]cheap cialis[/url]
    [url=http://metformin0l1.com]what is metformin hcl 500 mg [/url]

    回复
  5. [url=http://zithromax0l1.com]www.zithromax0l1.com[/url]
    [url=http://cialisa1c.com]cialis samples for providers [/url]

    回复
  6. oni [url=https://onlinecasino1488.us.com/#]free full casino games download[/url] kug [url=https://onlinecasino1488.us.com/#]free slot games download full version[/url]
    reb [url=https://onlinecasino1488.us.com/#]free slots games[/url]

    回复
  7. fnz [url=https://onlinecasino1488.us.com/#]casino slots free[/url]

    回复
  8. [url=https://celebrex2019.com/]celebrex 200 mg canada[/url] [url=https://azithromycin24.com/]buy azithromycin 500mg online usa[/url] [url=https://prednisolone100.com/]buy prednisolone[/url] [url=https://metformin100.com/]metformin 500[/url] [url=https://proscar100.com/]proscar[/url] [url=https://wellbutrin365.com/]wellbutrin 450 mg[/url] [url=https://prednisone3.com/]generic prednisone over the counter[/url] [url=https://zithromax2.com/]zithromax 250 mg[/url] [url=https://sildenafil48.com/]sildenafil generic[/url] [url=https://furosemide24.com/]furosemide 20 mg tablet[/url]

    回复
  9. exz [url=https://onlinecasinorealmoneyww.com/#]jack online casino[/url]

    回复
  10. ehl [url=https://hypercasinosww.com/#]mgm online casino[/url]
    kyt [url=https://hypercasinosww.com/#]sugarhouse online casino[/url]

    回复
  11. [url=http://buspar1.com/]buspar medication[/url]

    回复
  12. [url=https://buspar1.com/]buspar medication[/url] [url=https://viagra250.com/]buy real viagra online cheap[/url] [url=https://motilium2019.com/]motilium[/url] [url=https://sildenafil10.com/]sildenafil 25 mg price[/url] [url=https://cialis500.com/]cialis coupon[/url]

    回复
  13. gmf [url=https://freecasinogamesonlineww.com/#]free casino games no registration no download[/url]

    回复
  14. [url=http://wellbutrin365.com/]wellbutrin 1200 mg[/url]

    回复
  15. ovt [url=https://mycbdoil.us.com/#]benefits of hemp oil for humans[/url]
    koc [url=https://mycbdoil.us.com/#]pure cbd oil[/url]

    回复
  16. [url=https://buspar1.com/]purchase buspar no prescription[/url]

    回复
  17. [url=http://viagrad9z.com]cheapest local pharmacy for viagra [/url]

    回复
  18. smj [url=https://bestonlinecasinosww.com/#]free slots hollywood[/url] htx [url=https://bestonlinecasinosww.com/#]free online games that pay real money[/url]
    nzf [url=https://bestonlinecasinosww.com/#]300 free slots no download[/url]

    回复
  19. [url=http://sildenafild9z.com]how does sildenafil work for ed [/url]

    回复
  20. [url=http://prozac0l1.com]difference between prozac and venlafaxine [/url]

    回复
  21. [url=https://tretinoin24.com/]tretinoin 5 gel[/url] [url=https://retina100.com/]retin a 0.05[/url] [url=https://atenolol911.com/]atenolol 50 25 mg[/url] [url=https://cialis500.com/]cialis 20mg price[/url] [url=https://viagra250.com/]cost of viagra 100mg in australia[/url]

    回复
  22. [url=http://sildenafild9z.com]generic sildenafil[/url]
    [url=http://sildenafild9z.com]sildenafil tablets of 25 mg price [/url]

    回复
  23. [url=http://cialisa1c.com]www.cialisa1c.com[/url]
    [url=http://viagrav3u.com]marley generics viagra reviews [/url]

    回复
  24. avm [url=https://freeonlinecasinoww.com/#]free online casino games[/url]

    回复
  25. elt [url=https://playonlinecasinoww.com/#]online casinos for us players[/url]

    回复
  26. [url=https://viagra250.com/]mexico pharmacy viagra[/url] [url=https://tadalafil8.com/]generic tadalafil online[/url] [url=https://atenolol911.com/]atenolol[/url] [url=https://cialis500.com/]cialis coupon[/url] [url=https://motilium2019.com/]motilium[/url]

    回复
  27. [url=http://retina100.com/]retin a 01 cream[/url]

    回复
  28. kgr [url=https://mycbdoil.us.com/#]cbd oil for pain[/url]

    回复
  29. ujb [url=https://bestonlinecasinosww.com/#]las vegas free penny slots[/url] cbu [url=https://bestonlinecasinosww.com/#]lady luck casino vicksburg[/url]
    wjf [url=https://bestonlinecasinosww.com/#]play free for real money[/url]

    回复
  30. omz [url=https://freeonlinecasinoww.com/#]maryland live casino online[/url]
    shn [url=https://freeonlinecasinoww.com/#]firekeepers casino[/url]

    回复
  31. ovl [url=https://freecasinogamesonlineww.com/#]casino bonus[/url]
    tyd [url=https://freecasinogamesonlineww.com/#]vegas slots free[/url]

    回复
  32. crd [url=https://hypercasinosww.com/#]doubledown casino bonus collector[/url]
    vje [url=https://hypercasinosww.com/#]hollywood casino online[/url]

    回复
  33. atn [url=https://onlinecasinorealmoneyww.com/#]totally free slots no download[/url]
    hfr [url=https://onlinecasinorealmoneyww.com/#]free casino games no download[/url]

    回复
  34. [url=http://prednisone100.com/]prednisone 10mg buy online[/url] [url=http://motilium2019.com/]motilium tablets over the counter[/url] [url=http://viagra250.com/]viagra gel pills[/url] [url=http://atenolol911.com/]atenolol 50 mg tablets coupon[/url] [url=http://sildenafil10.com/]sildenafil 50mg coupon[/url]

    回复
  35. rla [url=https://playonlinecasinoww.com/#]foxwoods casino online[/url]
    scn [url=https://playonlinecasinoww.com/#]free slot games download full version[/url]

    回复
  36. ise [url=https://freecasinogamesonlineww.com/#]free slots vegas[/url] pqe [url=https://freecasinogamesonlineww.com/#]100 most popular free slots[/url]
    yfd [url=https://freecasinogamesonlineww.com/#]firekeepers casino[/url]

    回复
  37. [url=http://tadalafil200.com/]tadalafil cost[/url]

    回复
  38. [url=http://prednisone0l1.com]prednisone[/url]

    回复
  39. ehd [url=https://bestonlinecasinosww.com/#]jackpot magic slots[/url]

    回复
  40. pph [url=https://onlinecasinorealmoneyww.com/#]free slots hollywood[/url]

    回复
  41. wvd [url=https://hypercasinosww.com/#]penny slots free online[/url]

    回复
  42. [url=http://sildenafil10.com/]sildenafil tabs 20mg[/url]

    回复
  43. [url=http://retina100.com/]retin a 1 from mexico[/url]

    回复
  44. [url=http://tadalafild9z.com]www.tadalafild9z.com[/url]

    回复
  45. drh [url=https://mycbdoil.us.com/#]hemp oil vs cbd oil[/url]
    wxy [url=https://mycbdoil.us.com/#]hemp oil extract[/url]

    回复
  46. [url=https://retina100.com/]where can i buy retin a over the counter[/url]

    回复
  47. zjm [url=https://onlinecasinorealmoneyww.com/#]slots online[/url]

    回复
  48. [url=http://prednisolone0l1.com]prednisolone[/url]
    [url=http://viagrav3u.com]online viagra sale in usa [/url]
    [url=http://propecia0l1.com]buy propecia[/url]
    [url=http://prozac0l1.com]google how much prozac does is take to get high [/url]

    回复
  49. naa [url=https://onlinecasino1488.us.com/#]slots online[/url]

    回复
  50. [url=https://atenolol911.com/]atenolol[/url] [url=https://tretinoin24.com/]buy tretinoin[/url] [url=https://sildenafil10.com/]sildenafil 50 mg[/url] [url=https://buspar1.com/]buspar in india[/url] [url=https://prednisone100.com/]order prednisone[/url]

    回复

发表评论

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