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包 有 103,077 条回应

  1. [url=https://avanafill.com/]avana online[/url] [url=https://trazodone911.com/]generic trazodone 50 mg[/url] [url=https://chydroxychloroquine.com/]hydroxychloroquine sulfate tablet[/url] [url=https://phenergan125.com/]phenergan cream south africa[/url] [url=https://stratterra.com/]strattera cheapest price[/url] [url=https://prednisonesr.com/]price of prednisone[/url] [url=https://finasteridealop.com/]buy generic finasteride[/url] [url=https://silagratab.com/]silagra 100mg[/url] [url=https://baclofenp.com/]buy baclofen online australia[/url] [url=https://flagyl24.com/]flagyl without a rx[/url]

    回复
  2. [url=https://cephalexin911.com/]cephalexin best price[/url] [url=https://avodart24.com/]avodart 50mg[/url] [url=https://lisinopril125.com/]lisinopril 5 mg price in india[/url]

    回复
  3. [url=https://sildenafilv.com/]sildenafil 50mg without prescription[/url] [url=https://gabapentin.us.com/]gabapentin discount coupon[/url] [url=https://albenzamed.com/]albenza canada[/url] [url=https://vermox100.com/]where can i buy vermox[/url] [url=https://diflucanrx.com/]diflucan online canada[/url] [url=https://hydroxychloroquinecv.com/]plaquenil 0 2g[/url] [url=https://finpecia911.com/]finpecia tablets online[/url] [url=https://seroquel50.com/]seroquel 100mg price[/url] [url=https://propranolol100.com/]how much is propranolol 10 mg[/url] [url=https://viagrasoftab.com/]viagra soft tabs 100mg[/url]

    回复
  4. Wow, this piece of writing is pleasant, my sister is analyzing such
    things, thus I am going to inform her.

    回复
  5. [url=https://hydrochlorothiazide2.com/]can you buy hydrochlorothiazide over the counter in usa[/url] [url=https://ciproflxn.com/]cipro 500mg coupon[/url] [url=https://acyclovirzov.com/]acyclovir purchase[/url] [url=https://lipitor2020.com/]lipitor for sale[/url] [url=https://plavix.us.com/]plavix uk buy[/url]

    回复
  6. [url=https://furosemide1.com/]furosemide tablets buy uk[/url] [url=https://estrace2.com/]estrace pills 2mg[/url]

    回复
  7. Howdy, I think your site might be having browser compatibility problems.
    When I look at your web site in Safari, it looks fine however, when opening in Internet Explorer, it’s got some
    overlapping issues. I merely wanted to give you a quick heads up!
    Besides that, wonderful blog!

    回复
  8. Greetings! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the
    same niche. Your blog provided us valuable information to work on. You have done a wonderful job!

    回复
  9. [url=https://zithromax360.com/]zithromax 1500 mg[/url]

    回复
  10. [url=http://paxil10.com/]paxil in europe[/url] [url=http://nolvadex10.com/]nolvadex india online[/url] [url=http://acyclovirzov.com/]acyclovir buy from india[/url]

    回复
  11. What’s up to all, it’s really a pleasant for me to visit this web page,
    it contains precious Information.

    回复
  12. [url=http://medrol80.com/]medrol 80[/url] [url=http://hydrochlorothiazide2.com/]hydrochlorothiazide 25 mg tablet cost[/url] [url=http://motilium10mg.com/]motilium price singapore[/url]

    回复
  13. A motivating discussion is definitely worth comment. I think that you need
    to write more on this subject matter, it may not be a taboo
    matter but typically people do not speak about such issues.
    To the next! Cheers!!

    回复
  14. [url=https://arimidex365.com/]online prescription arimidex[/url] [url=https://paxil10.com/]paxil tablets uk[/url] [url=https://colchicine5.com/]colchicine 0.6 mg cost[/url] [url=https://cephalexin911.com/]cephalexin no prescription[/url] [url=https://chloroquineav.com/]chloroquine phosphate 250mg[/url]

    回复
  15. [url=http://inderal.us.com/]inderal for sale[/url]

    回复
  16. [url=https://accutanisotretinoin.com/]accutane price south africa[/url] [url=https://seroquel50.com/]seroquel medication[/url] [url=https://cialis5.com/]online cialis 20mg[/url] [url=https://sumycin365.com/]sumycin price[/url] [url=https://hydroxychloroquinecv.com/]plaquenil for sarcoidosis[/url] [url=https://stratterra.com/]strattera generic canada cost[/url] [url=https://zithromax360.com/]zithromax over the counter uk[/url] [url=https://robaxin24.com/]robaxin 750 tablet[/url] [url=https://prednisolone911.com/]prednisolone tablet cost[/url] [url=https://hydrochlorothiazide2.com/]hydrochlorothiazide 12.5 mg tablets[/url] [url=https://clonidinenorx.com/]clonidine 0.1 mg cost[/url] [url=https://lasixwtp.com/]lasix canada no prescription[/url] [url=https://acyclovirzov.com/]acyclovir price australia[/url] [url=https://ventolin24.com/]ventolin over the counter uk[/url] [url=https://kamagra911.com/]kamagra 100mg india order online[/url] [url=https://lexaporo.com/]lexapro 101[/url] [url=https://toradoliv.com/]60 mg toradol[/url] [url=https://medrol80.com/]medrol 2mg tablet[/url] [url=https://lopressormetoprolol.com/]lopressor 5[/url] [url=https://finpecia911.com/]finpecia[/url]

    回复
  17. [url=http://zoloft360.com/]zoloft 400 mg[/url]

    回复
  18. [url=http://zithromax360.com/]where can i buy zithromax[/url] [url=http://avanafill.com/]avana 3131[/url] [url=http://inderal.us.com/]inderal for sale uk[/url] [url=http://chloroquineav.com/]can you buy chloroquine over the counter[/url] [url=http://acyclovirzov.com/]acyclovir canada[/url] [url=http://colchicine5.com/]buy colchicine 0.6 mg uk[/url] [url=http://tretinoin365.com/]0.01 tretinoin cream[/url] [url=http://lexaporo.com/]25mg lexapro[/url]

    回复
  19. [url=https://lisinopril125.com/]lisinopril 10 mg tablet[/url] [url=https://amoxiltab.com/]amoxil 400 mg[/url] [url=https://gabapentin.us.com/]gabapentin 100mg coupon[/url] [url=https://flagyl24.com/]oral flagyl[/url] [url=https://cymbaltarx.com/]medication cymbalta 60 mg[/url] [url=https://elimitepermethrin.com/]buy elimite otc[/url] [url=https://buspar24.com/]buspar 10 mg cost[/url] [url=https://tetracyclinecaps.com/]order tetracycline online without prescription[/url] [url=https://zofranondansetron.com/]zofran uk[/url] [url=https://clonidinenorx.com/]clonidine 0.025 mg[/url]

    回复
  20. [url=http://propranolol100.com/]propranolol inderal la[/url] [url=http://finpecia911.com/]finpecia 1mg[/url] [url=http://trazodone911.com/]trazodone price in india[/url] [url=http://advair250.com/]advair cheapest price from india[/url]

    回复
  21. office software ebay [url=http://buyautocad.design/#software]buy autocad[/url] office type software for mac. office software specialist [url=https://www.dreamcatcher-echallens.ch/%C3%A9v%C3%A8nement/festival-country-a-ouchy-3/comment-page-176414/#comment-4785819]hit office software free download[/url] 127c03f open office software free download for windows 7 64 bit, software industry outlook 2020. office software for mac download, office software free download for windows 8 software engineer 2020 rwth software shop office. radeon software adrenalin 2020 edition download hindi office software free download, govt software jobs 2020.

    回复
  22. [url=https://glucophagge.com/]buy glucophage canada[/url]

    回复
  23. [url=http://atenolol25.com/]tenormin atenolol[/url]

    回复

AlanWed进行回复 取消回复

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