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

  1. [url=https://trazodone2019.com/]trazodone 50 mg tablet[/url] [url=https://tretinoin2019.com/]buy tretinoin online[/url] [url=https://zithromax2.com/]zithromax 100 mg[/url] [url=https://prednisone3.com/]buy prednisone[/url] [url=https://clomid2.com/]can i buy clomid[/url] [url=https://nolvadex2019.com/]buy nolvadex online canada[/url] [url=https://levitra100.com/]levitra generic[/url] [url=https://suhagra911.com/]suhagra online[/url] [url=https://proscar100.com/]proscar[/url] [url=https://furosemide24.com/]generic no prescription cheap furosemoide[/url]

    回复
  2. I wanted to thank you for this very good read!! I absolutely loved every little
    bit of it. I’ve got you saved as a favorite to look at
    new things you

    回复
  3. sei [url=https://bestonlinecasinosww.com/#]casino real money[/url]

    回复
  4. qpc [url=https://playonlinecasinoww.com/#]no deposit casino[/url]
    etb [url=https://playonlinecasinoww.com/#]casino online[/url]

    回复
  5. uwq [url=https://playonlinecasinoww.com/#]casino online[/url]
    hgc [url=https://playonlinecasinoww.com/#]free casino games online[/url]

    回复
  6. rhk [url=https://hempcbdoilplus.com/#]cbd[/url]

    回复
  7. [url=https://proscar100.com/]buy proscar online uk[/url] [url=https://metformin100.com/]how to order metformin online[/url] [url=https://dapoxetine911.com/]dapoxetine 30[/url] [url=https://cialis911.com/]order generic cialis from canada[/url] [url=https://clomid2.com/]buy clomid online safely[/url] [url=https://nolvadex2019.com/]buy nolvadex[/url] [url=https://tadalafil200.com/]best price for tadalafil 20 mg[/url] [url=https://zithromax2.com/]zithromax 500mg[/url] [url=https://cafergot2019.com/]cafergot over the counter[/url] [url=https://robaxin100.com/]robaxin 750[/url]

    回复
  8. ygb [url=https://hypercasinosww.com/#]online casino real money[/url]

    回复
  9. jvb [url=https://freecasinogamesonlineww.com/#]free casino games online[/url]

    回复
  10. [url=http://lotrisonebest.us.org]http://www.lotrisonebest.us.org[/url]

    回复
  11. tws [url=https://freeonlinecasinoww.com/#]big fish casino[/url]
    pxa [url=https://freeonlinecasinoww.com/#]free casino[/url]

    回复
  12. srb [url=https://hypercasinosww.com/#]no deposit casino[/url]
    ukw [url=https://hypercasinosww.com/#]free casino games[/url]

    回复
  13. tag [url=https://onlinecasinorealmoneyww.com/#]casino online[/url]

    回复
  14. bfc [url=https://bestonlinecasinosww.com/#]no deposit casino[/url]

    回复
  15. auc [url=https://freecasinogamesonlineww.com/#]casino game[/url] mfn [url=https://freecasinogamesonlineww.com/#]real money casino[/url]
    xtz [url=https://freecasinogamesonlineww.com/#]casino games[/url]

    回复
  16. bgp [url=https://playonlinecasinoww.com/#]online casinos[/url]

    回复
  17. kjx [url=https://onlinecasino1488.us.com/#]online casino real money[/url]

    回复
  18. qhe [url=https://hempcbdoilplus.com/#]hemp oil arthritis[/url]
    ocs [url=https://hempcbdoilplus.com/#]hemp oil cbd[/url]

    回复
  19. fcq [url=https://bestonlinecasinosww.com/#]best online casinos[/url] yjs [url=https://bestonlinecasinosww.com/#]no deposit casino[/url]
    xjx [url=https://bestonlinecasinosww.com/#]casino game[/url]

    回复
  20. [url=https://retina2.com/]buy retin a 0.1 online[/url] [url=https://cafergot2019.com/]cafergot tablet generic[/url] [url=https://levitra100.com/]buy generic levitra[/url]

    回复
  21. dfl [url=https://hempcbdoilplus.com/#]cbd oil cost[/url]
    faz [url=https://hempcbdoilplus.com/#]hemp oil benefits dr oz[/url]

    回复
  22. zki [url=https://onlinecasino1488.us.com/#]big fish casino[/url]

    回复
  23. zmo [url=https://playonlinecasinoww.com/#]free casino games online[/url]
    bjm [url=https://playonlinecasinoww.com/#]casino game[/url]

    回复
  24. ubi [url=https://freeonlinecasinoww.com/#]casino slots[/url]
    osi [url=https://freeonlinecasinoww.com/#]play online casino[/url]

    回复
  25. ffr [url=https://bestonlinecasinosww.com/#]big fish casino[/url]

    回复
  26. tbj [url=https://hempcbdoilplus.com/#]zilis cbd oil[/url]

    回复
  27. fal [url=https://cbdoil.us.com/#]best cbd oil[/url] jhk [url=https://cbdoil.us.com/#]cbd oil canada online[/url]

    回复
  28. dmu [url=https://cbdoil.us.com/#]cbd oil canada online[/url] see [url=https://cbdoil.us.com/#]healthy hemp oil[/url]
    yxm [url=https://cbdoil.us.com/#]optivida hemp oil[/url]

    回复
  29. Hi, I do believe this is an excellent blog. I stumbledupon it 😉 I am going to come back yet again since
    i have bookmarked it. Money and freedom is the greatest way to change, may
    you be rich and continue to guide other people.

    回复
  30. [url=https://tadalafil200.com/]tadalafil online[/url] [url=https://retina2.com/]buy retin a[/url] [url=https://clomid2.com/]buy clomid 50mg uk[/url] [url=https://zithromax2.com/]zithromax 500mg canada[/url] [url=https://viagra500.com/]canadian pharmacy viagra[/url]

    回复
  31. ryv [url=https://freecasinogamesonlineww.com/#]casino online slots[/url]

    回复
  32. vrs [url=https://hempcbdoilplus.com/#]cbd oil online[/url]
    bne [url=https://hempcbdoilplus.com/#]hemp oil cbd[/url]

    回复
  33. rjo [url=https://hypercasinosww.com/#]online casino[/url]
    aro [url=https://hypercasinosww.com/#]free casino[/url]

    回复
  34. qbs [url=https://onlinecasino1488.us.com/#]casino online slots[/url] zuz [url=https://onlinecasino1488.us.com/#]free casino games[/url]

    回复
  35. nfe [url=https://freecasinogamesonlineww.com/#]online casino real money[/url]

    回复
  36. nqd [url=https://playonlinecasinoww.com/#]play online casino[/url]

    回复
  37. gis [url=https://onlinecasinorealmoneyww.com/#]free casino games[/url]

    回复
  38. ywn [url=https://hypercasinosww.com/#]play online casino[/url]
    qid [url=https://hypercasinosww.com/#]casino game[/url]

    回复
  39. shp [url=https://hypercasinosww.com/#]casino online[/url]

    回复
  40. sii [url=https://hempcbdoilplus.com/#]cbd vs hemp oil[/url]

    回复
  41. [url=https://cafergot2019.com/]buy cafergot pills[/url] [url=https://furosemide24.com/]furosemide 20 mg tablets[/url] [url=https://cialis911.com/]order cialis online[/url] [url=https://proscar100.com/]proscar[/url] [url=https://fluoxetine365.com/]fluoxetine 20 mg price in india[/url] [url=https://tadalafil200.com/]tadalafil online in india[/url] [url=https://sildenafil48.com/]sildenafil cream[/url] [url=https://zithromax2.com/]zithromax 500mg[/url] [url=https://prednisone3.com/]prednisone tablets[/url] [url=https://xenical365.com/]buy xenical online uk[/url]

    回复
  42. axd [url=https://freecasinogamesonlineww.com/#]casino real money[/url] zqd [url=https://freecasinogamesonlineww.com/#]free casino games[/url]
    nzt [url=https://freecasinogamesonlineww.com/#]free casino[/url]

    回复
  43. syy [url=https://bestonlinecasinosww.com/#]play casino[/url]

    回复
  44. umg [url=https://onlinecasino1488.us.com/#]casino play[/url]

    回复
  45. ohq [url=https://hempcbdoilplus.com/#]hemp oil cbd[/url]
    kki [url=https://hempcbdoilplus.com/#]hemp oil for dogs[/url]

    回复
  46. jiv [url=https://bestonlinecasinosww.com/#]play online casino[/url] ztr [url=https://bestonlinecasinosww.com/#]free casino games online[/url]
    qwl [url=https://bestonlinecasinosww.com/#]casino game[/url]

    回复
  47. I love what you guys are up too. This sort of clever work and reporting!
    Keep up the excellent works guys I’ve included you
    guys to my own blogroll.

    回复
  48. aje [url=https://playonlinecasinoww.com/#]casino online slots[/url]
    nsg [url=https://playonlinecasinoww.com/#]online casino games[/url]

    回复
  49. ovu [url=https://hempcbdoilplus.com/#]cbd oil price[/url]

    回复
  50. nnb [url=https://onlinecasino1488.us.com/#]play online casino[/url] nnp [url=https://onlinecasino1488.us.com/#]casino real money[/url]
    pfr [url=https://onlinecasino1488.us.com/#]online casino[/url]

    回复

发表评论

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