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

  1. [url=https://prednisone100.com/]prednisone 10mg no prescription[/url] [url=https://viagra250.com/]cheapest viagra prices[/url] [url=https://sildenafil10.com/]buy sildenafil pills[/url] [url=https://buspar1.com/]buspar from canadian pharmacy[/url] [url=https://atenolol911.com/]atenolol 5mg[/url]

    回复
  2. [url=http://antabused6j.com/]buy antabuse[/url] [url=http://ventolind6j.com/]buy ventolin online[/url]

    回复
  3. [url=http://cleocingel.us.com/]buy generic cleocin[/url] [url=http://cialis000.com/]buy generic cialis[/url] [url=http://lasixly6.com/]buy lasix[/url] [url=http://albuterol0i0.com/]buy albuterol[/url] [url=http://viagra204.com/]viagra[/url] [url=http://albuterola4.com/]buy generic albuterol[/url] [url=http://lexaprod7k.com/]buy lexapro[/url]

    回复
  4. [url=http://doxycycline3.com/]buy doxycycline from canada[/url]

    回复
  5. [url=http://allopurinol24.com/]buy allopurinol[/url]

    回复
  6. [url=https://tretinoin24.com/]can i buy tretinoin online[/url] [url=https://retina100.com/]retin a 0.05[/url] [url=https://atenolol911.com/]35 mg atenolol[/url] [url=https://viagra250.com/]cheap viagra online canadian pharmacy[/url] [url=https://tadalafil8.com/]tadalafil 20 mg[/url]

    回复
  7. [url=http://tadalafilly6.com/]buy generic tadalafil[/url] [url=http://amoxicillind6j.com/]amoxicillin generic[/url] [url=http://metformin0i0.com/]cheap metformin[/url] [url=http://tadalis.us.org/]tadalis generic[/url] [url=http://levitrad6j.com/]buy levitra online[/url] [url=http://prozacd6j.com/]prozac buy[/url] [url=http://lexaprof5h.com/]lexapro online[/url] [url=http://viagraly6.com/]buy viagra[/url]

    回复
  8. [url=http://valtrexf5h.com/]buy valtrex[/url] [url=http://cialis101.com/]generic cialis[/url] [url=http://valtrex0i0.com/]buy valtrex[/url] [url=http://cialis204.com/]buy cialis[/url] [url=http://prozac1s1.com/]buy prozac online[/url] [url=http://cialis000.com/]buy cialis[/url] [url=http://ventolin1s1.com/]buy ventolin[/url] [url=http://viagraly6.com/]buy viagra online[/url]

    回复
  9. [url=http://prednisoned6j.com/]buy prednisone[/url] [url=http://kamagraa4.com/]buy generic kamagra[/url] [url=http://lisinoprilly6.com/]buy lisinopril online[/url] [url=http://tadalafilcialiso0.com/]tadalafil buy[/url]

    回复
  10. tcn [url=https://cbdoil51.com/#]benefits of hemp oil[/url]

    回复
  11. [url=https://colchicine100.com/]colchicine 0.6[/url] [url=https://sildenafil30.com/]sildenafil 100mg[/url] [url=https://metformin365.com/]metformin 1000 mg[/url]

    回复
  12. wglcrg vape shop europe vsaazn buy ecigarette uk

    回复
  13. [url=http://ventolinf5h.com/]ventolin generic[/url] [url=http://zithromaxd6j.com/]zithromax buy[/url]

    回复
  14. [url=http://baclofen0i0.com/]buy baclofen[/url] [url=http://albuterol0i0.com/]albuterol generic[/url]

    回复
  15. [url=http://viagra250.com/]cheap viagra[/url] [url=http://prednisone100.com/]can you buy prednisone online[/url] [url=http://cialis500.com/]best price for daily cialis[/url] [url=http://motilium2019.com/]motilium price[/url] [url=http://tretinoin24.com/]buy tretinoin[/url]

    回复
  16. peh [url=https://cbdhempoil2020.com/#]cbd pure hemp oil[/url]

    回复
  17. [url=https://colchicine100.com/]colchicine 0.6 mg[/url] [url=https://doxycycline3.com/]doxycycline buy online usa[/url] [url=https://sildenafil30.com/]order sildenafil[/url]

    回复
  18. szp [url=https://cbd-oil11.com/#]cbd hemp[/url]
    gos [url=https://cbd-oil11.com/#]optivida hemp oil[/url]

    回复
  19. vbz [url=https://cbdoil33.com/#]pure cbd oil[/url] mkj [url=https://cbdoil33.com/#]cbd oil vs hemp oil[/url]
    xdy [url=https://cbdoil33.com/#]hemp oil benefits[/url]

    回复
  20. kvp [url=https://cbdhempoil2020.com/#]cbd oils[/url] bhv [url=https://cbdhempoil2020.com/#]cbd oil florida[/url]
    vcc [url=https://cbdhempoil2020.com/#]benefits of hemp oil for humans[/url]

    回复
  21. jwu [url=https://cbdoil33.com/#]benefits of cbd oil[/url]

    回复
  22. szc [url=https://cbd-oil11.com/#]what is hemp oil[/url]

    回复
  23. [url=http://vardenafild6j.com/]buy vardenafil[/url] [url=http://viagrad6j.com/]buy viagra[/url] [url=http://lasixf5h.com/]buy lasix[/url] [url=http://albuterolf5h.com/]albuterol buy[/url]

    回复
  24. [url=https://atenolol911.com/]atenolol 25 mg tablet[/url] [url=https://cialis500.com/]cialis coupon 20mg[/url] [url=https://retina100.com/]retin a[/url] [url=https://prednisone100.com/]medication prednisone 10mg[/url] [url=https://tadalafil8.com/]tadalafil 20 mg[/url]

    回复
  25. [url=https://sildenafil10.com/]sildenafil 25 mg buy[/url] [url=https://viagra250.com/]where to get viagra online[/url] [url=https://retina100.com/]retin a 01 cream[/url] [url=https://tretinoin24.com/]tretinoin 01[/url] [url=https://prednisone100.com/]prednisone cream[/url]

    回复
  26. [url=http://cialisn1p.com]generic cialis[/url]

    回复
  27. [url=http://allopurinold6j.com/]buy allopurinol online[/url] [url=http://synthroidd6j.com/]buy generic synthroid[/url]

    回复
  28. [url=http://tetracyclinef5h.com/]buy generic tetracycline[/url]

    回复
  29. iqaomz smok mini coils wrzrod e cigarettes shop uk

    回复
  30. [url=http://buspar1.com/]buspar 20 mg[/url] [url=http://viagra250.com/]buy viagra online cheap[/url] [url=http://cialis500.com/]discount coupon cialis[/url] [url=http://tadalafil8.com/]canadian pharmacy tadalafil 20mg[/url] [url=http://atenolol911.com/]atenolol[/url]

    回复
  31. [url=http://doxycycline3.com/]doxycycline tablets for sale[/url] [url=http://allopurinol24.com/]buy allopurinol 100mg online[/url] [url=http://colchicine100.com/]colchicine 0.6 mg tablet[/url] [url=http://sildenafil30.com/]can i buy sildenafil over the counter in uk[/url]

    回复
  32. [url=https://buspar1.com/]5mg buspar[/url] [url=https://prednisone100.com/]buy prednisone online[/url] [url=https://viagra250.com/]cheap viagra[/url] [url=https://retina100.com/]generic retin a cream[/url] [url=https://tadalafil8.com/]tadalafil 20mg price[/url]

    回复
  33. vsapen strawberry cookie butter e juice ndcmur dtl vaping

    回复
  34. uwvzdb electronic cigarette not working xhpmix mtl vaping

    回复
  35. [url=https://retina100.com/]retin a[/url]

    回复
  36. Fine information. Many thanks! [url=https://safeonlinecanadian.com/]canadian pharcharmy[/url]

    回复
  37. [url=http://metformin365.com/]metformin 1000 mg[/url] [url=http://sildenafil30.com/]how to get sildenafil prescription[/url] [url=http://doxycycline3.com/]buy doxycycline from canada[/url]

    回复
  38. [url=http://cialisd9z.com]http://www.cialisd9z.com[/url]

    回复
  39. [url=http://prozacd7k.com/]buy prozac[/url] [url=http://xenicala4.com/]xenical online[/url] [url=http://sildenafilf5h.com/]buy sildenafil online[/url] [url=http://tadalafil1s1.com/]buy tadalafil[/url]

    回复
  40. [url=https://sildenafil10.com/]sildenafil 50 mg tablet[/url] [url=https://prednisone100.com/]order prednisone without prescription[/url] [url=https://motilium2019.com/]motilium[/url] [url=https://cialis500.com/]2.5 mg cialis cost[/url] [url=https://tadalafil8.com/]tadalafil cost canada[/url]

    回复
  41. sos [url=https://cbd-oil11.com/#]cbd oil side effects[/url]
    amj [url=https://cbd-oil11.com/#]cbd oil benefits[/url]

    回复
  42. Hello, good site viagra online pharmacy

    回复
  43. [url=https://buspar1.com/]buspar medication[/url] [url=https://prednisone100.com/]prednisone 10 mg tablet[/url] [url=https://atenolol911.com/]2 atenolol[/url] [url=https://cialis500.com/]cialis 5mg in canada[/url] [url=https://retina100.com/]retin a[/url]

    回复
  44. [url=http://motilium2019.com/]motilium[/url] [url=http://tadalafil8.com/]tadalafil tablets 60mg[/url] [url=http://viagra250.com/]where to buy viagra in us[/url] [url=http://tretinoin24.com/]tretinoin cream price in india[/url] [url=http://cialis500.com/]cialis coupon[/url]

    回复
  45. ogq [url=https://cbd-oil11.com/#]cbd oil in canada[/url]

    回复
  46. [url=http://doxycycline3.com/]doxycycline 500 mg capsules[/url]

    回复
  47. [url=http://metformin365.com/]metformin[/url]

    回复
  48. [url=http://ventolinf5h.com/]ventolin[/url] [url=http://cephalexin0i0.com/]buy cephalexin online[/url] [url=http://acyclovird6j.com/]buy generic acyclovir[/url] [url=http://cephalexind6j.com/]generic cephalexin[/url] [url=http://tadalafilly6.com/]tadalafil online[/url]

    回复

Vormoomytut进行回复 取消回复

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