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

  1. eht [url=https://mycbdoil.us.com/#]buy cbd[/url]

    回复
  2. [url=https://suhagra911.com/]suhagra 100[/url] [url=https://prednisolone100.com/]buy prednisolone tablets[/url] [url=https://propecia50.com/]proscar cost australia[/url] [url=https://doxycycline2019.com/]buy doxycycline south africa[/url] [url=https://tretinoin2019.com/]tretinoin cream[/url] [url=https://zithromax2.com/]zithromax price[/url]

    回复
  3. tow [url=https://bestonlinecasinosww.com/#]online casino reviews[/url] gsk [url=https://bestonlinecasinosww.com/#]pch slots tournament[/url]
    llu [url=https://bestonlinecasinosww.com/#]free penny slot machine games[/url]

    回复
  4. arp [url=https://playonlinecasinoww.com/#]free games for casino slots hollywood[/url]
    swk [url=https://playonlinecasinoww.com/#]caesars free slots online[/url]

    回复
  5. zyp [url=https://freeonlinecasinoww.com/#]no deposit casino[/url]
    ofd [url=https://freeonlinecasinoww.com/#]bonus casino[/url]

    回复
  6. wos [url=https://hypercasinosww.com/#]hollywood casino[/url]

    回复
  7. [url=http://tadalafil8.com/]tadalafil tablets 20 mg[/url] [url=http://tretinoin24.com/]tretinoin from canada[/url] [url=http://sildenafil10.com/]where can you buy sildenafil[/url] [url=http://motilium2019.com/]motilium price[/url] [url=http://atenolol911.com/]atenolol[/url]

    回复
  8. [url=https://viagra250.com/]viagra australia buy[/url] [url=https://buspar1.com/]buspar medicine[/url] [url=https://sildenafil10.com/]sildenafil singapore[/url] [url=https://tadalafil8.com/]order tadalafil 20mg[/url] [url=https://retina100.com/]where to get retin a prescription[/url]

    回复
  9. [url=http://viagrad9z.com]viagra[/url]

    回复
  10. [url=http://atenolol911.com/]buy atenolol 25 mg[/url] [url=http://sildenafil10.com/]sildenafil 50 mg tablet[/url] [url=http://buspar1.com/]buspar medication[/url] [url=http://retina100.com/]retin a 0.05[/url] [url=http://cialis500.com/]cialis coupon[/url]

    回复
  11. llx [url=https://bestonlinecasinosww.com/#]free casino games online[/url]

    回复
  12. [url=http://motilium2019.com/]buy motilium uk[/url] [url=http://buspar1.com/]buspar medication[/url] [url=http://sildenafil10.com/]sildenafil 50 mg[/url] [url=http://atenolol911.com/]atenolol 25 mg price[/url] [url=http://retina100.com/]retin a[/url]

    回复
  13. [url=http://zithromax0l1.com]buy zithromax[/url]

    回复
  14. sjj [url=https://onlinecasino1488.us.com/#]sugarhouse online casino[/url]

    回复
  15. ert [url=https://onlinecasino1488.us.com/#]pechanga casino[/url] uar [url=https://onlinecasino1488.us.com/#]hyper casinos[/url]
    nci [url=https://onlinecasino1488.us.com/#]free online slots no download[/url]

    回复
  16. akc [url=https://freecasinogamesonlineww.com/#]free online casino[/url]

    回复
  17. [url=https://tadalafil8.com/]tadalafil 20mg lowest price[/url] [url=https://prednisone100.com/]prednisone purchase[/url] [url=https://buspar1.com/]buspar 10mg[/url] [url=https://tretinoin24.com/]buy tretinoin[/url] [url=https://viagra250.com/]cheap viagra[/url]

    回复
  18. [url=http://prednisolone0l1.com]cheap prednisolone[/url]
    [url=http://sildenafila1c.com]sildenafil teva vs viagra price [/url]
    [url=http://lisinopril0l1.com]http://www.lisinopril0l1.com[/url]
    [url=http://viagrav3u.com]healpharmacy viagra online [/url]

    回复
  19. phy [url=https://mycbdoil.us.com/#]cbd oil canada[/url]
    bkx [url=https://mycbdoil.us.com/#]best hemp oil[/url]

    回复
  20. ijc [url=https://mycbdoil.us.com/#]cbd oil[/url]

    回复
  21. dsc [url=https://onlinecasinorealmoneyww.com/#]free casino slot games[/url]

    回复
  22. fcy [url=https://onlinecasinorealmoneyww.com/#]hyper casinos[/url]
    umj [url=https://onlinecasinorealmoneyww.com/#]online slots[/url]

    回复
  23. [url=https://dapoxetine911.com/]dapoxetine[/url] [url=https://cafergot2019.com/]cafergot cost[/url] [url=https://cialis911.com/]cialis buy in canada[/url] [url=https://furosemide24.com/]furosemide tab 40mg[/url] [url=https://metformin100.com/]metformin 500 price india[/url] [url=https://viagra500.com/]viagra pharmacy[/url] [url=https://prednisone3.com/]can you buy prednisone over the counter uk[/url] [url=https://clomid2.com/]buy clomid[/url] [url=https://suhagra911.com/]cheapest suhagra[/url] [url=https://hydrochlorothiazide2.com/]12.5 hydrochlorothiazide[/url]

    回复
  24. vig [url=https://freecasinogamesonlineww.com/#]high five casino slots[/url]

    回复
  25. [url=https://tadalafil8.com/]tadalafil 20 mg[/url]

    回复
  26. [url=http://cialis0l1.com]www.cialis0l1.com[/url]

    回复
  27. olc [url=https://bestonlinecasinosww.com/#]slot games with bonus spins[/url] sfh [url=https://bestonlinecasinosww.com/#]free online casino games vegas[/url]
    hay [url=https://bestonlinecasinosww.com/#]grand falls casino[/url]

    回复
  28. qvv [url=https://hypercasinosww.com/#]online casino gambling[/url]
    fvi [url=https://hypercasinosww.com/#]casino slot free[/url]

    回复
  29. did [url=https://freecasinogamesonlineww.com/#]online casino bonus[/url]
    qeg [url=https://freecasinogamesonlineww.com/#]vegas world free slots[/url]

    回复
  30. [url=https://retina100.com/]retin a 01 cream[/url]

    回复
  31. wia [url=https://playonlinecasinoww.com/#]888 casino nj[/url]
    mmc [url=https://playonlinecasinoww.com/#]three rivers casino[/url]

    回复
  32. [url=https://viagra250.com/]can i buy viagra in canada[/url] [url=https://prednisone100.com/]prednisone 10 mg purchase[/url]

    回复
  33. twa [url=https://playonlinecasinoww.com/#]free vegas slots[/url]

    回复
  34. yrp [url=https://freeonlinecasinoww.com/#]house of fun slots[/url]
    wlo [url=https://freeonlinecasinoww.com/#]free full casino games download[/url]

    回复
  35. [url=http://viagra500.com/]online viagra prescription[/url] [url=http://trazodone2019.com/]trazodone online pharmacy no rx[/url] [url=http://proscar100.com/]proscar prescription online[/url] [url=http://suhagra911.com/]suhagra 500[/url] [url=http://xenical365.com/]buy xenical[/url] [url=http://prednisolone100.com/]buy prednisolone 5mg tabs[/url]

    回复
  36. [url=http://buspar1.com/]buy buspar[/url]

    回复
  37. upi [url=https://onlinecasino1488.us.com/#]lady luck casino free games[/url] pbb [url=https://onlinecasino1488.us.com/#]mgm online casino[/url]

    回复
  38. zgl [url=https://bestonlinecasinosww.com/#]online gambling sites[/url] kwi [url=https://bestonlinecasinosww.com/#]high five casino slots[/url]
    ihw [url=https://bestonlinecasinosww.com/#]vegas world casino games[/url]

    回复
  39. [url=https://atenolol911.com/]atenolol 25 mg price in india[/url] [url=https://viagra250.com/]buy cheap generic viagra[/url] [url=https://buspar1.com/]buspar medicine[/url] [url=https://retina100.com/]retin a 01 cream[/url] [url=https://tadalafil8.com/]tadalafil generic canada[/url]

    回复
  40. [url=http://sildenafila1c.com]http://sildenafila1c.com[/url]
    [url=http://cialisa1c.com]cialis and blood pressure medication [/url]
    [url=http://sildenafild9z.com]http://www.sildenafild9z.com[/url]
    [url=http://cialis0z.com]free cialis voucher for 30 days free pills [/url]
    [url=http://viagrav3u.com]generic viagra[/url]
    [url=http://allopurinol0l1.com]naproxen allopurinol [/url]

    回复
  41. [url=http://sildenafila1c.com]http://sildenafila1c.com[/url]
    [url=http://tadalafila1c.com]tadalafil / cynao 21 / 1 mg /cap [/url]

    回复
  42. [url=http://sildenafil10.com/]sildenafil 50mg india[/url] [url=http://atenolol911.com/]atenolol[/url] [url=http://buspar1.com/]buspar 30[/url] [url=http://prednisone100.com/]prednisone 10mg[/url] [url=http://viagra250.com/]cheap viagra without prescription[/url]

    回复
  43. [url=http://lisinopril0l1.com]generic lisinopril[/url]
    [url=http://sildenafild9z.com]sildenafil citrate online pakistan [/url]

    回复
  44. [url=http://cialisa1c.com]www.cialisa1c.com[/url]
    [url=http://viagrad9z.com]cheap generic viagra india that takes discover card [/url]
    [url=http://viagrav3u.com]www.viagrav3u.com[/url]
    [url=http://viagrad9z.com]does molina silver 200 plan cover a viagra prescription [/url]
    [url=http://zithromax0l1.com]http://zithromax0l1.com[/url]
    [url=http://metformin0l1.com]metformin 500 mg weight loss before and after [/url]

    回复
  45. tik [url=https://freeonlinecasinoww.com/#]free casino slots with bonus[/url]
    zro [url=https://freeonlinecasinoww.com/#]free casino[/url]

    回复
  46. ogb [url=https://playonlinecasinoww.com/#]play free slots for fun[/url]
    pit [url=https://playonlinecasinoww.com/#]konami free slots[/url]

    回复
  47. fup [url=https://bestonlinecasinosww.com/#]hollywood casino[/url]

    回复
  48. map [url=https://mycbdoil.us.com/#]benefits of hemp oil for humans[/url]
    pnk [url=https://mycbdoil.us.com/#]hemp oil arthritis[/url]

    回复
  49. xxb [url=https://mycbdoil.us.com/#]hemp oil benefits dr oz[/url]

    回复
  50. ftf [url=https://bestonlinecasinosww.com/#]online casino reviews[/url]

    回复

发表评论

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