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包 有 14,992 条回应

  1. mwq [url=https://starcasino.us.org/#]free las vegas slot machines[/url]

    回复
  2. pus [url=https://starcasino.us.org/#]big fish casino slots[/url]
    vex [url=https://starcasino.us.org/#]casino play for free[/url]

    回复
  3. liw [url=https://casinoonlineslotsww.com/#]gsn casino games[/url]
    jyv [url=https://casinoonlineslotsww.com/#]888 casino download[/url]

    回复
  4. [url=https://aqutane.com/]estrace[/url] [url=https://strattera24.com/]buy strattera 40mg online[/url] [url=https://propecia360.com/]buy propecia[/url] [url=https://dapoxetine1.com/]dapoxetine price australia[/url] [url=https://lisinopril1.com/]lisinopril online[/url] [url=https://arimidex24.com/]1mg arimidex[/url] [url=https://colchicine24.com/]colchicine[/url] [url=https://retina0.com/]retin a[/url] [url=https://eccutane.com/]buy accutane with paypal[/url] [url=https://proscar911.com/]proscar medication[/url] [url=https://zithromax24.com/]zithromax[/url] [url=https://tretinoin1.com/]tretinoin over the counter[/url] [url=https://fluoxetine1.com/]fluoxetine uk[/url] [url=https://retina911.com/]retin a 0.1 india[/url] [url=https://levitra19.com/]20 mg levitra cost[/url] [url=https://sildenafil360.com/]sildenafil 100mg capsule[/url] [url=https://propecia10.com/]generic propecia online[/url] [url=https://hydrochlorothiazide2019.com/]hydrochlorothiazide[/url] [url=https://sildenafil3.com/]can you purchase sildenafil over the counter[/url] [url=https://tadalafil360.com/]buy tadalafil canada[/url]

    回复
  5. [url=https://hydrochlorothiazide2019.com/]hydrochlorothiazide 12.5 capsules[/url] [url=https://strattera24.com/]strattera[/url] [url=https://viagrasoft24.com/]generic viagra soft tabs online[/url] [url=https://cipro2019.com/]cipro 750 mg[/url] [url=https://proscar911.com/]proscar generic[/url] [url=https://retina0.com/]buy retin a online[/url] [url=https://eccutane.com/]buy accutane[/url] [url=https://buspar24.com/]buspar 5mg tablets[/url] [url=https://accutanisotretinoin.com/]accutane prescription cost[/url] [url=https://cialis360.com/]cialis[/url]

    回复
  6. zms [url=https://starcasino.us.org/#]casino slot[/url]
    vnt [url=https://starcasino.us.org/#]free penny slots[/url]

    回复
  7. kjb [url=https://onlinecasinostar.us.org/#]freeslots.com slots[/url]
    ozi [url=https://onlinecasinostar.us.org/#]caesars slots[/url]

    回复
  8. cid [url=https://casinoonlineslotsww.com/#]hollywood casino[/url]

    回复
  9. goi [url=https://onlinecasinostar.us.org/#]play casino[/url]

    回复
  10. [url=https://advair24.com/]advair[/url] [url=https://sildenafil3.com/]where can i buy sildenafil[/url] [url=https://levitra7.com/]levitra generic india[/url] [url=https://dapoxetine2019.com/]dapoxetine tablet price in india[/url] [url=https://lexapraw.com/]lexapro tablets[/url] [url=https://estrace2019.com/]estrace[/url]

    回复
  11. opv [url=https://casinoonlineslotsww.com/#]casino play[/url]

    回复
  12. rzr [url=https://myonlinecasino.us.org/#]casino slot machine games[/url]
    bye [url=https://myonlinecasino.us.org/#]zone online casino bingo games[/url]

    回复
  13. wlq [url=https://myonlinecasino.us.org/#]casino near me[/url]
    cyn [url=https://myonlinecasino.us.org/#]new no deposit casinos accepting us players[/url]

    回复
  14. xvp [url=https://casinoonlineslotsww.com/#]real vegas casino games free[/url] cfp [url=https://casinoonlineslotsww.com/#]slot machines[/url]
    gft [url=https://casinoonlineslotsww.com/#]caesars slots free casino[/url]

    回复
  15. cgk [url=https://starcasino.us.org/#]vegas free slots[/url]

    回复
  16. xfk [url=https://casinoonlineslotsww.com/#]doubledown casino bonus collector[/url] hip [url=https://casinoonlineslotsww.com/#]vegas world free slots games[/url]
    qnp [url=https://casinoonlineslotsww.com/#]freeslots.com slots[/url]

    回复
  17. [url=http://arimidex24.com/]arimidex[/url]

    回复
  18. tec [url=https://casinoonline888.us.org/#]heart of vegas free slots[/url]

    回复
  19. zxc [url=https://myonlinecasino.us.org/#]free slots with no download or registration[/url]

    回复
  20. nys [url=https://casinoonline888.us.org/#]free slots no download no registration zeus[/url] chd [url=https://casinoonline888.us.org/#]google free casino slot games[/url]

    回复
  21. oqg [url=https://casinoonlinegames.us.org/#]real money casino[/url] utz [url=https://casinoonlinegames.us.org/#]free casino games no registration no download[/url]
    xwo [url=https://casinoonlinegames.us.org/#]ruby slots[/url]

    回复
  22. hrl [url=https://onlinecasinostar.us.org/#]house of fun free slots[/url]

    回复
  23. itf [url=https://casinoslotstar.us.org/#]hypercasinos[/url]

    回复
  24. [url=https://sildenafil3.com/]sildenafil 100 capsule[/url]

    回复
  25. saw [url=https://casinoslotstar.us.org/#]liberty slots[/url]
    cri [url=https://casinoslotstar.us.org/#]buffalo slots[/url]

    回复
  26. dke [url=https://onlinecasinostar.us.org/#]casino vegas world[/url]
    elf [url=https://onlinecasinostar.us.org/#]las vegas free slots[/url]

    回复
  27. mvj [url=https://casinoslotstar.us.org/#]hollywood casino free slot play[/url]
    lxo [url=https://casinoslotstar.us.org/#]100 most popular free slots[/url]

    回复
  28. rsx [url=https://realcasino.us.org/#]caesars slots[/url]
    tdy [url=https://realcasino.us.org/#]hypercasinos[/url]

    回复
  29. viz [url=https://casinoonlineslotsww.com/#]jack online casino[/url]

    回复
  30. [url=http://albuterol1s1.com]albuterol1s1[/url]
    [url=http://levitrad7l.com]levitrad7l.com[/url]
    [url=http://kamagraf5h.com]kamagraf5h[/url]
    [url=http://ventolin0i0.com]ventolin0i0[/url]
    [url=http://tadalafil000.com]tadalafil000[/url]

    回复
  31. [url=https://propecia360.com/]propecia[/url] [url=https://proscar911.com/]generic proscar canada[/url] [url=https://cialis360.com/]cialis[/url] [url=https://propecia10.com/]order generic propecia[/url] [url=https://buspar24.com/]buspar pill 10 mg[/url] [url=https://aqutane.com/]generic estrace tablets[/url] [url=https://viagra101.com/]over the counter viagra[/url] [url=https://zithromax24.com/]zithromax 500 tablet[/url] [url=https://sildenafil3.com/]sildenafil 50 mg buy online[/url] [url=https://dapoxetine1.com/]dapoxetine 60mg[/url] [url=https://viagra0.com/]uk viagra prices[/url] [url=https://lisinopril1.com/]lisinopril 10 mg[/url] [url=https://wellbutrin1.com/]best generic wellbutrin[/url] [url=https://dapoxetine2019.com/]dapoxetine tablet[/url] [url=https://cialis1000.com/]buy cialis 20mg[/url] [url=https://lisinopril911.com/]lisinopril 40 mg cost[/url] [url=https://paxil40.com/]paxil 10 mg cost[/url] [url=https://proscar24.com/]where to buy proscar in canada[/url] [url=https://colchicine05.com/]colchicine 0.6 mg cost[/url] [url=https://cipro2019.com/]cipro[/url]

    回复
  32. azk [url=https://casinoslotstar.us.org/#]play casino games for free[/url]

    回复
  33. efq [url=https://onlinecasinostar.us.org/#]online casino[/url]
    ron [url=https://onlinecasinostar.us.org/#]slots free[/url]

    回复
  34. ret [url=https://onlinecasinostar.us.org/#]parx casino online[/url]

    回复
  35. [url=http://prednisolonely6.com]prednisolonely6[/url]

    回复
  36. [url=http://propecia360.com/]propecia[/url] [url=http://avodart5.com/]avodart medication[/url] [url=http://paxil40.com/]paxil 25[/url] [url=http://advair24.com/]advair[/url] [url=http://lisinopril911.com/]lisinopril 40 mg cost[/url] [url=http://retina0.com/]retin a prescription[/url] [url=http://cipro2019.com/]strattera cost south africa[/url] [url=http://cialis1000.com/]cialis 20mg coupon[/url] [url=http://dapoxetine1.com/]dapoxetine tablets 60 mg[/url] [url=http://tadalafil0.com/]tadalafil 20 mg best price[/url]

    回复
  37. uxq [url=https://starcasino.us.org/#]casinos online[/url]

    回复
  38. lne [url=https://starcasino.us.org/#]simslots free slots[/url]
    wvt [url=https://starcasino.us.org/#]zone online casino slots[/url]

    回复
  39. jhq [url=https://realcasino.us.org/#]play casino slots[/url]

    回复
  40. bwq [url=https://realcasino.us.org/#]slot machine free[/url]
    gpg [url=https://realcasino.us.org/#]play free for real money[/url]

    回复
  41. wjq [url=https://casinoonlineslotsww.com/#]penny slots free online[/url] zyi [url=https://casinoonlineslotsww.com/#]casino slot[/url]
    mxl [url=https://casinoonlineslotsww.com/#]casino games[/url]

    回复
  42. [url=https://accutanisotretinoin.com/]buy accutane 2017[/url] [url=https://diflucan24.com/]diflucan[/url] [url=https://clomid2019.com/]buy clomid[/url] [url=https://lisinopril911.com/]lisinopril 2.5 pill[/url] [url=https://lexapr0.com/]lexapro 40 mg[/url] [url=https://eccutane.com/]buy accutane[/url] [url=https://cialis1000.com/]how to buy cialis in uk[/url] [url=https://viagra101.com/]how to get viagra online[/url] [url=https://proscar24.com/]generic proscar cost[/url] [url=https://dapoxetine1.com/]dapoxetine[/url]

    回复
  43. sdt [url=https://starcasino.us.org/#]us online casinos for real money[/url]
    dez [url=https://starcasino.us.org/#]vegas world[/url]

    回复
  44. [url=https://colchicine05.com/]colchicine 0.6 mg[/url] [url=https://propecia10.com/]propecia[/url] [url=https://lexapr0.com/]lexapro[/url] [url=https://propecia360.com/]propecia[/url] [url=https://dapoxetine1.com/]dapoxetine 60 mg tablet price[/url] [url=https://wellbutrin1.com/]wellbutrin australia buy[/url] [url=https://proscar24.com/]generic proscar 5mg[/url] [url=https://lexapraw.com/]lexapro[/url] [url=https://proscar911.com/]buy proscar online[/url] [url=https://buspar24.com/]15 mg buspar[/url]

    回复
  45. rkp [url=https://casinoonlinegames.us.org/#]old version vegas world[/url] mbs [url=https://casinoonlinegames.us.org/#]indian casinos near me[/url]

    回复
  46. pkq [url=https://casinoonlinegames.us.org/#]online gambling for real money[/url]

    回复
  47. wch [url=https://realcasino.us.org/#]zone online casino bingo games[/url]

    回复
  48. jba [url=https://casinoonlineslotsww.com/#]stn play online casino[/url]

    回复
  49. ttd [url=https://casinoonlinegames.us.org/#]free vegas world slots[/url]

    回复
  50. mwz [url=https://casinoonline888.us.org/#]casino vegas world[/url] jvn [url=https://casinoonline888.us.org/#]free penny slots with bonus spins[/url]
    psl [url=https://casinoonline888.us.org/#]gold fish casino slots[/url]

    回复

发表评论

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