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

  1. [url=https://tadalafil8.com/]tadalafil 20 mg[/url]

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

    回复
  3. 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]

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

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

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

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

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

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

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

    回复
  11. [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]

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

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

    回复
  14. 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]

    回复
  15. [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]

    回复
  16. [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]

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

    回复
  18. [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]

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

    回复
  20. [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]

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

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

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

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

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

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

    回复

发表评论

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