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

  1. unu [url=https://bestonlinecasinosww.com/#]casino slots[/url] dru [url=https://bestonlinecasinosww.com/#]casino slots[/url]
    xox [url=https://bestonlinecasinosww.com/#]free casino games[/url]

    回复
  2. bwc [url=https://bestonlinecasinosww.com/#]casino slots[/url]

    回复
  3. wni [url=https://freecasinogamesonlineww.com/#]casino game[/url]
    qse [url=https://freecasinogamesonlineww.com/#]online casino games[/url]

    回复
  4. thu [url=https://playonlinecasinoww.com/#]casino games[/url]

    回复
  5. [url=http://trazodone2019.com/]trazodone online[/url] [url=http://amoxicillin24.com/]amoxicillin tablets where to buy[/url] [url=http://wellbutrin365.com/]300 wellbutrin[/url] [url=http://tadacip1.com/]tadacip for sale[/url] [url=http://nolvadex2019.com/]buy generic nolvadex[/url] [url=http://suhagra911.com/]suhagra 500[/url] [url=http://proscar100.com/]proscar singapore[/url] [url=http://levitra100.com/]purchase generic levitra[/url] [url=http://furosemide24.com/]furosemide 20 mg tablets[/url] [url=http://propecia50.com/]buy propecia online[/url] [url=http://hydrochlorothiazide2.com/]hydrochlorothiazide tablets[/url] [url=http://metformin100.com/]can you order metformin online[/url] [url=http://azithromycin24.com/]buy azithromycin[/url] [url=http://prednisolone100.com/]prednisolone 5mg without prescription[/url] [url=http://xenical365.com/]where can i buy xenical cheap[/url] [url=http://celebrex2019.com/]celebrex medication online[/url] [url=http://retina2.com/]retin a 500 mcg[/url] [url=http://cipro100.com/]cipro 500 price[/url] [url=http://zithromax2.com/]zithromax 500mg[/url] [url=http://fluoxetine365.com/]fluoxetine generic buy[/url]

    回复
  6. adn [url=https://hypercasinosww.com/#]free casino[/url]
    qks [url=https://hypercasinosww.com/#]casino online slots[/url]

    回复
  7. ykf [url=https://hempcbdoilplus.com/#]buy cbd usa[/url]
    ema [url=https://hempcbdoilplus.com/#]benefits of hemp oil for humans[/url]

    回复
  8. anu [url=https://freeonlinecasinoww.com/#]real money casino[/url]
    zjd [url=https://freeonlinecasinoww.com/#]online casino real money[/url]

    回复
  9. ebx [url=https://onlinecasinorealmoneyww.com/#]casino real money[/url]
    myw [url=https://onlinecasinorealmoneyww.com/#]free casino[/url]

    回复
  10. xeu [url=https://hempcbdoilplus.com/#]hemp oil benefits dr oz[/url]

    回复
  11. uau [url=https://onlinecasino1488.us.com/#]casino play[/url] fqs [url=https://onlinecasino1488.us.com/#]free casino games[/url]

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

    回复
  13. zxx [url=https://freecasinogamesonlineww.com/#]casino slots[/url]

    回复
  14. did [url=https://freeonlinecasinoww.com/#]play online casino[/url]

    回复
  15. jke [url=https://cbdoil.us.com/#]walgreens cbd oil[/url] hej [url=https://cbdoil.us.com/#]strongest cbd oil for sale[/url]

    回复
  16. orm [url=https://freeonlinecasinoww.com/#]online casino real money[/url]

    回复
  17. kxw [url=https://cbdoil.us.com/#]cbd oil for sale walmart[/url] fpf [url=https://cbdoil.us.com/#]cbd vs hemp oil[/url]
    okm [url=https://cbdoil.us.com/#]hempworx cbd oil[/url]

    回复
  18. [url=http://wellbutrin365.com/]wellbutrin order online[/url] [url=http://fluoxetine365.com/]fluoxetine 20mg online[/url] [url=http://metformin100.com/]metformin 500 mg tablets[/url] [url=http://robaxin100.com/]robaxin 500 mg[/url] [url=http://prednisone3.com/]order prednisone[/url] [url=http://suhagra911.com/]suhagra 100mg[/url] [url=http://propecia50.com/]propecia buy india[/url] [url=http://sildenafil48.com/]sildenafil generic[/url] [url=http://retina2.com/]where can i buy retin a without a prescription[/url] [url=http://doxycycline2019.com/]can you buy doxycycline over the counter nz[/url]

    回复
  19. jco [url=https://onlinecasino1488.us.com/#]free casino games[/url]

    回复
  20. bma [url=https://freeonlinecasinoww.com/#]online casino games[/url]
    ktv [url=https://freeonlinecasinoww.com/#]best online casinos[/url]

    回复
  21. pgy [url=https://onlinecasinorealmoneyww.com/#]best online casinos[/url]
    drm [url=https://onlinecasinorealmoneyww.com/#]casino online[/url]

    回复
  22. [url=http://doxycycline2019.com/]buy doxycycline[/url] [url=http://dapoxetine911.com/]dapoxetine[/url] [url=http://viagra500.com/]best canadian online pharmacy viagra[/url] [url=http://robaxin100.com/]robaxin 750 mg[/url] [url=http://fluoxetine365.com/]how can i get fluoxetine[/url]

    回复
  23. xbb [url=https://onlinecasino1488.us.com/#]play online casino[/url] dnp [url=https://onlinecasino1488.us.com/#]casino slots[/url]
    agj [url=https://onlinecasino1488.us.com/#]casino play[/url]

    回复
  24. okd [url=https://bestonlinecasinosww.com/#]no deposit casino[/url] pyq [url=https://bestonlinecasinosww.com/#]play casino[/url]
    mop [url=https://bestonlinecasinosww.com/#]casino play[/url]

    回复
  25. ngf [url=https://playonlinecasinoww.com/#]casino play[/url]

    回复
  26. bsn [url=https://bestonlinecasinosww.com/#]play casino[/url]

    回复
  27. mnd [url=https://hypercasinosww.com/#]play casino[/url]

    回复
  28. har [url=https://freecasinogamesonlineww.com/#]online casino[/url]
    iez [url=https://freecasinogamesonlineww.com/#]casino game[/url]

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

    回复
  30. [url=http://fluoxetine365.com/]fluoxetine 20mg[/url]

    回复
  31. cts [url=https://playonlinecasinoww.com/#]online casinos[/url]
    jmr [url=https://playonlinecasinoww.com/#]online casino games[/url]

    回复
  32. ogv [url=https://hypercasinosww.com/#]online casino real money[/url]
    kda [url=https://hypercasinosww.com/#]online casino games[/url]

    回复
  33. amt [url=https://freeonlinecasinoww.com/#]casino games[/url]
    gsu [url=https://freeonlinecasinoww.com/#]free casino games[/url]

    回复
  34. qhd [url=https://onlinecasinorealmoneyww.com/#]best online casinos[/url]
    php [url=https://onlinecasinorealmoneyww.com/#]best online casinos[/url]

    回复
  35. [url=http://vardenafil.run]http://vardenafil.run[/url]
    [url=http://betnovate.us.com]www.betnovate.us.com[/url]
    [url=http://sildalis365.us.com]www.sildalis365.us.com[/url]

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

    回复
  37. [url=https://nolvadex2019.com/]buy nolvadex[/url] [url=https://celebrex2019.com/]where can i buy celebrex 100 mg tablets[/url] [url=https://viagra500.com/]viagra gel[/url] [url=https://clomid2.com/]generic clomid[/url] [url=https://fluoxetine365.com/]fluoxetine price in india[/url] [url=https://furosemide24.com/]furosemide 20 mg tab cost[/url] [url=https://tretinoin2019.com/]tretinoin 025 price[/url] [url=https://cipro100.com/]cipro 800mg[/url] [url=https://synthroid100.com/]synthroid 100 mcg[/url] [url=https://dapoxetine911.com/]dapoxetine 100 mg[/url]

    回复
  38. mpm [url=https://bestonlinecasinosww.com/#]online casino real money[/url]

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

    回复
  40. mlz [url=https://onlinecasinorealmoneyww.com/#]play online casino[/url]

    回复
  41. iie [url=https://freeonlinecasinoww.com/#]online casino real money[/url]

    回复
  42. puw [url=https://playonlinecasinoww.com/#]big fish casino[/url]

    回复
  43. ole [url=https://freeonlinecasinoww.com/#]casino slots[/url]

    回复
  44. xpr [url=https://bestonlinecasinosww.com/#]free casino[/url] hte [url=https://bestonlinecasinosww.com/#]casino online[/url]
    wec [url=https://bestonlinecasinosww.com/#]free casino[/url]

    回复
  45. dks [url=https://playonlinecasinoww.com/#]online casino games[/url]

    回复
  46. sec [url=https://bestonlinecasinosww.com/#]casino slots[/url] dbu [url=https://bestonlinecasinosww.com/#]casino game[/url]
    sht [url=https://bestonlinecasinosww.com/#]online casino games[/url]

    回复
  47. qef [url=https://onlinecasinorealmoneyww.com/#]free casino games[/url]
    yfx [url=https://onlinecasinorealmoneyww.com/#]free casino games online[/url]

    回复
  48. kfp [url=https://freeonlinecasinoww.com/#]casino game[/url]
    idq [url=https://freeonlinecasinoww.com/#]online casino games[/url]

    回复
  49. ela [url=https://hempcbdoilplus.com/#]what is hemp oil good for[/url]
    blh [url=https://hempcbdoilplus.com/#]hempworx cbd oil[/url]

    回复
  50. [url=http://toradol.us.com]www.toradol.us.com[/url]
    [url=http://seroquel.us.com]http://www.seroquel.us.com[/url]
    [url=http://lasixfastdelivery.com]www.lasixfastdelivery.com[/url]
    [url=http://1stbaclofen.com]www.1stbaclofen.com[/url]
    [url=http://cardura.network]http://cardura.network[/url]
    [url=http://levitra911i.us.com]http://www.levitra911i.us.com[/url]

    回复

发表评论

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