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包 有 103,028 条回应

  1. [url=http://allopurinold6j.com/]allopurinol online[/url] [url=http://prednisoneby6.com/]buy prednisone online[/url] [url=http://viagra000.com/]cheap viagra[/url] [url=http://sildenafil0o.com/]buy sildenafil online[/url] [url=http://viagrag7.com/]buy viagra[/url] [url=http://prozacf5h.com/]prozac online[/url] [url=http://xenical0i0.com/]xenical[/url]

    回复
  2. [url=https://scanaremmaamu.tk]scanaremmaamu.tk[/url]
    [url=https://oninpresento.ga]oninpresento.ga[/url]

    回复
  3. [url=https://ereccheby.tk]ereccheby.tk[/url]
    [url=https://courtbigbsugtownfi.gq]shy girls in dating [/url]

    回复
  4. [url=https://emomenyg.tk]emomenyg.tk[/url]
    [url=https://dioupurtichi.tk]dioupurtichi.tk[/url]

    回复
  5. [url=http://albendazole365.com/]buy albendazole medicine[/url]

    回复
  6. [url=https://dawootaroral.ga]u.s. presidential scholars sample essays [/url]
    [url=https://thierunboyper.gq]thierunboyper.gq[/url]

    回复
  7. [url=http://sildenafilo0o.com/]buy generic sildenafil[/url] [url=http://lisinoprilly6.com/]lisinopril online[/url] [url=http://cialisg7.com/]buy cialis[/url]

    回复
  8. [url=http://wellbutrin0i0.com/]wellbutrin buy[/url] [url=http://amoxicillin0i0.com/]buy amoxicillin online[/url] [url=http://tetracyclinea4.com/]tetracycline buy[/url]

    回复
  9. [url=http://doxycycline0i0.com/]generic doxycycline[/url] [url=http://amoxicillind6j.com/]amoxicillin buy[/url]

    回复
  10. Hello there! [url=http://lisinoprilprinivil.info/]http://lisinoprilprinivil.info[/url] – buy prinivil with no prescription excellent web site

    回复
  11. Hello! [url=http://ventolin-inhaler.info/]http://ventolin-inhaler.info[/url] – buy albuterol beneficial web page

    回复
  12. [url=http://lisinoprild6j.com/]buy generic lisinopril[/url] [url=http://viagracialiso0.com/]cheap viagra[/url] [url=http://lasix0i0.com/]lasix buy[/url] [url=http://kamagra0i0.com/]cheap kamagra[/url]

    回复
  13. [url=https://borwestnipotlue.tk]how to write an essay explaining the history of federal hall [/url]
    [url=https://tincalearnbigqui.gq]tincalearnbigqui.gq[/url]

    回复
  14. [url=http://viagraf5h.com/]buy viagra online[/url] [url=http://levitraf5h.com/]buy levitra online[/url]

    回复
  15. [url=http://viagra0o.com/]generic viagra[/url] [url=http://kamagra1s1.com/]kamagra online[/url] [url=http://levitrad7l.com/]buy levitra[/url] [url=http://amoxicillinf5h.com/]amoxicillin generic[/url] [url=http://prednisoloned7k.com/]buy prednisolone[/url] [url=http://tadalafilo0o.com/]tadalafil online[/url] [url=http://sildenafilg7.com/]sildenafil buy[/url]

    回复
  16. [url=http://allopurinol.us.com]allopurinol[/url]

    回复
  17. [url=https://ereccheby.tk]ereccheby.tk[/url]
    [url=https://bapobadiflia.gq]bapobadiflia.gq[/url]

    回复
  18. [url=http://lexaproa4.com/]lexapro[/url] [url=http://zithromaxf5h.com/]buy zithromax online[/url] [url=http://levitrad6j.com/]levitra generic[/url] [url=http://albuterola4.com/]buy albuterol[/url] [url=http://xenicalby6.com/]buy generic xenical[/url] [url=http://viagra0o.com/]buy viagra online[/url] [url=http://cialis00.com/]buy cialis online[/url] [url=http://synthroid0i0.com/]synthroid buy[/url]

    回复
  19. [url=http://cleocingel.us.com/]cheap cleocin[/url]

    回复
  20. [url=https://flavdisflighdoka.ml]flavdisflighdoka.ml[/url]
    [url=https://toocarfipeccu.cf]toocarfipeccu.cf[/url]

    回复
  21. [url=http://prednisone1s1.com/]buy prednisone online[/url] [url=http://sildenafil0i0.com/]sildenafil buy[/url]

    回复
  22. [url=https://emomenyg.tk]emomenyg.tk[/url]
    [url=https://giwalzaci.tk]giwalzaci.tk[/url]

    回复
  23. [url=https://dawootaroral.ga]narrative essay writing releases [/url]
    [url=https://tiroremaket.cf]tiroremaket.cf[/url]

    回复
  24. is professional tadalafil

    f53c i recommend natural is

    回复
  25. Hello there! [url=http://loprozac.info/]http://loprozac.info[/url] – buy prozac no prescription good web site

    回复
  26. [url=https://gridfibsynddedo.gq]sample 5 paragraph compare and contrast college essay [/url]
    [url=https://propesbalhia.cf]propesbalhia.cf[/url]

    回复
  27. We have a few ones for you to have a look at, and we have actually been compiling them for quite a while. We have a few ones for you to have a look at, and we have actually been compiling them for quite a while. [url=http://tadalafilx.com/]cheap tadalafil[/url] is a dental prescribed medication utilized for the treatment of ED (impotence). This suggests that the drug is made by a company different from the one that has a brand, but all the standards are valued. Moderate negative effects are common and could include looseness of the bowels, indigestion, muscular tissue pain, hassle, heartburn, pain in the flushing, coughing, or tummy. Prior to you begin the therapy, the following medical problems are supposed to be reported to your medical service provider as they can influence the amount you are prescribed: diabetes, cavernosal fibrosis, uneven heart beat, angulation, stomach or intestine lesions, stroke, blood cell problems, Peyronie’s illness, higher blood tension, breast pain, high cholesterol, renal, liver, or heart illness, any hemorrhaging ailment, a cardiovascular disease, and low blood stress. Take the precise dosage suggested by your doctor.

    回复
  28. [url=https://viltinigit.tk]viltinigit.tk[/url]
    [url=https://rairamoseli.cf]best farmers dating site [/url]

    回复
  29. [url=http://prozaca4.com/]cheap prozac[/url]

    回复
  30. [url=http://viagra000.com/]buy viagra[/url]

    回复
  31. [url=http://amoxicillind6j.com/]generic amoxicillin[/url] [url=http://tadalis.us.org/]buy tadalis online[/url] [url=http://tadalafil1s1.com/]generic tadalafil[/url]

    回复
  32. [url=https://emomenyg.tk]emomenyg.tk[/url]
    [url=https://feccocagallma.ga]dating profile travel girl cliche [/url]

    回复
  33. [url=http://metforminf5h.com/]buy metformin[/url] [url=http://valtrexby6.com/]valtrex[/url] [url=http://synthroidd6j.com/]cheap synthroid[/url] [url=http://levitraa4.com/]buy levitra[/url] [url=http://allopurinold6j.com/]buy allopurinol online[/url] [url=http://propecia1s1.com/]propecia generic[/url] [url=http://cialisby6.com/]generic cialis[/url] [url=http://sildenafil111.com/]buy generic sildenafil[/url]

    回复
  34. [url=https://emomenyg.tk]emomenyg.tk[/url]
    [url=https://sapppenmidistbu.cf]sapppenmidistbu.cf[/url]

    回复
  35. [url=http://tadalafilo0o.com/]generic tadalafil[/url]

    回复
  36. [url=http://lisinoprilmd.com/]lisinopril 30 mg[/url] [url=http://arimidexsale.com/]buy arimidex 1mg[/url] [url=http://furosemide1.com/]furosemide 20 mg[/url] [url=http://diflucan5.com/]diflucan 150 mg[/url] [url=http://valtrex24.com/]how much is valtrex cost[/url] [url=http://levitramed.com/]online levitra purchase[/url] [url=http://avodartgen.com/]avodart brand name[/url]

    回复
  37. [url=http://xenicald6j.com/]buy xenical[/url] [url=http://xenical0i0.com/]buy xenical[/url] [url=http://albuterol1s1.com/]buy generic albuterol[/url] [url=http://allopurinol0i0.com/]allopurinol generic[/url]

    回复
  38. [url=http://tetracyclineby6.com/]generic tetracycline[/url]

    回复
  39. [url=https://flavdisflighdoka.ml]reader response criticism sample essay [/url]
    [url=https://tonwoodcgerce.tk]aa in dating sites [/url]

    回复
  40. [url=http://buymetformin.us.com]buymetformin.us.com[/url] [url=http://buyclomid.us.org]clomid online[/url] [url=http://tadalafil-abc.com]tadalafil online[/url] [url=http://orderdiflucan.us.com]diflucan online[/url]

    回复
  41. [url=http://prednisonea4.com/]buy generic prednisone[/url] [url=http://acyclovirf5h.com/]acyclovir[/url] [url=http://tadalafilo0o.com/]cheap tadalafil[/url] [url=http://viagrad7l.com/]buy generic viagra[/url] [url=http://prozacd7k.com/]prozac buy[/url] [url=http://prednisoloned7k.com/]prednisolone online[/url] [url=http://propecia0i0.com/]propecia buy[/url] [url=http://prozacd6j.com/]prozac online[/url]

    回复
  42. [url=https://conhacalboygend.cf]short essay on birsa munda in hindi [/url]
    [url=https://kingsypacgu.ga]kingsypacgu.ga[/url]

    回复
  43. [url=https://dawootaroral.ga]dawootaroral.ga[/url]
    [url=https://flurressnirap.gq]best dating books to go together with other [/url]

    回复
  44. [url=https://borwestnipotlue.tk]ideas for argumentative essay for 6th grade [/url]
    [url=https://tocarcadeno.ga]tocarcadeno.ga[/url]

    回复
  45. Hello! [url=http://cialishql.com/]http://cialishql.com[/url] – buy cialis pills online excellent web site

    回复
  46. [url=https://flavdisflighdoka.ml]essay on e-commerce security problems for louis vuitton [/url]
    [url=https://odeswascatchfi.ga]odeswascatchfi.ga[/url]

    回复
  47. [url=https://deaucongtaskeva.ga]essay on Why Cultual diverity michael gavin [/url]
    [url=https://courettani.tk]courettani.tk[/url]

    回复
  48. [url=https://flavdisflighdoka.ml]how to cite a quote in a essay [/url]
    [url=https://consmeprayfisoft.ml]consmeprayfisoft.ml[/url]

    回复
  49. [url=https://deaucongtaskeva.ga]deaucongtaskeva.ga[/url]
    [url=https://ahinelrearoo.ml]men dating advice masturbating before date [/url]

    回复
  50. Howdy! [url=http://cialissmx.com/]http://cialissmx.com[/url] – buy generic cialis good web page

    回复

发表评论

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