• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 在Redhat 9創建自己的rpm 打包環境

    發表于:2007-07-04來源:作者:點擊數: 標簽:
    原文參見:HOWTO: How to create rpmbuild directory 方法1: [h ant sy@localhost hantsy]cd ~ [hantsy@localhost hantsy]mkdir rpmbuild [hantsy@localhost hantsy]cp -a /usr/src/redhat/ rpmbuild [hantsy@localhost hantsy]echo '%_topdir %(echo HOME)/r
    原文參見:HOWTO: How to create rpmbuild directory

    方法1:
    [hantsy@localhost hantsy]$cd ~
    [hantsy@localhost hantsy]$mkdir rpmbuild
    [hantsy@localhost hantsy]$cp -a /usr/src/redhat/ rpmbuild
    [hantsy@localhost hantsy]$echo '%_topdir %(echo $HOME)/rpmbuild' >> .rpmmacros
    如果不想編譯debug包,向.rpmmacros中追加%debug_package %
    [hantsy@localhost hantsy]$echo '%debug_package %' >> .rpmmacros

    方法2
    也可直接安裝現成的rpm文件:
    [hantsy@localhost hantsy]$sudo rpm -ivh http://download.fedora.us/fedora/fedora/1/i386/RPMS.stable/fedora-rpmdevtools-0.1.7-0.fdr.5.noarch.rpm
    [hantsy@localhost hantsy]$fedora-buildrpmtree

    使用sudo 取得root權限

    編輯/etc/sudoers文件
    root ALL=(ALL) ALL
    hantsy ALL=(ALL) ALL

    例子,重新為redhat 9打AdobeReader 7.0 rpms包 參見 HOWTO: Buiding a custom Adobe Reader 7.0 RPM for FC3

    [hantsy@localhost hantsy]$ cd rpmbuild/SOURCE
    [hantsy@localhost hantsy]$wget -c linux_enu.tar.gz>ftp://ftp.adobe.com/pub/adobe/reader/unix/7x/7.0/enu/AdbeRdr70_linux_enu.tar.gz
    [hantsy@localhost hantsy]$cd ../SPECS
    [hantsy@localhost hantsy]$wget -c http://fedoranews.org/tchung/AdobeReader/7.0/AdobeReader.spec
    [hantsy@localhost hantsy]$sudo rpmbuild -ba AdobeReader.spec

    安裝自己的rpm包
    [hantsy@localhost hantsy]$sudo rpm -ivh ~/rpmbuild/RPMS/i386/AdobeReader-7.0-1.rh9.i386.rpm


    參考資料:
    1.你可以從這里下載我修改過的specs文件specs.tar.gz
    2.www.fedoranews.org 上有大量有關redhat和fedora的教程。

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>