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包 有 81,957 条回应

  1. Useful info. Fortunate me I found your website by chance,
    and I am surprised why this twist of fate didn’t came about earlier!

    I bookmarked it.

    回复
  2. [url=http://hydroxychlorothiazide.com/]hydrochlorothiazide lisinopril[/url] [url=http://amitriptyline24.com/]amitriptyline prescription uk[/url] [url=http://domperidone.us.com/]motilium otc usa[/url] [url=http://hydroxychloroquine.us.com/]plaquenil tabs[/url]

    回复
  3. xxx Sexe 1945335690

    回复
  4. Hi my friend! I wish to say that this post is amazing,
    great written and come with approximately all significant infos.
    I’d like to look more posts like this .

    回复
  5. [url=https://flomax.us.com/]flomax generic cost[/url]

    回复
  6. I read this piece of writing fully about the resemblance of hottest and
    preceding technologies, it’s remarkable article.

    回复
  7. [url=http://amitriptyline24.com/]can you buy amitriptyline over the counter usa[/url] [url=http://hydroxychlorothiazide.com/]hydrochlorothiazide 25 mg tablet[/url] [url=http://cephalexin365.com/]cephalexin 5 mg[/url] [url=http://prazosin.us.com/]prazosin hcl[/url]

    回复
  8. [url=http://malegra.us.org/]buy malegra[/url] [url=http://cephalexin365.com/]cephalexin 500 mg[/url] [url=http://hydroxychloroquinecv.com/]hydroxychloroquine 5 mg[/url] [url=http://attarax.com/]buy atarax 25mg online[/url] [url=http://amitriptyline24.com/]buy amitriptyline[/url] [url=http://azithromycin.us.org/]buy azithromycin[/url] [url=http://retina.us.org/]generic for retin a[/url] [url=http://lipitor.us.org/]buy lipitor[/url] [url=http://duloxetine.us.com/]buy cymbalta 30 mg[/url] [url=http://priligy.us.com/]priligy tablets[/url] [url=http://flomax.us.com/]flomax online[/url] [url=http://prednisolone.us.org/]prednisolone buy online[/url] [url=http://prazosin.us.com/]buy prazosin[/url] [url=http://trazodonesale.com/]buy trazodone[/url] [url=http://bupropion365.com/]bupropion 150[/url] [url=http://motrin.us.com/]motrin[/url] [url=http://chloroquine.us.org/]chloroquine[/url] [url=http://zovirax.us.com/]buy zovirax pills[/url] [url=http://metformin.us.org/]metformin 1000[/url] [url=http://wellbutrin.us.org/]buy wellbutrin[/url]

    回复
  9. [url=https://hydroxychlorothiazide.com/]buy hydrochlorothiazide[/url]

    回复
  10. [url=http://cialisprice.us.org/]cialis online[/url]

    回复
  11. [url=https://amitriptyline24.com/]amitriptyline 10 mg tablet[/url] [url=https://chloroquinaralen.com/]aralen purchase[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url] [url=https://chloroquine.us.org/]chloroquine brand[/url] [url=https://azithromycin.us.org/]azithromycin 500mg coupon[/url]

    回复
  12. We are a bunch of volunteers and opening a brand new scheme in our community.

    Your web site provided us with useful info to work on. You have done a formidable process and our
    whole group shall be thankful to you.

    回复
  13. [url=http://attarax.com/]atarax mexico[/url] [url=http://flomax.us.com/]can i buy flomax[/url] [url=http://domperidone.us.com/]motilium[/url] [url=http://hydroxychloroquinecv.com/]buy plaquenil[/url] [url=http://cialisprice.us.org/]where can i buy cialis online in canada[/url] [url=http://hydroxychlorothiazide.com/]hydrochlorothiazide 25 mg online[/url] [url=http://duloxetine.us.com/]cymbalta online[/url] [url=http://trazodonesale.com/]trazodone 100 mg[/url]

    回复
  14. [url=http://ivermectin.us.org/]ivermectin generic[/url] [url=http://retina.us.org/]retin a price in canada[/url] [url=http://trazodonesale.com/]cheap trazodone[/url] [url=http://flomax.us.com/]cheap online prescription flomax[/url]

    回复
  15. [url=https://prednisolone.us.org/]5mg prednisolone daily[/url] [url=https://proscar.us.com/]proscar 5mg tabs[/url] [url=https://cialisprice.us.org/]cialis pills over the counter[/url] [url=https://chloroquinaralen.com/]chlorquin[/url] [url=https://tamoxifenpct.com/]tamoxifen brand name in india[/url] [url=https://bupropion365.com/]buy bupropion[/url]

    回复
  16. If some one wants to be updated with latest technologies after that
    he must be pay a quick visit this web site and be up to date
    everyday.

    回复
  17. This is where you’ll get women try to joke something away, like when you ask her if
    she doesn’t like her job why’s she still doing it? This will become huge unless the netflix type companies of the world start doing this.
    Video on Demand – Video on demand companies such as aebn, xmovies and videobox are
    terrific converters for us. Why netflix doesn’t go in this direction I am
    not sure but we have companies that specialize in this field and best of all they offer nice payouts to their affiliates.
    Love to swim and hike, particularly when I have a camera in hand.

    You’ll love the guys going both ways at Cody
    Cummings, Bimaxx, and Tricked Bi Party. Hot Muscle Cam Guys At Your Fingertips!
    None of our male live cam counterparts can deliver high-quality performances you can watch on our website.
    Not only are we the largest non-nude male cam
    site, but we are now focusing on shooting our
    guys in high quality photos and videos.

    回复
  18. [url=https://malegra.us.org/]malegra 100 for sale[/url] [url=https://bupropion365.com/]how to buy buproprion on line[/url] [url=https://prednisolone.us.org/]buy prednisolone[/url] [url=https://amitriptyline24.com/]amitriptyline 5mg[/url] [url=https://cialisprice.us.org/]cialis online[/url] [url=https://motrin.us.com/]buy motrin online[/url] [url=https://proscar.us.com/]proscar 1mg[/url] [url=https://attarax.com/]generic for atarax[/url] [url=https://duloxetine.us.com/]duloxetine[/url] [url=https://prazosin.us.com/]prazosin brand name canada[/url]

    回复
  19. [url=http://retina.us.org/]generic retin a micro[/url] [url=http://ivermectin.us.org/]ivermectin oral 0 8[/url] [url=http://chloroquinaralen.com/]hydroxychloroquine aralen[/url] [url=http://flomax.us.com/]flomax cost in india[/url] [url=http://zovirax.us.com/]zovirax cream[/url] [url=http://prazosin.us.com/]prazosin 1mg[/url] [url=http://bupropion365.com/]bupropion 150mg sr[/url]

    回复
  20. Hi! I know this is kind of off topic but I was wondering which blog platform are
    you using for this site? I’m getting tired of WordPress because I’ve had problems with hackers and I’m looking at options for another platform.

    I would be awesome if you could point me in the direction of a good platform.

    回复
  21. [url=https://singulair.us.com/]singulair coupon[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url] [url=https://ivermectin.us.org/]stromectol tablets 3 mg[/url] [url=https://cialisprice.us.org/]buy cialis[/url] [url=https://malegra.us.org/]malegra online[/url]

    回复
  22. [url=https://malegra.us.org/]buy malegra 100[/url]

    回复
  23. [url=http://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url] [url=http://singulair.us.com/]buy singulair[/url] [url=http://malegra.us.org/]buy malegra 200 mg[/url] [url=http://cialisprice.us.org/]cealis[/url] [url=http://wellbutrin.us.org/]wellbutrin sr[/url] [url=http://ivermectin.us.org/]stromectol ivermectin[/url] [url=http://attarax.com/]buy atarax[/url]

    回复
  24. Fast recommendations on seducing a justifier contain, sending a message that compliments and subsequently
    requires the compliment away. These are images and videos where girls have been groomed, coerced and
    tricked into performing sexually over webcam, what is fast becoming a national crisis.
    The paedeophile was jailed for eight years in 2010 after he
    tricked victims into performing sex acts on a webcam or
    to meet him in parks, beaches and at his home in Penryn, Cornwall,
    where he abused them. When you are about to meet a person that
    you have met alone and you are really fond of and think that they have
    the same interests as you, make sure that you do not meet
    alone. You have the full identity theft package at your fingertips’, they added.
    The type and quantity of data left the performers open to identity theft,
    with the researchers noting the data was ‘information that we regularly see being sold on the dark web,
    often at very attractive prices’. Rhiannon, who was sexually assaulted in her home at
    the age of 13 after being groomed online by a
    fake modelling scout.

    回复
  25. [url=https://malegra.us.org/]malegra 100 for sale[/url] [url=https://hydroxychloroquinecv.com/]plaquenil for sarcoidosis[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide 50mg cost[/url] [url=https://cephalexin365.com/]generic cephalexin 500mg[/url] [url=https://zovirax.us.com/]buy zovirax cream[/url] [url=https://singulair.us.com/]buy singulair[/url]

    回复
  26. Tami Erin, former ‘Pippi Longstocking’ star, released a sex tape in 2013.

    >TodayILearne> >WTFact>

    回复
  27. [url=https://zovirax.us.com/]zovirax 400 mg price[/url] [url=https://retina.us.org/]retin a online pharmacy uk[/url] [url=https://amitriptyline24.com/]amitriptyline hcl 10mg[/url] [url=https://trazodonesale.com/]buy trazodone[/url] [url=https://cephalexin365.com/]cephalexin 500 coupon[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine sulfate online[/url] [url=https://flomax.us.com/]flomax discount[/url] [url=https://proscar.us.com/]cheapest proscar online[/url] [url=https://hydroxychloroquine.us.com/]cost of plaquenil uk[/url] [url=https://malegra.us.org/]malegra 200 mg[/url]

    回复
  28. [url=https://prednisolone.us.org/]where to buy prednisolone[/url] [url=https://cialisprice.us.org/]buy cialis 20 mg usa[/url] [url=https://trazodonesale.com/]trazodone otc[/url] [url=https://prazosin.us.com/]prazosin erectile dysfunction[/url] [url=https://lipitor.us.org/]lipitor tabs[/url] [url=https://motrin.us.com/]buy motrin online[/url] [url=https://flomax.us.com/]buy flomax[/url] [url=https://metformin.us.org/]how much is metformin 1000 mg[/url] [url=https://azithromycin.us.org/]buy azithromycin[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide 12.5[/url]

    回复
  29. [url=http://zovirax.us.com/]zovirax generic[/url] [url=http://azithromycin.us.org/]azithromycin 1g buy online[/url] [url=http://metformin.us.org/]can you buy metfromin without a prescription[/url] [url=http://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url] [url=http://domperidone.us.com/]motilium otc australia[/url] [url=http://prazosin.us.com/]prazosin hcl[/url] [url=http://attarax.com/]buy atarax tablets[/url] [url=http://trazodonesale.com/]trazodone hydrochloride[/url] [url=http://prednisolone.us.org/]prednisolone 25mg[/url] [url=http://nexium.us.org/]nexium[/url]

    回复
  30. [url=http://wellbutrin.us.org/]buy wellbutrin[/url] [url=http://retina.us.org/]retin a without script[/url] [url=http://azithromycin.us.org/]azithromycin buy online[/url] [url=http://trazodonesale.com/]how much is trazodone cost[/url]

    回复
  31. With havin so much content and articles do you ever run into any problems of plagorism or
    copyright infringement? My site has a lot of unique content I’ve either created myself or outsourced but it looks like
    a lot of it is popping it up all over the web without my
    authorization. Do you know any techniques to help reduce content from being ripped
    off? I’d truly appreciate it.

    回复
  32. Film streaming gratuit HD/4K en VF HDss, Film en streaming, Regarder meilleurs Films sur hdss.to GRATUIT.

    回复
  33. [url=https://zovirax.us.com/]zovirax ointment[/url] [url=https://retina.us.org/]tretinoin buy[/url] [url=https://duloxetine.us.com/]cymbalta brand name cost[/url] [url=https://bupropion365.com/]buy bupropion without prescription[/url] [url=https://tamoxifenpct.com/]tamoxifen 10 mg[/url]

    回复
  34. Nice post. I was checking continuously this blog and I am impressed!
    Extremely useful info particularly the last part 🙂 I care for such info a lot.
    I was seeking this particular info for a long time. Thank you and good luck.

    回复
  35. [url=https://malegra.us.org/]buy malegra[/url] [url=https://retina.us.org/]retin a rx cream[/url] [url=https://duloxetine.us.com/]buy cymbalta online from canada[/url] [url=https://zovirax.us.com/]zovirax 5[/url] [url=https://lipitor.us.org/]lipitor tablets[/url] [url=https://bupropion365.com/]buy bupropion[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine[/url]

    回复
  36. Hey! Do you use Twitter? I’d like to follow you if that would be okay.

    I’m undoubtedly enjoying your blog and look forward to new posts.

    回复
  37. [url=http://retina.us.org/]buy retin a[/url] [url=http://cephalexin365.com/]cephalexin 500 mg cost[/url] [url=http://hydroxychloroquinecv.com/]plaquenil for rheumatoid arthritis[/url] [url=http://trazodonesale.com/]generic trazodone 100 mg[/url] [url=http://amitriptyline24.com/]amitriptyline drug[/url] [url=http://azithromycin.us.org/]can i buy azithromycin over the counter uk[/url]

    回复
  38. Hello! Do you know if they make any plugins to
    help with Search Engine Optimization? I’m trying to get my blog to rank
    for some targeted keywords but I’m not seeing very good gains.

    If you know of any please share. Many thanks!

    回复
  39. [url=http://hydroxychlorothiazide.com/]lisinopril hydrochlorothiazide[/url] [url=http://lipitor.us.org/]buy lipitor uk[/url]

    回复
  40. If some one needs expert view regarding blogging and site-building after that i
    propose him/her to go to see this webpage, Keep up the fastidious job.

    回复
  41. [url=http://priligy.us.com/]priligy buy online[/url] [url=http://azithromycin.us.org/]azithromycin singapore pharmacy[/url] [url=http://prednisolone.us.org/]prednisolone 5mg for sale in uk[/url] [url=http://prazosin.us.com/]prazosin brand name[/url] [url=http://nexium.us.org/]nexium 24[/url] [url=http://tamoxifenpct.com/]tamoxifen no prescription paypal[/url] [url=http://retina.us.org/]buy retin-a[/url] [url=http://chloroquine.us.org/]chloroquine where to buy[/url] [url=http://cephalexin365.com/]buy cephalexin[/url] [url=http://bupropion365.com/]bupropion online pharmacy[/url] [url=http://zovirax.us.com/]buy zovirax ointment[/url] [url=http://duloxetine.us.com/]duloxetine[/url] [url=http://cialisprice.us.org/]cialis generic in india[/url] [url=http://motrin.us.com/]motrin 800 mg[/url] [url=http://amitriptyline24.com/]medication amitriptyline 10mg[/url] [url=http://attarax.com/]atarax tablet[/url] [url=http://hydroxychloroquine.us.com/]hydroxychloroquine generic[/url] [url=http://chloroquinaralen.com/]generic chloroquine phosphate[/url] [url=http://domperidone.us.com/]motilium medication[/url] [url=http://metformin.us.org/]metformin[/url]

    回复
  42. [url=https://cialisprice.us.org/]cialis lowest price[/url] [url=https://tamoxifenpct.com/]tamoxifen tablets[/url] [url=https://hydroxychloroquine.us.com/]hydroxychloroquine sulfate generic[/url] [url=https://flomax.us.com/]flomax sale online[/url] [url=https://chloroquinaralen.com/]generic chloroquine phosphate[/url] [url=https://attarax.com/]buy atarax[/url] [url=https://trazodonesale.com/]trazodone 100mg[/url]

    回复
  43. I truly love your site.. Very nice colors & theme.

    Did you create this site yourself? Please reply back as I’m planning to create my own blog and would
    like to find out where you got this from or just what the theme is called.
    Cheers!

    回复
  44. [url=https://azithromycin.us.org/]azithromycin generic cost india[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine sulfate online[/url] [url=https://chloroquine.us.org/]chloroquine tablet price in india[/url] [url=https://lipitor.us.org/]lipitor generic[/url] [url=https://domperidone.us.com/]domperidone[/url] [url=https://hydroxychloroquine.us.com/]hydroxychloroquine sulfate[/url]

    回复
  45. [url=https://wellbutrin.us.org/]online wellbutrin prescription[/url] [url=https://trazodonesale.com/]trazodone 50mg[/url] [url=https://bupropion365.com/]bupropion medicine[/url] [url=https://hydroxychloroquine.us.com/]plaquenil cheap[/url]

    回复
  46. I am not sure where you’re getting your info, but good topic.

    I needs to spend some time learning more or understanding more.
    Thanks for fantastic information I was looking for this information for my mission.

    回复
  47. [url=https://prednisolone.us.org/]prednisolone 25mg[/url] [url=https://proscar.us.com/]proscar medication[/url] [url=https://tamoxifenpct.com/]tamoxifen 10mg uk[/url] [url=https://metformin.us.org/]metformin 500 mg[/url] [url=https://wellbutrin.us.org/]wellbutrin generic[/url] [url=https://singulair.us.com/]singulair 10 mg[/url] [url=https://malegra.us.org/]malegra online[/url] [url=https://chloroquinaralen.com/]chloroquine aralen[/url] [url=https://hydroxychloroquine.us.com/]buy hydroxychloroquine[/url] [url=https://hydroxychlorothiazide.com/]hydrochlorothiazide tab 12.5 mg[/url] [url=https://motrin.us.com/]motrin 400 mg[/url] [url=https://prazosin.us.com/]prazosin 8 mg 6 mg 8 mg[/url] [url=https://amitriptyline24.com/]buy amitriptyline online[/url] [url=https://hydroxychloroquinecv.com/]buy hydroxychloroquine sulfate[/url] [url=https://duloxetine.us.com/]cymbalta 60 mg price in india[/url] [url=https://retina.us.org/]buy retin a[/url] [url=https://domperidone.us.com/]motilium over the counter uk[/url] [url=https://cephalexin365.com/]cephalexin coupon[/url] [url=https://zovirax.us.com/]zovirax generic over the counter[/url] [url=https://cialisprice.us.org/]cialis 20mg price[/url]

    回复
  48. My family members always say that I am wasting my time here
    at web, but I know I am getting know-how everyday by reading
    thes good posts.

    回复
  49. [url=https://priligy.us.com/]priligy online canada[/url] [url=https://prednisolone.us.org/]prednisolone tablet brand name[/url] [url=https://motrin.us.com/]motrin 650 mg[/url] [url=https://chloroquine.us.org/]aralen india[/url] [url=https://singulair.us.com/]where to buy singulair[/url] [url=https://lipitor.us.org/]buy lipitor[/url] [url=https://duloxetine.us.com/]36mg cymbalta[/url] [url=https://attarax.com/]atarax 25 mg price in india[/url] [url=https://proscar.us.com/]generic proscar[/url] [url=https://prazosin.us.com/]prazosin generic[/url]

    回复
  50. Pretty nice post. I just stumbled upon your blog and wanted to say that I’ve truly enjoyed browsing your blog posts.
    After all I’ll be subscribing to your feed and I hope you write again very soon!

    回复

发表评论

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