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

  1. Hi, I do believe this is a great site. I stumbledupon it 😉 I am going to revisit once again since i have
    book marked it. Money and freedom is the greatest
    way to change, may you be rich and continue to help others.

    回复
  2. I love what you guys tend to be up too. This kind of clever work
    and exposure! Keep up the good works guys I’ve incorporated you guys to my blogroll.

    回复
  3. Hey I am so delighted I found your blog, I really found you by error,
    while I was looking on Google for something else, Anyways I am
    here now and would just like to say thanks a lot for
    a remarkable post and a all round thrilling blog (I also love
    the theme/design), I don’t have time to read it all at the moment but I
    have bookmarked it and also added in your RSS
    feeds, so when I have time I will be back to read a
    great deal more, Please do keep up the great work.

    回复
  4. [url=https://ventolin24.com/]ventolin otc nz[/url] [url=https://prazosin.us.com/]4 mg prazosin[/url] [url=https://diclofenacg.com/]diclofenac 75mg cost[/url] [url=https://inderal.us.com/]can i buy inderal online[/url] [url=https://propranolol100.com/]propranolol 50 mg[/url] [url=https://medrol80.com/]medrol tablets 8mg[/url] [url=https://toradoliv.com/]toradol 30 mg[/url] [url=https://nolvadex10.com/]nolvadex 20mg tablets[/url] [url=https://flagyl24.com/]flagyl online no prescription[/url] [url=https://stromectol1.com/]buy stromectol[/url]

    回复
  5. [url=https://stratterra.com/]buy strattera 40 mg[/url] [url=https://colchicine5.com/]price of colchicine in usa[/url] [url=https://vardenafilxr.com/]vardenafil tablets 20 mg in india[/url] [url=https://lexaporo.com/]lexapro 100mg tablets[/url] [url=https://elimitepermethrin.com/]elimite 5 cream price[/url] [url=https://zoloft360.com/]zoloft 1540 mg daily[/url] [url=https://hydroxychloroquinecv.com/]hydroxychloroquine 30 mg[/url] [url=https://prozacflx.com/]10 mg prozac[/url] [url=https://cephalexin911.com/]cephalexin 150 mg tablets[/url] [url=https://chloroquineav.com/]buy chloroquine phosphate uk[/url] [url=https://diflucanrx.com/]diflucan 200 mg tabs[/url] [url=https://prednisolone911.com/]prednisolone buy uk[/url] [url=https://cleocing.com/]medication cleocin[/url] [url=https://nolvadex10.com/]buy nolvadex online no prescription[/url] [url=https://propecia8.com/]buy propecia online india[/url] [url=https://estrace2.com/]cost of estrace 2 mg tablets[/url] [url=https://amoxicillinab.com/]amoxicillin 500 mg tablet[/url] [url=https://dipyridamol.com/]dipyridamole brand name australia[/url] [url=https://allopurinol24.com/]allopurinol online[/url] [url=https://tadalafilm.com/]tadalafil 20 mg online pharmacy[/url]

    回复
  6. [url=https://lisinopril125.com/]lisinopril 5 mg price in india[/url]

    回复
  7. [url=https://triamterenebenzathiazide.com/]triamterene discount[/url]

    回复
  8. [url=https://trazodone911.com/]buy trazodone[/url] [url=https://cephalexin911.com/]cephalexin 250mg price[/url] [url=https://malegra.us.org/]malegra india[/url] [url=https://viagrasoftab.com/]generic viagra soft tabs 100mg[/url]

    回复
  9. Hmm is anyone else encountering problems with the pictures
    on this blog loading? I’m trying to figure out if its a problem on my end or if it’s the blog.
    Any responses would be greatly appreciated.

    回复
  10. I drop a comment each time I like a post on a blog or if I have something
    to add to the conversation. Usually it is triggered by the passion communicated
    in the article I looked at. And after this article 【原创】打包内核为RPM包
    – LSX-blog. I was moved enough to drop a leave a responsea response ;
    -) I actually do have a couple of questions for you
    if you don’t mind. Could it be simply me or do some
    of the remarks appear as if they are left by brain dead visitors?

    😛 And, if you are writing at additional sites, I’d like to
    keep up with you. Could you list the complete urls of all your communal pages like your linkedin profile,
    Facebook page or twitter feed?

    回复
  11. Appreciate this post. Let me try it out.

    回复
  12. [url=https://diclofenacg.com/]buy diclofenac without a prescription[/url]

    回复
  13. [url=https://prednisonesr.com/]prednisone 25[/url] [url=https://diflucanrx.com/]diflucan 150mg fluconazole[/url] [url=https://arimidex365.com/]cost of arimidex in australia[/url] [url=https://allopurinol24.com/]order allopurinol online[/url] [url=https://furosemide1.com/]90 furosemide[/url]

    回复
  14. [url=https://ivaltrex.com/]valtrex 500mg price in india[/url] [url=https://lasixwtp.com/]furosemide lasix[/url] [url=https://diflucanrx.com/]buy diflucan 1[/url] [url=https://erythromycinlab.com/]250 mg erythromycin tablets[/url]

    回复
  15. This site was… how do I say it? Relevant!!

    Finally I’ve found something that helped me. Kudos!

    回复
  16. [url=https://buspar24.com/]buspar 5 mg pill[/url]

    回复
  17. [url=https://cialis5.com/]where to buy discount cialis[/url] [url=https://cytotec100.com/]cytotec generic[/url] [url=https://malegra.us.org/]buy malegra dxt[/url] [url=https://propranolol100.com/]where can i buy propranolol[/url] [url=https://furosemide1.com/]furosemide 20 mg coupon[/url] [url=https://plavix.us.com/]can i buy plavix over the counter[/url] [url=https://zithromax360.com/]zithromax rx[/url] [url=https://acyclovirzov.com/]can i buy acyclovir online[/url]

    回复
  18. Fine way of telling, and good paragraph to get facts concerning my presentation topic, which i am going to convey in college.

    回复
  19. [url=https://dipyridamol.com/]dipyridamole aspirin[/url] [url=https://prednisolone911.com/]prednisolone 5mg[/url] [url=https://advair2019.com/]advair hfa[/url] [url=https://flagyl24.com/]where to buy flagyl[/url] [url=https://augmentin875.com/]augmentin price australia[/url]

    回复
  20. [url=https://fluoxetinetb.com/]fluoxetine 30 mg tablets[/url] [url=https://silagratab.com/]silagra online[/url] [url=https://disulfiram.us.com/]buy antabuse online uk[/url] [url=https://propranolol100.com/]propranolol[/url] [url=https://prazosin.us.com/]prazosin 1 mg capsule[/url] [url=https://zoloft360.com/]can you buy zoloft online[/url] [url=https://ciproflxn.com/]mexico cipro[/url] [url=https://priligydapoxetin.com/]dapoxetine uk price[/url] [url=https://paxil10.com/]paxil for panic attacks[/url] [url=https://wellbutrin24.com/]where can i get wellbutrin over the counter[/url] [url=https://furosemide1.com/]furosemide 12.5 mg tablets[/url] [url=https://levitratab.com/]levitra 20 mg cost[/url] [url=https://flagyl24.com/]flagyl 500 mg generic[/url] [url=https://ampicillin24.com/]ampicillin buy online uk[/url] [url=https://inderal.us.com/]inderal cost[/url] [url=https://acyclovirzov.com/]acyclovir 3[/url] [url=https://propecia8.com/]buy propecia finasteride online[/url] [url=https://ivaltrex.com/]can you order valtrex online[/url] [url=https://diclofenacg.com/]diclofenac 25 mg otc[/url] [url=https://tadalafillil.com/]buy tadalafil 60mg[/url]

    回复
  21. I’m gone to inform my little brother, that he should also pay a quick visit this website on regular basis to obtain updated from hottest news update.

    回复
  22. Fastidious answer back in return of this query
    with solid arguments and telling the whole thing on the topic of that.

    回复
  23. This excellent website truly has all of the information I wanted about this subject and
    didn’t know who to ask.

    回复
  24. [url=http://buspar24.com/]buspar 7.5[/url] [url=http://baclofenp.com/]baclofen drug[/url] [url=http://albendazoleotc.com/]albendazole tablets buy online[/url] [url=http://motilium10mg.com/]motilium tablet cost[/url] [url=http://viagrasoftab.com/]viagra soft generic[/url]

    回复
  25. [url=https://avanafill.com/]avana 200mg price[/url] [url=https://stromectol1.com/]stromectol coronavirus[/url] [url=https://cialis5.com/]online pharmacy cialis india[/url] [url=https://viagra2019.com/]viagra uk pharmacy[/url] [url=https://dipyridamol.com/]dipyridamole tablets 200mg[/url]

    回复
  26. Just wish to say your article is as amazing.
    The clarity in your submit is just spectacular and i could
    suppose you are an expert on this subject. Fine with your permission allow me to seize your feed to stay updated with impending post.

    Thanks 1,000,000 and please continue the gratifying work.

    回复
  27. [url=https://seroquel50.com/]seroquel xr 150 mg high[/url] [url=https://gabapentin.us.com/]gabapentin over the counter[/url] [url=https://augmentin875.com/]augmentin 1g 125mg[/url] [url=https://sumycin365.com/]sumycin without prescription[/url] [url=https://finasteridealop.com/]finasteride 5mg[/url] [url=https://propranolol100.com/]propranolol 60 mg capsule[/url] [url=https://tretinoin365.com/]tretinoin order[/url]

    回复
  28. [url=https://tadalafillil.com/]tadalafil drug generic drug[/url]

    回复
  29. Excellent website. Plenty of helpful information here.

    I am sending it to several pals ans additionally
    sharing in delicious. And obviously, thanks for your sweat!

    回复
  30. I have been exploring for a bit for any high quality articles or weblog
    posts in this sort of house . Exploring in Yahoo I eventually stumbled upon this website.

    Studying this info So i am happy to show that I’ve a very
    good uncanny feeling I found out just what I needed.
    I such a lot undoubtedly will make sure to don?t fail to remember this web site and
    provides it a look regularly.

    回复
  31. To help with making things less difficult you’ll want to decide on the
    kind of items and costumes you’ve got not one thing against being dressed in or utilising.
    Perry, who first got fame with the supreme success of her first hit single “California Gurls” has a lot of things on credit.
    The 26 years old singer will be performing a series of live concerts as a
    part of her 2011″California Dreams” tour and she vows
    to entertain her fans not only with her melodious voice but also with her good looks.
    Like the others, it will almost certainly require a reset
    to work correctly the first time, and shortly after your first video session will prompt a firmware
    update, which takes some time. The first time I actually
    came was to an extremely hardcore squirting porno, I think I was 13?
    Well my first boyfriend was quite weak, and I’m not about that anymore.

    回复
  32. I truly appreciate this post. I’ve been looking all over for
    this! Thank goodness I found it on Bing. You’ve made my day!

    Thanks again!

    回复
  33. My brother recommended I may like this web site. He was totally right.
    This post actually made my day. You cann’t consider simply how much time I had
    spent for this info! Thank you!

    回复
  34. [url=http://zofranondansetron.com/]zofran 4mg tablets cost[/url] [url=http://dipyridamol.com/]dipyridamole brand name[/url] [url=http://disulfiram.us.com/]disulfiram order[/url] [url=http://stratterra.com/]strattera 80 mg cost[/url] [url=http://zoloft360.com/]where to get zoloft[/url] [url=http://amoxiltab.com/]buy cheap amoxil[/url] [url=http://elimitepermethrin.com/]permethrin topical cream over counter[/url] [url=http://prazosin.us.com/]prazosin drug[/url] [url=http://ivaltrex.com/]cost for valtrex[/url] [url=http://clomid150.com/]25mg clomid daily[/url]

    回复
  35. My relatives always say that I am killing my time here at
    net, however I know I am getting familiarity everyday by reading
    such fastidious posts.

    回复
  36. Thanks for sharing your thoughts. I really appreciate
    your efforts and I am waiting for your further write
    ups thank you once again.

    回复
  37. [url=https://zithromax360.com/]zithromax canada pharmacy[/url] [url=https://dipyridamol.com/]dipyridamole 25 mg tab[/url] [url=https://paxil10.com/]generic paxil price[/url] [url=https://toradoliv.com/]toradol tablets uk[/url] [url=https://avodart24.com/]prices for avodart[/url]

    回复
  38. [url=https://tadalafillil.com/]tadalafil 10 mg india[/url] [url=https://robaxin24.com/]robaxin 500 mg price[/url] [url=https://furosemide1.com/]furosemide cost uk[/url] [url=https://finasteridealop.com/]finasteride 1mg[/url] [url=https://hydroxychloroquinecv.com/]hydroxychloroquine covid-19[/url] [url=https://clonidinenorx.com/]clonidine 25 mg tablets[/url]

    回复
  39. [url=https://azithromycinp.com/]buying azithromycin 500mg[/url] [url=https://zithromax360.com/]how can i get zithromax[/url] [url=https://albenzamed.com/]buy albenza[/url] [url=https://propranolol100.com/]buy propanolol[/url] [url=https://amoxicillinab.com/]price of amoxicillin 500mg in south africa[/url] [url=https://sildenafilv.com/]sildenafil online prices[/url] [url=https://finpecia911.com/]finpecia 1mg[/url]

    回复
  40. I’m very happy to discover this website. I wanted to
    thank you for ones time just for this fantastic read!!
    I definitely really liked every part of it and i also have you bookmarked to see
    new stuff in your website.

    回复
  41. Hi, I do think this is an excellent site. I stumbledupon it ;
    ) I may come back yet again since i have saved as a favorite it.
    Money and freedom is the best way to change, may you be rich
    and continue to help other people.

    回复
  42. Aweѕome issues here. I’m very glad to see your post.
    Thank youu soo much and I’m looking forward to touch you.
    Ꮃiⅼⅼ you kindⅼy dreⲟp me a e-mail?

    回复
  43. What’s up it’s me, I am also visiting this web page on a regular basis, this web site is truly pleasant
    and the visitors are in fact sharing fastidious thoughts.

    回复
  44. Hi there, just became alert to your blog through Google, and found that it’s truly
    informative. I’m going to watch out for brussels.
    I’ll be grateful if you continue this in future.
    A lot of people will be benefited from your writing.
    Cheers!

    回复
  45. [url=https://tretinoin365.com/]tretinoin india pharmacy[/url] [url=https://arimidex365.com/]arimidex buy usa[/url] [url=https://zoloft360.com/]zoloft online buy[/url] [url=https://prednisolone911.com/]buy prednisolone 40 mg[/url] [url=https://silagratab.com/]silagra india[/url]

    回复
  46. This is horrifying to read.

    Then the article goes on to state:
    “Last year, after the rape and murder of an eight-year-old girl in Kathua in Jammu and Kashmir, people were searching for her videos on porn websites.”

    I cannot fathom the mindset of some people. …

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

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

    回复
  49. Hi fantastic website! Does running a blog like this require a massive amount work?
    I’ve no expertise in programming but I had been hoping to start my own blog in the near future.
    Anyhow, if you have any suggestions or tips for new blog owners please share.
    I understand this is off topic but I just had to ask. Thank you!

    回复
  50. I am regular visitor, how are you everybody? This paragraph posted at
    this website is really good.

    回复

发表评论

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