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

  1. [url=https://motilium2019.com/]where can you buy motilium[/url] [url=https://sildenafil10.com/]sildenafil 50 mg[/url] [url=https://prednisone100.com/]cost of prednisone 20mg[/url] [url=https://retina100.com/]retin a cream online uk[/url] [url=https://viagra250.com/]cheap viagra canada[/url] [url=https://buspar1.com/]buspar 15 mg pill[/url] [url=https://tadalafil8.com/]tadalafil 20 mg[/url]

    回复
  2. [url=https://sildenafil30.com/]sildenafil 50mg tablets[/url]

    回复
  3. Thanks! Fantastic information. [url=https://viaonlinebuymsn.com/]order viagra without prescription[/url] [url=https://canadianpharmacycom.com/]no 1 canadian pharcharmy online[/url] [url=https://viaonlinebuyntx.com/]canada drug[/url] [url=https://ciaonlinebuyntx.com/]cialis generic[/url] [url=https://viagrabestbuyrx.com/]canadian pharmacies-24h[/url] [url=https://buymodafinilntx.com/]provigil vs nuvigil[/url]

    回复
  4. [url=http://ventolin0i0.com/]ventolin buy[/url] [url=http://prednisone0i0.com/]buy generic prednisone[/url] [url=http://xenical1s1.com/]xenical generic[/url] [url=http://ventolind6j.com/]ventolin[/url] [url=http://albuterola4.com/]buy generic albuterol[/url] [url=http://synthroid0i0.com/]generic synthroid[/url]

    回复
  5. [url=https://sildenafil10.com/]sildenafil 100mg uk[/url] [url=https://retina100.com/]retin a 0.05 buy online[/url] [url=https://prednisone100.com/]prednisone 10 mg[/url] [url=https://cialis500.com/]cialis 5 mg discount coupon[/url] [url=https://buspar1.com/]buspar medication[/url]

    回复
  6. qzzmdm valaryian tank zdquct cosmic fog the shocker review

    回复
  7. [url=http://buspar1.com/]buspar medicine[/url] [url=http://cialis500.com/]genuine cialis price[/url]

    回复
  8. udq [url=https://cbdoil51.com/#]hemp oil[/url] eqf [url=https://cbdoil51.com/#]cbd oil side effects[/url]
    qms [url=https://cbdoil51.com/#]cbd oil canada[/url]

    回复
  9. [url=http://metformin365.com/]metformin pill[/url] [url=http://sildenafil30.com/]sildenafil buy usa[/url] [url=http://colchicine100.com/]colchicine[/url] [url=http://allopurinol24.com/]buy allopurinol[/url] [url=http://doxycycline3.com/]doxycycline buy canada[/url]

    回复
  10. oxa [url=https://cbdoil51.com/#]side effects of hemp oil[/url]

    回复
  11. [url=https://prednisone100.com/]prednisone 10mg tabs[/url] [url=https://tadalafil8.com/]buy tadalafil online paypal[/url] [url=https://motilium2019.com/]buy motilium nz[/url] [url=https://cialis500.com/]cialis coupon[/url] [url=https://buspar1.com/]buspar pill[/url]

    回复
  12. xyb [url=https://cbd-oil11.com/#]where to buy cbd oil[/url]
    wvl [url=https://cbd-oil11.com/#]hemp oil extract[/url]

    回复
  13. byc [url=https://cbdoil51.com/#]cbd oil prices[/url]
    peg [url=https://cbdoil51.com/#]cbd oil dosage[/url]

    回复
  14. [url=http://allopurinol24.com/]buy allopurinol[/url] [url=http://sildenafil30.com/]sildenafil[/url] [url=http://colchicine100.com/]colchicine pills for sale[/url] [url=http://metformin365.com/]metformin generic[/url]

    回复
  15. [url=https://metformin365.com/]metformin 500mg[/url]

    回复
  16. pnk [url=https://cbd-oil11.com/#]cbd oil for sale walmart[/url]

    回复
  17. [url=http://cialis500.com/]cialis 10mg coupon[/url] [url=http://buspar1.com/]buspar 90 mg daily[/url] [url=http://sildenafil10.com/]sildenafil 50 mg generic[/url]

    回复
  18. [url=http://albuterold6j.com/]albuterol generic[/url] [url=http://cialis204.com/]generic cialis[/url] [url=http://lasixly6.com/]buy lasix online[/url] [url=http://prozacf5h.com/]cheap prozac[/url] [url=http://cialisd7k.com/]buy cialis online[/url] [url=http://lasix1s1.com/]lasix buy[/url] [url=http://xenicalby6.com/]xenical buy[/url] [url=http://valtrexf5h.com/]buy valtrex[/url] [url=http://prednisolonegenericbuy.com/]prednisolone buy[/url]

    回复
  19. [url=http://kamagraby6.com/]buy kamagra[/url] [url=http://lexaprod7k.com/]buy lexapro online[/url] [url=http://prednisonea4.com/]buy prednisone[/url] [url=http://lisinoprilf5h.com/]buy lisinopril online[/url] [url=http://xenical1s1.com/]xenical generic[/url] [url=http://xenicald6j.com/]generic xenical[/url]

    回复
  20. [url=http://tadalafil8.com/]tadalafil 20 mg[/url]

    回复
  21. [url=https://sildenafil10.com/]sildenafil over the counter australia[/url] [url=https://atenolol911.com/]atenolol 25[/url] [url=https://viagra250.com/]viagra 100mg pills[/url] [url=https://motilium2019.com/]motilium prescription[/url] [url=https://cialis500.com/]cialis canada over the counter[/url]

    回复
  22. [url=http://prednisone100.com/]prednisone generic[/url] [url=http://buspar1.com/]buspar generic[/url] [url=http://viagra250.com/]cheap viagra canada[/url] [url=http://tadalafil8.com/]tadalafil 20 mg[/url] [url=http://tretinoin24.com/]buy tretinoin[/url]

    回复
  23. [url=http://phenergan24.com/]where can i buy phenergan[/url] [url=http://synthroid911.com/]where to buy synthroid[/url] [url=http://valtrex100.com/]buy valtrex without prescription[/url]

    回复
  24. [url=http://ventolin0i0.com/]cheap ventolin[/url] [url=http://sildenafil0o.com/]cheap sildenafil[/url] [url=http://prozacd6j.com/]buy prozac[/url] [url=http://sildenafilly6.com/]buy sildenafil online[/url] [url=http://allopurinol0i0.com/]buy allopurinol online[/url] [url=http://cialis204.com/]cialis online[/url] [url=http://synthroidd6j.com/]synthroid[/url] [url=http://viagrao0o.com/]cheap viagra[/url] [url=http://metformin0i0.com/]metformin[/url]

    回复
  25. qld [url=https://cbdoil33.com/#]cbd oil dosage[/url] kap [url=https://cbdoil33.com/#]cbd oil for sale walmart[/url]
    nqs [url=https://cbdoil33.com/#]nutiva hemp oil[/url]

    回复
  26. Good posts. Thanks. [url=https://safeonlinecanadian.com/]canadian viagra[/url] [url=https://ciaonlinebuymsn.com/]canadian pharmacies without an rx[/url]

    回复
  27. xfp [url=https://cbdoil33.com/#]buy cbd[/url]

    回复
  28. txxfmn wismec sinuous v80 vhohdj baby prince rba

    回复
  29. [url=http://prednisone100.com/]prednisone 3 tablets daily[/url] [url=http://buspar1.com/]buspar pill[/url] [url=http://retina100.com/]retin a[/url] [url=http://cialis500.com/]cialis discount coupon[/url] [url=http://tretinoin24.com/]tretinoin 0.01[/url]

    回复
  30. [url=http://phenergan24.com/]phenergan tablets[/url]

    回复
  31. tnj [url=https://cbdoil51.com/#]cbd oil vs hemp oil[/url]

    回复
  32. You actually explained it exceptionally well! [url=https://safeonlinecanadian.com/]cialis canada[/url] [url=https://canadianpharmacyntv.com/]drugs from canada with prescription[/url] [url=https://canadianpharmacycom.com/]northwest pharmaceuticals canada[/url] [url=https://viagrabestbuyrx.com/]canadian online pharmacy[/url] [url=https://canadianpharmaciescubarx.com/]canadian drugs[/url]

    回复
  33. zbgadw uk vape dwkmja uk ecig stores

    回复
  34. [url=http://colchicine100.com/]buy colchicine without prescription[/url]

    回复
  35. edg [url=https://cbdhempoil2020.com/#]strongest cbd oil for sale[/url] jpi [url=https://cbdhempoil2020.com/#]cbd pure hemp oil[/url]

    回复
  36. [url=https://atenolol911.com/]cost of atenolol 25 mg[/url]

    回复
  37. [url=http://lexaproby6.com/]lexapro[/url] [url=http://metforminf5h.com/]buy metformin online[/url]

    回复
  38. [url=http://tadalafil8.com/]tadalafil 20 mg[/url] [url=http://buspar1.com/]buspar pill[/url] [url=http://tretinoin24.com/]best tretinoin cream[/url] [url=http://motilium2019.com/]buy motilium 10mg[/url] [url=http://sildenafil10.com/]sildenafil 50 mg cost[/url]

    回复
  39. [url=http://cephalexin0i0.com/]cephalexin buy[/url] [url=http://retinad6j.com/]retin-a[/url] [url=http://albuterol1s1.com/]cheap albuterol[/url] [url=http://viagracialiso0.com/]viagra buy[/url] [url=http://levitraa4.com/]cheap levitra[/url] [url=http://tadalafil000.com/]buy tadalafil[/url] [url=http://zithromaxd6j.com/]buy zithromax[/url] [url=http://sildenafil000.com/]cheap sildenafil[/url]

    回复
  40. [url=http://viagracialiso0.com/]buy viagra[/url] [url=http://doxycycline0i0.com/]doxycycline generic[/url] [url=http://cialis0i0.com/]cialis online[/url]

    回复
  41. mnlvxt anarchist vape juice aorsup vaping tips for beginners

    回复
  42. [url=https://cialis500.com/]cialis 20mg coupon[/url] [url=https://atenolol911.com/]atenolol online uk[/url] [url=https://tadalafil8.com/]tadalafil 5mg tablets price[/url] [url=https://tretinoin24.com/]tretinoin 0.05 cream[/url] [url=https://prednisone100.com/]buy prednisone online[/url]

    回复
  43. [url=https://tadalafil8.com/]tadalafil 20 mg[/url] [url=https://cialis500.com/]cialis 20 mg coupon[/url] [url=https://viagra250.com/]buy viagra uk pharmacy[/url] [url=https://retina100.com/]cheapest retin a cream[/url] [url=https://tretinoin24.com/]how to get tretinoin prescription[/url]

    回复
  44. [url=http://sildenafil0i0.com/]sildenafil[/url] [url=http://sildenafil000.com/]buy sildenafil[/url] [url=http://cialisg8.com/]generic cialis[/url]

    回复
  45. [url=http://xenical0i0.com/]buy xenical[/url] [url=http://tetracycline1s1.com/]generic tetracycline[/url] [url=http://cephalexin0i0.com/]cephalexin buy[/url] [url=http://albuterolly6.com/]albuterol buy[/url] [url=http://viagrad6j.com/]viagra online[/url] [url=http://valtrexd7k.com/]buy valtrex online[/url]

    回复
  46. [url=https://retina100.com/]retin a 0.025[/url] [url=https://viagra250.com/]cheap viagra for sale[/url] [url=https://prednisone100.com/]buy prednisone online[/url] [url=https://tadalafil8.com/]buy tadalafil 20[/url] [url=https://atenolol911.com/]medication atenolol 25 mg[/url]

    回复
  47. jvo [url=https://cbdoil33.com/#]cbd oil canada[/url] wol [url=https://cbdoil33.com/#]buy cbd oil[/url]
    mdm [url=https://cbdoil33.com/#]cbd oil cost[/url]

    回复
  48. dwg [url=https://cbd-oil11.com/#]organic hemp oil[/url]
    sco [url=https://cbd-oil11.com/#]walgreens cbd oil[/url]

    回复
  49. fzg [url=https://cbdhempoil2020.com/#]cbd oil benefits[/url]

    回复
  50. [url=http://atenolol911.com/]atenolol 50mg prescription cost[/url]

    回复

rerSpupeaccourf进行回复 取消回复

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