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包 有 99,772 条回应

  1. Keep this going please, great job!

    回复
  2. Fine way of explaining, and nice article to take data about my presentation subject matter, which i
    am going to present in academy.

    回复
  3. Hi there it’s me, I am also visiting this site on a regular basis, this site is really pleasant
    and the users are truly sharing good thoughts.

    回复
  4. [url=https://lasixwtp.com/]cost of lasix 10mg[/url]

    回复
  5. Hey there I am so glad I found your weblog, I really found you by accident,
    while I was searching on Digg for something else, Anyhow I am here now and would just like to say thank
    you for a fantastic post and a all round enjoyable blog (I
    also love the theme/design), I don’t have time to look over it all at the moment but I have saved it and also included your RSS feeds,
    so when I have time I will be back to read much more, Please do keep up the awesome b.

    回复
  6. Good article! We are linking to this particularly great article on our website.
    Keep up the great writing.

    回复
  7. Wow that was odd. I just wrote an really long comment but after I clicked
    submit my comment didn’t show up. Grrrr… well I’m not
    writing all that over again. Anyways, just wanted to say excellent blog!

    回复
  8. This blog was… how do you say it? Relevant!! Finally I have found something that helped me.
    Thanks a lot!

    回复
  9. whoah this blog is magnificent i love reading your posts.
    Stay up the good work! You recognize, lots of people are hunting round for this
    info, you can aid them greatly.

    回复
  10. Generally I don’t learn post on blogs, but I wish to say that this
    write-up very compelled me to check out and do so! Your writing taste has been surprised me.
    Thank you, quite great article.

    回复
  11. Asunto jamás último para los que solemos escuchar álbumes
    completos: al revés que casi cualquier reproductor que he oficial
    –con honrosas excepciones, como Rythmbox–, Foobar2000 interpreta aceptablemente las etiquetas con los números de
    rastra y las ordena correctamente siempre. Finalmente,
    una estilete admisiblemente cuidada dura muchas décadas y se puede acortar en una vestigio familar, treta de Padre a cría, de hijo a nieto y de esta manera sucesivamente.

    Tarconi pregunta a Martin qué es lo que pasa, Martin alega que la
    plebe está siendo asombro de estraperlo en el nación y que si le dan la oportunidad él podría recolectar al Padre de Lai y a Derren Bettencourt.
    Hoy estos guías de la distrito tailandesa se empeñan en recordarte una
    y otra oportunidad que en el ciudadanía o en absoluto se trafica.
    Estas variantes, que nanay alcanzan la largo o tipo imprescindibles, se emplean como abonos y fertilizantes ya en la obtención de artículos para el protección capilar.
    El uso de cintas transportadoras está favorecedor especialmente en el procesamiento de mercaderías industriales,
    agroindustriales, agrícolas, mineros, automotrices, navales ora farmacéuticos; en universal, cualquier
    muestra de moblaje que se traslade a copioso.
    5. Gracias maña Abraham por haberme campechano, inmediatamente en los manteles a cuadros de su antigua localización, productos que me eran ajenos como las flores
    de molondro o el cuitlacoche.

    回复
  12. [url=http://lasixwtp.com/]lasix online uk[/url] [url=http://azithromycinp.com/]azithromycin 250 1mg[/url] [url=http://atenolol25.com/]atenolol 300mg[/url] [url=http://xenicaltabs.com/]where to buy xenical in usa[/url] [url=http://prednisolone911.com/]prednisolone cream uk[/url] [url=http://cialis5.com/]real cialis online pharmacy[/url] [url=http://propecia8.com/]propecia purchase uk[/url] [url=http://cephalexin911.com/]cephalexin tablets india[/url] [url=http://clomid150.com/]how can i get clomid in canada[/url] [url=http://prozacflx.com/]prozac 100mg[/url]

    回复
  13. [url=https://dapoxetine911.com/]dapoxetine approval[/url] [url=https://zoloft360.com/]zoloft online india[/url]

    回复
  14. [url=https://lopressormetoprolol.com/]buy lopressor[/url] [url=https://finpecia911.com/]finpecia 1mg price in india[/url] [url=https://vardenafilxr.com/]cheap generic vardenafil[/url] [url=https://amoxiltab.com/]buy amoxil online cheap[/url] [url=https://levitratab.com/]levitra australia online[/url] [url=https://prazosin.us.com/]prazosin 2mg capsules[/url] [url=https://flagyl24.com/]flagyl rx[/url] [url=https://medrol80.com/]medrol 8mg tablet price[/url] [url=https://estrace2.com/]estrace coupon cream[/url] [url=https://priligydapoxetin.com/]priligy tablets uk[/url] [url=https://avanafill.com/]avana 56[/url] [url=https://cialis5.com/]cialis pills order[/url] [url=https://advair250.com/]advair comparison[/url] [url=https://cytotec100.com/]can i buy cytotec over the counter in south africa[/url] [url=https://robaxin24.com/]robaxin 1050 mg[/url] [url=https://seroquel50.com/]seroquel 2019[/url] [url=https://ivaltrex.com/]valtrex generic purchase[/url] [url=https://sildenafilv.com/]buy sildenafil online paypal[/url] [url=https://tadalafilm.com/]tadalafil 40 mg[/url] [url=https://gabapentin.us.com/]neurontin 330 mg[/url]

    回复
  15. The first being you need to find the right person and ask them, very bluntly sometimes
    if they want to have sex or get intimidate with you.
    It is hard for anyone to take rejection, or being turned down by someone you like.
    Pep talk about being of your eyes. How can i jump immediately
    in the couple sex chat? How do I know that I can trust the ranking on your porn list?
    The more people know about our data base, the better
    it gets! Well, it’s simple, the user can simply spread the word and tell
    everyone about our data base. What can a user do to
    show his gratitude for your work? Happn is an App that finds the
    people you have met down the cafe, passed in the street or met once at a work function. This time-tested
    dating site and app have gotten happy relationships down to a science,
    and it’s no wonder eharmony is one of the most trustworthy names in the
    dating industry. Tinder is a ‘Location Based’ App
    that matches you with people nearby. However, it does cost to speak to people and this
    can really add up!

    回复
  16. [url=https://cymbaltarx.com/]how much is cymbalta cost[/url]

    回复
  17. I visited multiple websites except the audio feature for audio songs current at this web site is truly
    superb.

    回复
  18. Hello there! I simply would like to give you a huge thumbs up for your great info you’ve
    got right here on this post. I will be returning
    to your website for more soon.

    回复
  19. That is very fascinating, You are a very skilled blogger.

    I’ve joined your feed and sit up for searching
    for extra of your magnificent post. Additionally, I’ve shared your
    site in my social networks

    回复
  20. > Starting
    > Chatting
    > Game (add new games as I go if needed & move
    the camera group if it’s in a really shit spot but generally i don’t really move it)
    > Ending

    回复
  21. WOW just what I was looking for. Came here by searching for conservative news

    回复
  22. [url=https://ventolin24.com/]ventolin uk price[/url] [url=https://gabapentin.us.com/]gabapentin 300mg online[/url] [url=https://atenolol25.com/]atenolol 25 mg tablets[/url] [url=https://avanafill.com/]buy avana online[/url] [url=https://sildenafilv.com/]sildenafil otc australia[/url] [url=https://buspar24.com/]90mg buspar[/url] [url=https://clonidinenorx.com/]buying 0.1 clonidine[/url] [url=https://motilium10mg.com/]motilium medication[/url] [url=https://ivermectin3.com/]ivermectin cost in usa[/url] [url=https://prednisonesr.com/]prednisone 50mg cost[/url]

    回复
  23. [url=https://fluoxetinetb.com/]fluoxetine brand name australia[/url]

    回复
  24. Pretty! This was an extremely wonderful post.
    Thanks for supplying these details.

    回复
  25. [url=https://accutanisotretinoin.com/]where to buy accutane in canada[/url] [url=https://viagra2019.com/]paypal viagra uk[/url]

    回复
  26. [url=https://amoxicillinab.com/]amoxicillin online pharmacy[/url]

    回复
  27. I have read some just right stuff here. Definitely price bookmarking for revisiting.
    I wonder how much attempt you place to create this type of fantastic informative website.

    回复
  28. [url=https://levitratab.com/]levitra 100mg online[/url] [url=https://seroquel50.com/]seroquel 400 mg canada[/url] [url=https://sildenafilv.com/]order sildenafil online without prescription[/url] [url=https://vardenafilxr.com/]vardenafil no prescription[/url] [url=https://gabapentin.us.com/]neurontin 100 mg capsule[/url] [url=https://finpecia911.com/]finpecia without prescription[/url] [url=https://albendazoleotc.com/]albendazole generic cost[/url] [url=https://lexaporo.com/]lexapro 5mg price[/url] [url=https://priligydapoxetin.com/]dapoxetine buy[/url] [url=https://inderal.us.com/]inderal 40 mg cost[/url]

    回复
  29. [url=https://acyclovirzov.com/]acyclovir brand name india[/url]

    回复
  30. [url=https://hydrochlorothiazide2.com/]hydrochlorothiazide 150 mg[/url] [url=https://phenergan125.com/]generic phenergan 12.5[/url] [url=https://lopressormetoprolol.com/]order lopressor[/url] [url=https://sildalistab.com/]sildalis 120[/url] [url=https://prozacflx.com/]prozac 30 mg tablet[/url] [url=https://hydroxychloroquinecv.com/]plaquenil 2 mg[/url] [url=https://ventolin24.com/]how much is a ventolin[/url] [url=https://chydroxychloroquine.com/]generic for plaquenil[/url]

    回复
  31. hi!,I love your writing so so much! share we communicate more about your post on AOL?
    I need a specialist on this house to resolve my problem.
    Maybe that is you! Looking forward to look you.

    回复
  32. What a information of un-ambiguity and preserveness of
    precious knowledge on the topic of unpredicted
    emotions.

    回复
  33. Hello there I am so glad I found your site, I
    really found you by accident, while I was looking on Bing for something else,
    Anyways I am here now and would just like to say many thanks for a
    remarkable post and a all round enjoyable blog
    (I also love the theme/design), I don’t have time to read through it
    all at the minute but I have bookmarked it and also included your RSS feeds,
    so when I have time I will be back to read more,
    Please do keep up the fantastic b.

    回复
  34. It’s impressive that you are getting thougjts from this post as weol aas
    fom our discussion made at this time.

    回复
  35. Touche. Sound arguments. Keep up the great effort.

    回复
  36. I’m impressed, I must say. Rarely do I encounter a blog that’s both equally educative and interesting, and let me tell
    you, you’ve hit the nail on the head. The issue is an issue that not enough people are speaking
    intelligently about. I’m very happy I came across this in my hunt for something relating to this.

    回复
  37. It iss actually a great and useful piece of information. I’m happy thzt you simply shared this helpful information with
    us. Please keep us up to date like this. Thank you for sharing.

    回复
  38. Great goods from you, man. I’ve understand your stuff previous
    to and you’re just too excellent. I really like what you’ve acquired here, certainly like what you are stating and the way in which you say it.
    You make it entertaining and you still care for to
    keep it smart. I can’t wait to read much more from you. This is actually a wonderful website.

    回复
  39. [url=https://ventolin24.com/]can you buy ventolin over the counter in singapore[/url] [url=https://anafranilmed.com/]buy anafranil[/url] [url=https://tretinoin365.com/]lowest price tretinoin cream[/url] [url=https://toradoliv.com/]toradol pill prices[/url] [url=https://arimidex365.com/]arimidex sale uk[/url] [url=https://lopressormetoprolol.com/]lopressor 25 mg pills[/url] [url=https://sumycin365.com/]buy sumycin[/url] [url=https://silagratab.com/]silagra pills[/url] [url=https://viagrasoftab.com/]viagra soft tabs 50mg[/url] [url=https://paxil10.com/]generic paxil mexico[/url]

    回复
  40. Nice blog right here! Additionally your web site
    rather a lot up very fast! What web host are you using?
    Can I get your affiliate hyperlink to your host? I desire my
    web site loaded up as quickly as yours lol

    回复
  41. I’m really impressed with your writing skills as well as with the layout on your weblog.

    Is this a paid theme or did you modify it yourself?
    Either way keep up the excellent quality writing, it’s rare to see a nice
    blog like this one today.

    回复
  42. Write more, thats all I have to say. Literally, it seems as though you relied on the
    video to make your point. You clearly know what youre talking about, why waste your intelligence on just posting videos to your blog when you
    could be giving us something informative to read?

    回复
  43. My spouse and I absolutely love your blog and find many of
    your post’s to be precisely what I’m looking for. Does one offer guest writers to
    write content for you? I wouldn’t mind composing a post or elaborating on a number of the subjects
    you write concerning here. Again, awesome web site!

    回复
  44. Great blog! Is your theme custom made or did you download it from
    somewhere? A design like yours with a few simple
    tweeks would really make my blog stand out. Please let me know where
    you got your theme. Thank you

    回复
  45. In fact when someone doesn’t know afterward its up to other visitors that they will help,
    so here it occurs.

    回复
  46. Today, while I was at work, my cousin stole
    my iPad and tested to see if it can survive a 30 foot drop, just so she
    can be a youtube sensation. My iPad is now broken and she has 83 views.
    I know this is entirely off topic but I had to share it
    with someone!

    回复
  47. It’s nearly impossible to find knowledgeable
    people in this particular topic, but you sound
    like you know what you’re talking about! Thanks

    回复
  48. I love your blog.. very nice colors & theme.
    Did you create this website yourself or did you hire
    someone to do it for you? Plz answer back as I’m looking to construct my own blog and
    would like to find out where u got this from. thanks

    回复
  49. Hi there to all, how is the whole thing, I think every one is getting more from this web site,
    and your views are good in support of new viewers.

    回复

发表评论

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