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包 有 30,549 条回应

  1. [url=http://propecia365.us.com]propecia[/url] [url=http://wellbutrin-abc.com]wellbutrin[/url]

    回复
  2. [url=https://emomenyg.tk]emomenyg.tk[/url]
    [url=https://feccocagallma.ga]feccocagallma.ga[/url]

    回复
  3. [url=http://metformin360.com/]metformin 500 mg[/url] [url=http://clomid150.com/]clomid pills[/url] [url=http://furosemidelab.com/]furosemide 20 mg tablet[/url] [url=http://amoxicillincaps.com/]where to buy amoxicillin 500mg without prescription[/url] [url=http://doxycycline20.com/]doxycycline 100mg[/url] [url=http://sildenafilgen.com/]buy sildenafil generic online[/url] [url=http://lisinoprilhcz.com/]buy lisinopril[/url] [url=http://diflucan5.com/]diflucan over the counter[/url]

    回复
  4. [url=https://conhacalboygend.cf]conhacalboygend.cf[/url]
    [url=https://graphunjeli.tk]singles over 50 dating site [/url]

    回复
  5. [url=https://borwestnipotlue.tk]how to make awesome nonfiction essay paragraphs [/url]
    [url=https://brookenvamesu.ml]png dating sites free [/url]

    回复
  6. [url=https://dawootaroral.ga]honors us history unit 5 essay outline [/url]
    [url=https://ssurenrilac.tk]dating site to meet milfs [/url]

    回复
  7. [url=https://deaucongtaskeva.ga]translate words for classification essay [/url]
    [url=https://olmunwithdre.tk]best dating website for asian men [/url]

    回复
  8. [url=http://lexaprof5h.com/]lexapro generic[/url] [url=http://tadalafil204.com/]tadalafil online[/url] [url=http://viagrad6j.com/]viagra generic[/url] [url=http://prozacf5h.com/]buy generic prozac[/url]

    回复
  9. [url=https://deaucongtaskeva.ga]united states education compared to other countries essay [/url]
    [url=https://tenlipadopu.ml]is it worth dating a hot girl [/url]

    回复
  10. [url=https://deaucongtaskeva.ga]spanish essay what i did in july [/url]
    [url=https://mindbeatsebad.tk]online dating compatibilty questionnaire [/url]

    回复
  11. [url=https://ereccheby.tk]what is the difference between and effective and ineffective argument essay [/url]
    [url=https://idfaqualcaner.cf]online dating older gs [/url]

    回复
  12. [url=https://borwestnipotlue.tk]borwestnipotlue.tk[/url]
    [url=https://newsvothysking.gq]newsvothysking.gq[/url]

    回复
  13. Hi! [url=http://erectionpills365.com/]http://erectionpills365.com[/url] – labido very good web page

    回复
  14. Hi there! [url=http://erectiledysfunctionpills-365.com/]http://erectiledysfunctionpills-365.com[/url] – buy ed pills uk excellent web page

    回复
  15. [url=https://borwestnipotlue.tk]process essay how to make moroccan tagine [/url]
    [url=https://goldpagana.ga]puerto rican sex dating sites [/url]

    回复
  16. [url=https://furosemidetab.com/]generic no prescription cheap furosemoide[/url] [url=https://celebrexotc.com/]buy celebrex 200mg[/url] [url=https://prednisonetl.com/]generic prednisone over the counter[/url] [url=https://ventolin911.com/]generic for ventolin[/url] [url=https://doxycycline20.com/]doxycycline order online[/url]

    回复
  17. [url=https://gridfibsynddedo.gq]gridfibsynddedo.gq[/url]
    [url=https://jetfebvnanur.ga]jetfebvnanur.ga[/url]

    回复
  18. [url=https://viltinigit.tk]viltinigit.tk[/url]
    [url=https://linegvegem.tk]disabled woman deformed dating [/url]

    回复
  19. [url=http://propeciad7k.com/]buy propecia[/url] [url=http://prednisolonea4.com/]buy prednisolone online[/url] [url=http://cephalexin0i0.com/]cephalexin online[/url] [url=http://cialisd6j.com/]cialis generic[/url] [url=http://synthroidd6j.com/]buy generic synthroid[/url] [url=http://albuterold6j.com/]buy albuterol[/url] [url=http://vardenafilf5h.com/]generic vardenafil[/url]

    回复
  20. [url=https://gridfibsynddedo.gq]essay personality types carl jung [/url]
    [url=https://retarara.tk]retarara.tk[/url]

    回复
  21. [url=https://scanaremmaamu.tk]why should we work in teams explain essay [/url]
    [url=https://quitraveter.ml]quitraveter.ml[/url]

    回复
  22. [url=http://xenicala4.com/]xenical generic[/url] [url=http://tetracyclineby6.com/]buy generic tetracycline[/url] [url=http://viagraf5h.com/]buy viagra[/url] [url=http://levitrad7l.com/]buy levitra[/url] [url=http://prozac1s1.com/]buy generic prozac[/url] [url=http://doxycyclined6j.com/]buy doxycycline[/url] [url=http://synthroid0i0.com/]buy synthroid[/url]

    回复
  23. [url=https://doxycycline20.com/]doxycycline 200 mg tablets[/url] [url=https://valtrex24.com/]order generic valtrex online[/url] [url=https://tadalafilcia.com/]tadalafil 40 mg[/url] [url=https://doxycyclinehycl.com/]doxycycline 100mg india[/url] [url=https://avodart24.com/]avodart 1mg[/url] [url=https://celebrexotc.com/]celebrex 50[/url] [url=https://amoxicillincaps.com/]amoxicillin 500 mg[/url] [url=https://accutanrx.com/]accutane generic[/url] [url=https://prednisonester.com/]buy prednisone india[/url] [url=https://sildenafilgen.com/]buy sildenafil[/url]

    回复
  24. [url=http://accutanrx.com/]accutane generic[/url]

    回复
  25. [url=https://emomenyg.tk]readings for writers argumentative essays [/url]
    [url=https://odeswascatchfi.ga]topics on dating and relationships pocast [/url]

    回复
  26. [url=https://ereccheby.tk]ereccheby.tk[/url]
    [url=https://postwanscomplo.cf]free local adult dating apps [/url]

    回复
  27. [url=http://zithromaxf5h.com/]zithromax online[/url] [url=http://cialis204.com/]cialis generic[/url] [url=http://viagrad6j.com/]buy viagra[/url] [url=http://ventolinf5h.com/]ventolin generic[/url] [url=http://tadalafil204.com/]buy tadalafil[/url] [url=http://valtrex0i0.com/]buy valtrex online[/url] [url=http://levitra0i0.com/]cheap levitra[/url]

    回复
  28. [url=https://writemeanessay.monster]good examples of illustrative essays [/url]
    [url=https://onlinedatingsitesfree.monster]dating sites for autistic adults [/url]

    回复
  29. [url=https://gridfibsynddedo.gq]why do community service essay [/url]
    [url=https://tinglamitkeilo.cf]tinglamitkeilo.cf[/url]

    回复
  30. [url=http://prozac0i0.com/]prozac online[/url] [url=http://retinad6j.com/]buy retin-a[/url] [url=http://levitrad7l.com/]buy generic levitra[/url] [url=http://sildenafil0o.com/]sildenafil[/url] [url=http://synthroid0i0.com/]buy synthroid[/url] [url=http://cialis101.com/]cialis buy[/url] [url=http://lexaprod7k.com/]lexapro[/url]

    回复
  31. [url=https://scanaremmaamu.tk]scanaremmaamu.tk[/url]
    [url=https://ekloywarco.ga]best mobile dating sim reddit [/url]

    回复
  32. [url=http://ventolinf5h.com/]ventolin online[/url] [url=http://tadalafilly6.com/]buy tadalafil[/url] [url=http://lisinoprilf5h.com/]generic lisinopril[/url]

    回复
  33. [url=https://scanaremmaamu.tk]scanaremmaamu.tk[/url]
    [url=https://rrafexpedbing.tk]rrafexpedbing.tk[/url]

    回复
  34. [url=https://cheapessaywritinghelp.xyz]what process is used to make water clean essay [/url]
    [url=https://bestadultdatingsites.xyz]best adult dating site [/url]

    回复
  35. [url=https://emomenyg.tk]emomenyg.tk[/url]
    [url=https://metoudimam.tk]dating sites as featured on tv [/url]

    回复
  36. [url=https://conhacalboygend.cf]conhacalboygend.cf[/url]
    [url=https://limattrenttel.tk]san diego carlsbad interracial dating [/url]

    回复
  37. [url=https://writeessayforme.xyz]writeessayforme[/url]
    [url=https://kimberlymackbeautystudio.com]kimberlymackbeautystudio.com[/url]

    回复
  38. [url=https://viltinigit.tk]viltinigit.tk[/url]
    [url=https://bingmipedinsmet.ml]bingmipedinsmet.ml[/url]

    回复
  39. [url=https://scanaremmaamu.tk]scanaremmaamu.tk[/url]
    [url=https://quitraveter.ml]great online dating convo starters [/url]

    回复
  40. Howdy! [url=http://lolasix.info/]http://lolasix.info[/url] – lasix 40 mg beneficial web page

    回复
  41. Hello there! [url=http://finasteride-propecia.com/]http://finasteride-propecia.com[/url] – buy finasteride excellent internet site

    回复
  42. [url=http://sildenafild6j.com/]generic sildenafil[/url]

    回复
  43. [url=http://propeciaby6.com/]cheap propecia[/url] [url=http://valtrexd7k.com/]valtrex online[/url] [url=http://cialiso0.com/]buy cialis[/url] [url=http://cialis1s1.com/]buy cialis online[/url] [url=http://acyclovird6j.com/]cheap acyclovir[/url] [url=http://tadalafilcialiso0.com/]buy generic tadalafil[/url]

    回复
  44. [url=http://tetracyclinea4.com/]buy tetracycline online[/url] [url=http://baclofen0i0.com/]cheap baclofen[/url] [url=http://lexaproby6.com/]buy lexapro[/url] [url=http://viagrab4.com/]buy viagra online[/url]

    回复
  45. [url=https://ereccheby.tk]heidegger words open up the world linguistic turn essay paper [/url]
    [url=https://miacesstetarna.tk]miacesstetarna.tk[/url]

    回复
  46. [url=http://tetracyclineby6.com/]tetracycline online[/url]

    回复
  47. [url=https://howtowriteaessay.icu]how to use a definition in an essay [/url]
    [url=https://bestonlinedatingsites.club]bestonlinedatingsites.club[/url]

    回复
  48. [url=https://zoloft24.com/]buy zoloft 50mg[/url] [url=https://doxycyclinehycl.com/]where can i buy doxycycline over the counter[/url] [url=https://amoxicillincaps.com/]buy amoxicillin online mexico[/url] [url=https://celebrexotc.com/]how much is celebrex 200mg[/url]

    回复
  49. [url=http://cialisf5h.com/]cialis[/url] [url=http://synthroidd6j.com/]cheap synthroid[/url] [url=http://lisinopril1s1.com/]buy lisinopril online[/url] [url=http://sildenafilo0o.com/]generic sildenafil[/url] [url=http://cialisby6.com/]buy cialis[/url]

    回复
  50. [url=https://ereccheby.tk]5th grade essay formatting [/url]
    [url=https://getringsica.gq]dating site that produces the most marriages [/url]

    回复

发表评论

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