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包 有 31,023 条回应

  1. Cheers! Plenty of write ups!
    [url=https://canadianpharmacyopen.com/]canada pharmacies online prescriptions[/url]

    回复
  2. [url=http://atenolol911.com/]atenolol 10 mg[/url] [url=http://tadalafil8.com/]tadalafil 20 mg tablet cost[/url] [url=http://cialis500.com/]buy cialis 5mg daily use[/url] [url=http://buspar1.com/]buspar medication[/url] [url=http://motilium2019.com/]motilium generic[/url]

    回复
  3. [url=http://sildenafil10.com/]sildenafil sale uk[/url]

    回复
  4. [url=https://metformin365.com/]metformin pill[/url] [url=https://allopurinol24.com/]buy allopurinol 300 mg[/url]

    回复
  5. [url=http://doxycycline3.com/]doxycycline price uk[/url] [url=http://colchicine100.com/]colchicine[/url] [url=http://allopurinol24.com/]allopurinol tablet brand name[/url] [url=http://metformin365.com/]metformin over the counter[/url]

    回复
  6. ect [url=https://cbd-oil11.com/#]charlottes web cbd oil[/url]

    回复
  7. aus [url=https://cbdoil33.com/#]hemp oil[/url]

    回复
  8. [url=http://sildenafil30.com/]generic sildenafil 20 mg[/url]

    回复
  9. [url=http://sildenafil30.com/]where can i get sildenafil[/url] [url=http://colchicine100.com/]how much is generic colchicine[/url] [url=http://doxycycline3.com/]how much is doxycycline[/url] [url=http://allopurinol24.com/]allopurinol 300 tablet[/url] [url=http://metformin365.com/]metformin 500 mg tablet[/url]

    回复
  10. [url=http://tadalafil000.com/]buy tadalafil online[/url] [url=http://cialisb4.com/]buy generic cialis[/url] [url=http://lexaprod7k.com/]lexapro buy[/url] [url=http://lisinoprilly6.com/]lisinopril online[/url] [url=http://sildenafilf5h.com/]buy sildenafil online[/url] [url=http://cialisd6j.com/]cialis generic[/url]

    回复
  11. elz [url=https://cbdhempoil2020.com/#]cbd oil florida[/url] fkh [url=https://cbdhempoil2020.com/#]buy cbd oil[/url]
    ojd [url=https://cbdhempoil2020.com/#]side effects of hemp oil[/url]

    回复
  12. ccnwve best mouth to lung vape kit aielis vgod nic salt

    回复
  13. [url=http://tadalafil8.com/]tadalafil 20mg india[/url] [url=http://prednisone100.com/]10 mg prednisone tablets[/url] [url=http://buspar1.com/]35 buspar[/url] [url=http://atenolol911.com/]atenolol 30 mg[/url]

    回复
  14. [url=http://cialis500.com/]average price of cialis[/url] [url=http://retina100.com/]retin a 0.05 cream cost[/url] [url=http://atenolol911.com/]atenolol 50[/url] [url=http://tadalafil8.com/]tadalafil 20 mg[/url] [url=http://prednisone100.com/]prednisone cost canada[/url]

    回复
  15. [url=http://zithromaxf5h.com/]buy zithromax[/url] [url=http://viagrad7l.com/]viagra[/url] [url=http://ventolind6j.com/]ventolin[/url] [url=http://vardenafild6j.com/]buy vardenafil[/url] [url=http://albuterold6j.com/]albuterol online[/url]

    回复
  16. [url=http://tetracycline0i0.com/]buy tetracycline online[/url] [url=http://viagrad6j.com/]viagra generic[/url] [url=http://prednisolonef5h.com/]prednisolone generic[/url] [url=http://cialis0i0.com/]cialis generic[/url] [url=http://lexaproa4.com/]buy lexapro online[/url] [url=http://amoxicillin0i0.com/]generic amoxicillin[/url]

    回复
  17. [url=https://retina100.com/]buy generic retin a cream[/url] [url=https://prednisone100.com/]prednisone price in india[/url] [url=https://atenolol911.com/]atenolol 25mg cost[/url] [url=https://buspar1.com/]buspar medicine[/url] [url=https://sildenafil10.com/]sildenafil 50 mg coupon[/url]

    回复
  18. nqbjkx cloud chasing kits kdiggk yogi salt
    nic

    回复
  19. [url=http://cialis500.com/]discount cialis 5mg[/url] [url=http://retina100.com/]retin a 0.05 cream price[/url] [url=http://atenolol911.com/]atenolol 50 mg cost[/url] [url=http://tadalafil8.com/]tadalafil 20 mg[/url] [url=http://buspar1.com/]buspar brand name[/url]

    回复
  20. [url=https://synthroid911.com/]can i buy synthroid over the counter[/url] [url=https://femaleviagra2019.com/]female viagra[/url] [url=https://propranolol100.com/]propranolol 10 mg[/url] [url=https://phenergan24.com/]phenergan 25mg[/url] [url=https://lipitor24.com/]lipitor purchase[/url]

    回复
  21. pisgyj x baby rba nqepdj vaporesso gen mod

    回复
  22. [url=https://retina100.com/]retin a 01 cream[/url] [url=https://tretinoin24.com/]tretinoin gel[/url] [url=https://motilium2019.com/]motilium[/url] [url=https://prednisone100.com/]10 mg prednisone daily[/url] [url=https://tadalafil8.com/]tadalafil 20 mg[/url]

    回复
  23. [url=https://motilium2019.com/]motilium purchase online[/url] [url=https://retina100.com/]retin a[/url] [url=https://atenolol911.com/]atenolol 50 price[/url] [url=https://tretinoin24.com/]buy tretinoin[/url] [url=https://cialis500.com/]cialis cost in usa[/url] [url=https://viagra250.com/]cheap viagra canada[/url] [url=https://prednisone100.com/]price of prednisone tablets[/url]

    回复
  24. [url=http://sildenafil10.com/]sildenafil 50[/url] [url=http://cialis500.com/]cialis 5mg coupon[/url] [url=http://motilium2019.com/]motilium usa[/url] [url=http://viagra250.com/]best viagra brand in canada[/url] [url=http://prednisone100.com/]prednisone 10mg[/url]

    回复
  25. [url=https://cialis500.com/]cialis 5 mg discount coupon[/url]

    回复
  26. pecptf ecig wholesale uk hbpiii uk e cig store

    回复
  27. Hello, good site online compounding pharmacy

    回复
  28. [url=http://colchicine100.com/]colchicine 0.6 mg[/url] [url=http://allopurinol24.com/]buy allopurinol 300 mg online uk[/url] [url=http://metformin365.com/]cheapest metformin 500 mg[/url]

    回复
  29. [url=https://retina100.com/]buy retin a 05 online[/url] [url=https://tadalafil8.com/]buy generic tadalafil 20mg[/url] [url=https://prednisone100.com/]prednisone without rx[/url] [url=https://buspar1.com/]buspar medication[/url]

    回复
  30. [url=https://retina100.com/]retin a gel coupon[/url]

    回复
  31. Helpful forum posts. With thanks! [url=https://viaonlinebuymsn.com/]viagra without a doctor prescription price[/url] [url=https://viaonlinebuyntx.com/]canadian pharmacies without an rx[/url] [url=https://canadianpharmacyopen.com/]canada pharmacy online[/url]

    回复
  32. zha [url=https://cbd-oil11.com/#]cbd oil in canada[/url]
    lbl [url=https://cbd-oil11.com/#]cbd hemp oil walmart[/url]

    回复
  33. krkssk yami vapor icy trio lgczby mods uk

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

    回复
  35. You reported it effectively. [url=https://canadianpharmacycom.com/]canada pharmacies online prescriptions[/url]

    回复
  36. wdg [url=https://cbdoil51.com/#]cbd oil prices[/url] uvr [url=https://cbdoil51.com/#]pure cbd oil[/url]
    iom [url=https://cbdoil51.com/#]best cbd oil for pain[/url]

    回复
  37. xnq [url=https://cbdoil51.com/#]buy cbd[/url]

    回复
  38. [url=http://tetracycline0l1.com]tetracycline to treat seroma [/url]

    回复
  39. [url=http://cialis500.com/]cialis 20mg coupon[/url] [url=http://tretinoin24.com/]tretinoin cream where to buy uk[/url] [url=http://retina100.com/]retin a 005[/url] [url=http://tadalafil8.com/]cialis tadalafil[/url] [url=http://viagra250.com/]buy cheap viagra[/url] [url=http://sildenafil10.com/]sildenafil in india[/url] [url=http://prednisone100.com/]cheap generic prednisone[/url]

    回复
  40. zla [url=https://cbdoil51.com/#]buy cbd oil[/url]
    inf [url=https://cbdoil51.com/#]optivida hemp oil[/url]

    回复
  41. [url=http://colchicine100.com/]price colchicine 0.6 mg[/url] [url=http://metformin365.com/]can i buy metformin over the counter in canada[/url] [url=http://sildenafil30.com/]sildenafil 100 mexico[/url] [url=http://allopurinol24.com/]buy allopurinol[/url]

    回复
  42. [url=https://prednisone100.com/]prednisone prescription cost[/url] [url=https://tretinoin24.com/]tretinoin cream[/url] [url=https://tadalafil8.com/]tadalafil 20 mg[/url] [url=https://buspar1.com/]buspar 15 mg[/url] [url=https://atenolol911.com/]atenolol otc[/url]

    回复
  43. wbu [url=https://cbdoil33.com/#]hemp oil benefits[/url] eyi [url=https://cbdoil33.com/#]buy cbd new york[/url]
    egk [url=https://cbdoil33.com/#]cbd oil for sale[/url]

    回复
  44. [url=http://motilium2019.com/]motilium[/url] [url=http://sildenafil10.com/]sildenafil 50mg canada[/url] [url=http://tadalafil8.com/]tadalafil 20mg lowest price[/url] [url=http://prednisone100.com/]prednisone 10 mg price[/url] [url=http://buspar1.com/]buspar generic[/url]

    回复
  45. [url=http://sildenafil30.com/]sildenafil[/url] [url=http://colchicine100.com/]cheapest colchicine generic no prescription[/url] [url=http://metformin365.com/]metformin[/url] [url=http://doxycycline3.com/]medication doxycycline 100mg[/url]

    回复
  46. wos [url=https://cbdoil33.com/#]cbd oil side effects[/url]

    回复
  47. [url=http://tadalafilf5h.com/]tadalafil generic[/url] [url=http://lisinoprild6j.com/]lisinopril generic[/url] [url=http://cialiso0o.com/]cialis buy[/url] [url=http://sildenafilg8.com/]buy sildenafil[/url] [url=http://cialiso0.com/]cialis online[/url]

    回复
  48. [url=http://motilium2019.com/]buy motilium uk[/url] [url=http://atenolol911.com/]atenolol 50 mg online[/url] [url=http://tadalafil8.com/]tadalafil 20 mg[/url] [url=http://retina100.com/]retin a[/url] [url=http://viagra250.com/]cheap canadian generic viagra[/url]

    回复
  49. rgsezv french dude gjkjga vaporizer store uk

    回复
  50. [url=https://sildenafil10.com/]sildenafil prescription uk[/url] [url=https://viagra250.com/]cheap viagra online[/url] [url=https://prednisone100.com/]medicine prednisone 5mg[/url] [url=https://atenolol911.com/]atenolol[/url] [url=https://cialis500.com/]cialis coupon[/url]

    回复

MedeEmuse进行回复 取消回复

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