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

  1. [url=http://metformin360.com/]metformin er 500 mg[/url]

    回复
  2. [url=http://diflucan5.com/]can you buy diflucan over the counter in usa[/url]

    回复
  3. It’s very easy to find out any matter on web as compared to books, as
    I found this piece of writing at this web site.

    回复
  4. Hi! [url=http://canadianpharmacy.ru.com/]http://canadianpharmacy.ru.com[/url] – #1 online pharmacy very good internet site

    回复
  5. [url=http://diflucan10.com/]buy diflucan pill[/url] [url=http://furosemide1.com/]buy furosemide[/url] [url=http://accutanrx.com/]buy accutane nz[/url] [url=http://lisinoprilhcz.com/]lisinopril 10 mg pill[/url] [url=http://sildenafilgen.com/]sildenafil 100mg[/url]

    回复
  6. [url=https://sildenafilvg.com/]buy sildenafil viagra[/url] [url=https://lisinoprilhcz.com/]generic lisinopril 40 mg[/url] [url=https://zoloft24.com/]zoloft prices 100mg[/url] [url=https://furosemidelab.com/]furosemide 40 mg[/url] [url=https://albendazole365.com/]albendazole online usa[/url] [url=https://levitramed.com/]levitra generic[/url] [url=https://albuterol365.com/]can i buy albuterol from canada[/url]

    回复
  7. [url=https://vardenafill.com/]buy vardenafil online[/url] [url=https://ventolin911.com/]can i buy ventolin over the counter australia[/url] [url=https://diflucan10.com/]buy diflucan[/url] [url=https://doxycycline20.com/]how to get doxycycline 100mg[/url] [url=https://furosemide1.com/]furosemide 80 tablet[/url] [url=https://albendazole365.com/]albendazole 400 mg[/url] [url=https://diflucan5.com/]where to buy diflucan over the counter[/url]

    回复
  8. [url=https://accutanrx.com/]buy accutane[/url] [url=https://clomid150.com/]clomid pills[/url] [url=https://doxycycline20.com/]doxycycline generic[/url] [url=https://metformin360.com/]buy metformin[/url] [url=https://avodart24.com/]cheap buy generic avodart[/url] [url=https://prednisonetl.com/]prednisone pill 20 mg[/url] [url=https://celebrexotc.com/]buy celebrex[/url] [url=https://ventolin911.com/]ventolin 4mg uk[/url]

    回复
  9. Hi all, here every person is sharing such know-how, therefore it’s pleasant to
    read this webpage, and I used to go to see this web
    site all the time.

    回复
  10. I’m curious to find out what blog platform you’re using?
    I’m experiencing some minor security problems with my latest website and I
    would like to find something more safeguarded.
    Do you have any suggestions?

    回复
  11. [url=https://diflucan5.com/]where to purchase diflucan[/url] [url=https://zoloft24.com/]zoloft 50 mg[/url] [url=https://avodart24.com/]avodart mexico[/url] [url=https://metformin360.com/]metformin 500 mg[/url] [url=https://ventolin911.com/]can i buy ventolin over the counter australia[/url]

    回复
  12. Hi! [url=http://rxpharmacy.ru.com/]http://rxpharmacy.ru.com[/url] – best online pharmacies very good website

    回复
  13. [url=https://avodartgen.com/]avodart for sale online[/url] [url=https://sildenafilvg.com/]sildenafil 20 mg[/url] [url=https://ventolin911.com/]ventolin drug[/url] [url=https://arimidexsale.com/]buy arimidex[/url] [url=https://prednisonetl.com/]generic prednisone over the counter[/url] [url=https://doxycyclinehycl.com/]doxycycline hyc[/url] [url=https://avodart24.com/]avodart[/url] [url=https://diflucan5.com/]diflucan otc where to buy[/url] [url=https://albendazole365.com/]albendazole 400mg[/url] [url=https://fluoxetine1000.com/]fluoxetine brand canada[/url] [url=https://furosemidelab.com/]furosemide 40 mg price[/url] [url=https://prednisonester.com/]prednisone 1 mg tablet[/url] [url=https://sildenafilgen.com/]sildenafil price[/url] [url=https://albuterol365.com/]albuterol 0.83 mg[/url] [url=https://lisinoprilmd.com/]lisinopril 10[/url] [url=https://celebrexotc.com/]buy celebrex uk[/url] [url=https://amoxicillincaps.com/]how much is amoxicillin[/url] [url=https://vardenafill.com/]vardenafil cost canada[/url] [url=https://metformin360.com/]metformin 500 mg[/url] [url=https://zoloft24.com/]zoloft 25[/url]

    回复
  14. Hi would you mind letting me know which web host
    you’re utilizing? I’ve loaded your blog in 3 completely different browsers and I must say this blog loads a lot faster then most.
    Can you suggest a good web hosting provider at a reasonable price?

    Many thanks, I appreciate it!

    回复
  15. You’ve made some decent points there. I checked on the web for more information about
    the issue and found most people will go along with your views on this
    web site.

    回复
  16. [url=https://prednisonetl.com/]prednisone 50 tablet[/url] [url=https://furosemidelab.com/]furosemide 40 mg[/url] [url=https://accutanrx.com/]buy accutane[/url] [url=https://ventolin911.com/]how much is a ventolin[/url] [url=https://lisinoprilmd.com/]lisinopril 10 mg tablet[/url] [url=https://doxycycline20.com/]doxycycline 110 mg[/url] [url=https://levitramed.com/]best online pharmacy generic levitra[/url] [url=https://fluoxetine1000.com/]fluoxetine uk price[/url] [url=https://tadalafilcia.com/]tadalafil 10 mg tablet[/url] [url=https://doxycyclinehycl.com/]vibramycin 100mg[/url]

    回复
  17. [url=https://furosemide1.com/]buy furosemide 20 mg[/url] [url=https://doxycyclinehycl.com/]buy doxycycline online australia[/url] [url=https://vardenafill.com/]vardenafil order[/url] [url=https://doxycycline20.com/]doxycycline 100mg[/url] [url=https://avodartgen.com/]avodart generic online[/url]

    回复
  18. [url=https://sildenafilvg.com/]sildenafil citrate 100mg pills[/url] [url=https://albendazole365.com/]albendazole drug[/url] [url=https://diflucan10.com/]diflucan coupon[/url] [url=https://lisinoprilhcz.com/]lisinopril 5 mg price[/url] [url=https://avodart24.com/]avodart[/url] [url=https://furosemide1.com/]furosemide 40 mg price[/url] [url=https://vardenafill.com/]vardenafil cost[/url]

    回复
  19. [url=http://lisinoprilhcz.com/]buy lisinopril uk[/url] [url=http://tadalafilcia.com/]tadalafil 20mg coupon[/url] [url=http://accutanrx.com/]generic accutane online[/url] [url=http://doxycyclinehycl.com/]where can i purchase doxycycline[/url] [url=http://sildenafilgen.com/]buy sildenafil online[/url] [url=http://arimidexsale.com/]how to get arimidex[/url]

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

    回复
  21. I have been browsing online more than 4 hours today, yet
    I never found any interesting article like yours. It is pretty worth enough for me.
    In my opinion, if all site owners and bloggers made
    good content as you did, the net will be much more useful than ever before.

    回复
  22. [url=http://celebrexotc.com/]can i buy celebrex over the counter[/url] [url=http://zoloft24.com/]brand name zoloft price[/url] [url=http://lisinoprilhcz.com/]lisinopril tablet[/url] [url=http://clomid150.com/]clomid cost[/url] [url=http://metformin360.com/]metformin 500 mg[/url] [url=http://accutanrx.com/]accutane generic[/url] [url=http://albuterol365.com/]albuterol 90 mcg[/url] [url=http://levitramed.com/]levitra generic[/url] [url=http://furosemidelab.com/]furosemide 40 mg pill[/url] [url=http://prednisonester.com/]cortisol prednisone[/url] [url=http://tadalafilcia.com/]tadalafil tablets 20 mg[/url] [url=http://doxycycline20.com/]doxycycline 163[/url] [url=http://ventolin911.com/]buy ventolin online cheap no prescription[/url] [url=http://albendazole365.com/]albendazole 400 mg[/url] [url=http://diflucan10.com/]diflucan 200 mg[/url] [url=http://furosemidetab.com/]furosemide pill[/url] [url=http://sildenafilgen.com/]sildenafil singapore[/url] [url=http://amoxicillincaps.com/]amoxicillin 500mg price canada[/url] [url=http://furosemide1.com/]buy furosemide 20 mg online[/url] [url=http://avodartgen.com/]avodart tablet price[/url]

    回复
  23. Howdy! [url=http://rxpharmacy.ru.com/]http://rxpharmacy.ru.com[/url] – online pharmacy without prescription great web page

    回复
  24. [url=http://prednisonetl.com/]canadian pharmacy prednisone[/url] [url=http://celebrexotc.com/]buy celebrex canadian pharmacy[/url] [url=http://furosemide1.com/]furosemide 80 mg tablet[/url] [url=http://doxycyclinehycl.com/]can i buy doxycycline over the counter uk[/url] [url=http://zoloft24.com/]zoloft 200 mg daily[/url]

    回复
  25. [url=http://furosemide1.com/]furosemide price uk[/url] [url=http://sildenafilgen.com/]how to buy sildenafil[/url] [url=http://albuterol365.com/]generic albuterol[/url]

    回复
  26. [url=https://celebrexotc.com/]buy celebrex[/url] [url=https://furosemidelab.com/]furosemide online no prescription[/url] [url=https://albuterol365.com/]otc albuterol[/url] [url=https://accutanrx.com/]50 mg accutane[/url] [url=https://vardenafill.com/]vardenafil online india[/url] [url=https://albendazole365.com/]albendazole cost[/url]

    回复
  27. Hello there! [url=http://pharmacyonline.ru.com/]http://pharmacyonline.ru.com[/url] – online pharmacies in usa without perscription great web site

    回复
  28. Hey there would you mind letting me know which webhost you’re working with?
    I’ve loaded your blog in 3 different internet browsers and I must
    say this blog loads a lot faster then most. Can you suggest
    a good web hosting provider at a fair price? Kudos, I appreciate it!

    回复
  29. [url=https://furosemide1.com/]furosemide 120 mg[/url] [url=https://ventolin911.com/]ventolin medication[/url] [url=https://valtrex24.com/]buy valtrex online[/url] [url=https://accutanrx.com/]accutane drug[/url] [url=https://metformin360.com/]metformin 1000mg[/url] [url=https://furosemidetab.com/]furosemide generic[/url] [url=https://avodartgen.com/]avodart buy canada[/url] [url=https://sildenafilvg.com/]sildenafil 20 mg[/url] [url=https://avodart24.com/]avodart[/url] [url=https://prednisonetl.com/]prednisone otc[/url] [url=https://prednisonester.com/]prednisone 10mg[/url] [url=https://lisinoprilhcz.com/]lisinopril 40 mg coupon[/url] [url=https://diflucan5.com/]diflucan 150 mg[/url] [url=https://furosemidelab.com/]furosemide tabs 20mg[/url] [url=https://celebrexotc.com/]celebrex generic cost[/url] [url=https://diflucan10.com/]diflucan medication[/url] [url=https://albendazole365.com/]where to get albendazole[/url] [url=https://zoloft24.com/]zoloft generic brand[/url] [url=https://doxycycline20.com/]doxycycline 100mg tablet[/url] [url=https://levitramed.com/]purchase generic levitra[/url]

    回复
  30. Rollex11 – Uberwin.club [url=http://www.uberwin.club/rollex11/]More info!..[/url]

    回复
  31. [url=http://accutanrx.com/]accutane order[/url] [url=http://lisinoprilhcz.com/]lisinopril generic[/url] [url=http://sildenafilgen.com/]cheap sildenafil from india[/url] [url=http://amoxicillincaps.com/]amoxicillin 500mg capsules price[/url] [url=http://albendazole365.com/]albendazole 400 mg online[/url] [url=http://avodart24.com/]avodart[/url] [url=http://furosemidelab.com/]furosemide cream[/url] [url=http://sildenafilvg.com/]20mg sildenafil[/url] [url=http://zoloft24.com/]zoloft over the counter[/url] [url=http://albuterol365.com/]how to get albuterol cheap[/url]

    回复
  32. I love it whenever people come together and share thoughts.

    Great blog, continue the good work!

    回复
  33. I’ve been browsing on-line greater than 3
    hours these days, yet I by no means discovered any attention-grabbing
    article like yours. It’s lovely value enough for me. Personally, if
    all website owners and bloggers made excellent content
    as you probably did, the internet will probably be a lot more helpful than ever before.

    回复
  34. Hey! This is my first comment here so I just wanted to give a quick shout out and tell
    you I truly enjoy reading through your blog posts.

    Can you suggest any other blogs/websites/forums that deal with the
    same topics? Many thanks!

    回复
  35. [url=http://vardenafill.com/]vardenafil generic price[/url]

    回复
  36. Hi! [url=http://rxpharmacy.ru.com/]http://rxpharmacy.ru.com[/url] – online pharmacy beneficial site

    回复
  37. [url=https://prednisonetl.com/]prednisone price[/url]

    回复
  38. [url=http://sildenafilgen.com/]buy sildenafil tablets[/url] [url=http://doxycyclinehycl.com/]buy doxycycline[/url] [url=http://arimidexsale.com/]arimidex generic[/url]

    回复
  39. [url=https://fluoxetine1000.com/]fluoxetine[/url] [url=https://amoxicillincaps.com/]amoxicillin 500 mg price[/url] [url=https://sildenafilgen.com/]best sildenafil pills[/url] [url=https://arimidexsale.com/]best price for arimidex[/url] [url=https://vardenafill.com/]buy vardenafil[/url] [url=https://accutanrx.com/]accutane online uk[/url]

    回复

发表评论

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