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包 有 100,114 条回应

  1. [url=https://levitra36.com/]levitra australia[/url] [url=https://atorvastatin.us.com/]atorvastatin[/url] [url=https://priligytab.com/]priligy price[/url] [url=https://ciprofloxacin24.com/]buy ciprofloxacin online[/url] [url=https://buspar.us.com/]buspar generic[/url]

    回复
  2. [url=http://avanatop.com/]avana 146[/url]

    回复
  3. [url=https://isotretinoinacutane.com/]buy accutane[/url]

    回复
  4. Great postings. Kudos. [url=https://canadianpharmaciescubarx.com/]northwestpharmacy[/url]
    [url=https://www.ostrov-kenguru.ru/board/viewtopic.php?f=102&t=1938946]y405yrp z11cey[/url] 03fc1a0

    回复
  5. [url=https://vermox.us.org/]buy vermox online[/url]

    回复
  6. Perfectly voiced really. . [url=https://canadianonlinepharmacytrust.com/]canadian pharmacies that ship to us[/url]
    [url=http://littlebikers.messageboard.nl/viewtopic.php?f=2&t=1104097]g56vzd8 u780ln[/url] ab390e5

    回复
  7. College girl lived sexy strip tease

    >myfreewebca> girls sex videos striptease>mobil> porn newteenwebcamshow
    desiree exploited college girls vidoe>

    回复
  8. Highly descriptive blog, I loved that bit. Will there be a part 2?

    回复
  9. [url=https://hydroxychloroquine.us.org/]hydroxychloroquine buy[/url] [url=https://furosemidelasix.com/]lasix furosemide[/url] [url=https://atorvastatin.us.com/]generic lipitor 10 mg[/url] [url=https://finpecia911.com/]finpecia 1 mg[/url] [url=https://buspar.us.com/]buspar drug[/url] [url=https://priligytab.com/]buy priligy online[/url] [url=https://silagra24.com/]generic silagra[/url] [url=https://doxycycline36.com/]doxycycline 100mg tabs[/url] [url=https://xenical24.com/]xenical generic[/url] [url=https://sildenafil36.com/]buy sildenafil tablets online[/url] [url=https://amoxicillinz.com/]amoxicillin pills[/url] [url=https://tadalafilsale.com/]generic tadalafil for sale[/url] [url=https://dapoxetinetabs.com/]dapoxetine hcl[/url] [url=https://cymbaltaduloxetine.com/]cymbalta tablet[/url] [url=https://ciprofloxacin24.com/]ciprofloxacin 500mg canada[/url] [url=https://avanatop.com/]avana online[/url] [url=https://singulair.us.org/]singulair prescription coupon[/url] [url=https://chloroquine.us.com/]chloroquine over the counter[/url] [url=https://wellbutrinbupropion.com/]buy wellbutrin[/url] [url=https://valtrex.us.org/]valtrex 1000 mg[/url]

    回复
  10. Good knowledge. Thanks a lot! [url=https://canadianpharmaciescubarx.com/]canadian pharmacies that ship to us[/url]
    [url=http://xn--l1adgmc.xn—-7sbzamhkhkpaf1p.xn--p1ai/viewtopic.php?f=8&t=2210156]d939lqq a34myu[/url] 127c03f

    回复
  11. [url=http://hydroxychloroquine.us.org/]buy hydroxychloroquine online[/url]

    回复
  12. Thank you. A good amount of forum posts.
    [url=https://canadianpharmaceuticalsonlinerx.com/]canadian pharmacies-24h[/url]
    [url=http://communicationfascination.com/give-compliments/#comment-39035]g11ubia a20ngn[/url] 127c03f

    回复
  13. [url=https://atorvastatin.us.com/]buy lipitor[/url] [url=https://furosemidelasix.com/]buy furosemide[/url] [url=https://dapoxetinetabs.com/]dapoxetine pills[/url] [url=https://amoxicillinz.com/]amoxicillin 500 mg[/url]

    回复
  14. Seriously tons of great info! [url=https://canadianpharmaceuticalsonlinerx.com/]online pharmacies canada[/url]
    [url=http://rstc.co.id/berita-411-jam-kerja-pns-pada-bulan-ramadhan-2015.html]w72hmso n87qff[/url] 6_ce2d4

    回复
  15. Appreciate it, A lot of data!
    [url=https://canadianpharmaceuticalsonlinerx.com/]canadian pharmacy[/url]
    [url=http://www.buletinulauto.ro/noutati-auto/196-anul-2019-poate-reprezenta-un-%C3%AEnceput-de-criz%C4%83-imobiliar%C4%83.html]q782rsx c96xei[/url] fc1a0ab

    回复
  16. [url=http://vermox.us.org/]vermox plus[/url] [url=http://baclofen24.com/]baclofen otc 10mg[/url] [url=http://hydroxychloroquine.us.org/]generic for plaquenil[/url] [url=http://xenical24.com/]pharmacy xenical[/url] [url=http://avanatop.com/]buy avana[/url] [url=http://kamagratb.com/]kamagra pill[/url] [url=http://erythromycinz.com/]erythromycin 4 cream[/url]

    回复
  17. [url=https://chloroquine.us.com/]chloroquine 150[/url] [url=https://amoxicillinz.com/]amoxicillin 500mg[/url] [url=https://amitriptyline365.com/]amitriptyline 50 mg[/url] [url=https://isotretinoinacutane.com/]buy accutane[/url] [url=https://wellbutrinbupropion.com/]generic wellbutrin 450[/url]

    回复
  18. [url=https://wellbutrinbupropion.com/]buy wellbutrin[/url]

    回复
  19. Please let me know if you’re looking for a article author
    for your weblog. You have some really good articles and I think I would be
    a good asset. If you ever want to take some of the load off,
    I’d really like to write some material for your blog in exchange for a link
    back to mine. Please shoot me an email if interested. Kudos!

    回复
  20. Truly loads of useful data! [url=https://viaonlinebuyntx.com/]canadian pharmacies-24h[/url]
    [url=http://www.belcanto.com.cn/message.asp]w937ksy j260xv[/url] 90e5c2b

    回复
  21. Seriously lots of superb facts. [url=https://canadianpharmaciescubarx.com/]canadian pharmacies that ship to us[/url]
    [url=http://www.anime-fortress.com/viewtopic.php?p=820633#820633]z51valn w25woy[/url] 1a0ab39

    回复
  22. [url=http://doxycycline36.com/]can i buy doxycycline over the counter in south africa[/url] [url=http://celebrexcelecoxib.com/]buy celebrex[/url] [url=http://amoxicillinz.com/]amoxicillin cephalexin[/url] [url=http://tadalafilsale.com/]generic cialis tadalafil[/url] [url=http://singulair.us.org/]singulair price[/url] [url=http://cymbaltaduloxetine.com/]buy cymbalta[/url] [url=http://finpecia911.com/]finpecia 1 mg[/url] [url=http://sildenafil36.com/]buy sildenafil online us[/url]

    回复
  23. [url=https://atorvastatin.us.com/]lipitor 40 mg[/url] [url=https://valtrex.us.org/]buy generic valtrex online[/url] [url=https://amitriptyline365.com/]buy amitriptyline tablets[/url] [url=https://levitra36.com/]buy generic levitra[/url] [url=https://clonidinenorx.com/]clonidine medication[/url] [url=https://ciprofloxacin24.com/]ciprofloxacin 50 mg[/url] [url=https://furosemidelasix.com/]buy lasix[/url]

    回复
  24. [url=https://celebrexcelecoxib.com/]buy celebrex[/url]

    回复
  25. I think that everything typed made a lot of sense. But, what about this?
    what if you added a little content? I am not saying
    your content isn’t solid., but suppose you added a post title that grabbed folk’s attention? I mean 【原创】打包内核为RPM包 –
    LSX-blog is kinda boring. You should peek at Yahoo’s front page and see how they write article headlines to grab
    people to open the links. You might try adding a video or a picture
    or two to grab readers excited about everything’ve written. In my opinion,
    it could make your posts a little bit more interesting.

    回复
  26. I savor, result in I discovered exactly what I used to be having a look for.
    You’ve ended my four day lengthy hunt! God Bless you man. Have a nice day.
    Bye

    回复
  27. [url=https://singulair.us.org/]drug singulair[/url]

    回复
  28. You explained it really well. [url=https://canadianpharmaceuticalsonlinerx.com/]canada drug pharmacy[/url]
    [url=https://demo2.webasyst.com/blog/webasyst/say-hello-to-shop-script-7/#comment12]x299seb n93oez[/url] c03fc1a

    回复
  29. Useful write ups. Kudos! [url=https://canadianonlinepharmacytrust.com/]canada pharmaceutical online ordering[/url]
    [url=https://demo2.webasyst.com/blog/webasyst/say-hello-to-shop-script-7/#comment22]n78nraw k17bjk[/url] e5_5618

    回复
  30. Nicely put, Regards. [url=https://canadianpharmacyntv.com/]online pharmacy india[/url]
    [url=http://hollymariecombs.info/forum/viewtopic.php?f=19&t=1922298]p96wunr w94ucl[/url] e5c2ba6

    回复
  31. @Dantesmagician Dantes Smiles Happy Show LoveMagic TheMagician Love ILoveyoy Real RealMagician Performance Billionaire Miracle Live HD Facebook Instagram Twitter YouTube Disney Lego Legoland Google Sony Samsung Philips Nokia Mercedes Bmv Nike

    回复
  32. My partner and I stumbled over here from a different page and thought I might check things out.
    I like what I see so i am just following you. Look forward to going over your web page again.

    回复
  33. [url=https://sildenafil36.com/]buy sildenafil india online[/url]

    回复
  34. Hey there, I think your site might be having browser compatibility
    issues. When I look at your blog in Opera, it looks fine but when opening in Internet Explorer,
    it has some overlapping. I just wanted to give
    you a quick heads up! Other then that, amazing blog!

    回复
  35. [url=https://isotretinoinacutane.com/]accutane tablets buy online[/url] [url=https://avanatop.com/]buy avana 100 mg[/url] [url=https://ventolinh.com/]ventolin online nz[/url] [url=https://celebrexcelecoxib.com/]celebrex generic[/url] [url=https://priligytab.com/]priligy usa[/url]

    回复
  36. Information clearly used!! [url=https://viaonlinebuyntx.com/]online canadian pharmacy[/url]
    [url=http://hollymariecombs.info/forum/viewtopic.php?f=19&t=1923255]y86fynd y49ziw[/url] 0e5c2ba

    回复
  37. Position effectively utilized.! [url=https://canadianonlinepharmacytrust.com/]canadian pharmaceuticals online[/url]
    [url=http://samp.pro/index.php?/topic/1000225-snapshot-rpg/page__st__700__gopid__4778245#entry4778245]v45chje o68fsz[/url] ba6415f

    回复
  38. [url=http://furosemidelasix.com/]diuretic furosemide[/url] [url=http://silagra24.com/]silagra 100 mg india[/url]

    回复
  39. Very well voiced indeed! ! [url=https://canadianpharmaceuticalsonlinerx.com/]drugs for sale[/url]
    [url=http://christmas.regenbogenwiese.net/index.php?guestbook-entry/4145098-p856zjz-i96vtj/]p856zjz i96vtj[/url] 127c03f

    回复
  40. You really make it seem so easy with your presentation but I find this matter to
    be really something that I think I would never understand.
    It seems too complex and extremely broad for me. I’m looking forward for
    your next post, I’ll try to get the hang of it!

    回复
  41. [url=http://erythromycinz.com/]erythromycin online[/url] [url=http://clonidinenorx.com/]clonidine hcl 0.1[/url] [url=http://ventolinh.com/]buy ventolin[/url] [url=http://dapoxetinetabs.com/]buy dapoxetine[/url]

    回复
  42. [url=https://tadalafilsale.com/]tadalafil online[/url] [url=https://doxycycline36.com/]doxycycline 1000mg[/url] [url=https://atorvastatin.us.com/]lipitor 100mg[/url] [url=https://kamagratb.com/]buy kamagra usa[/url] [url=https://ventolinh.com/]ventolin purchase[/url]

    回复
  43. hacklink satın al ve porno izlemek için en iyi site.

    回复
  44. [url=https://chloroquine.us.com/]buy chloroquine[/url] [url=https://buspar.us.com/]buspar 30 mg[/url] [url=https://priligytab.com/]where to buy priligy[/url]

    回复
  45. If some one needs to be updated with hottest technologies
    after that he must be visit this web site and be up to date daily.

    回复
  46. [url=https://erythromycinz.com/]benzoyl peroxide erythromycin gel[/url]

    回复
  47. [url=http://singulair.us.org/]singulair where to buy[/url] [url=http://sildenafil36.com/]sildenafil tablets[/url]

    回复
  48. Not enough doctors know what is antiviral medication for flu Kaletra for coronavirus antiviral treatment for the flu. antivirala drugs for influenza, can antiviral meds make you fat. does yeast infection treatment affect pregnancy [url=https://krimforum.net/viewtopic.php?f=1&t=309012]an antiviral drug abc[/url] 1e8_328 , can i buy antiviral medication for flu over the counter [url=http://coronaviruscure.me/#]coronavirus cure[/url] what does antiviral medicine do for shingles [url=http://www.stetuskop.com/showthread.php?p=357335#post357335]are antiviral drugs safe during pregnancy sva[/url].

    回复
  49. [url=https://furosemidelasix.com/]furosemide medication[/url] [url=https://wellbutrinbupropion.com/]buy wellbutrin[/url] [url=https://singulair.us.org/]buy singulair[/url] [url=https://dapoxetinetabs.com/]dapoxetine pills[/url] [url=https://avanatop.com/]avana 31311[/url] [url=https://baclofen24.com/]baclofen tabs[/url] [url=https://finpecia911.com/]finpecia online pharmacy[/url] [url=https://atorvastatin.us.com/]generic lipitor[/url]

    回复
  50. It’s going to be finish of mine day, however before
    ending I am reading this impressive piece of writing to improve my knowledge.

    回复

发表评论

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