最終更新:2016-04-11 (月) 13:40:39 (1578d)  

rpmbuild
Top / rpmbuild

rpmbuildを使って望みのrpmを作成

https://linuxjm.osdn.jp/html/rpm/man8/rpmbuild.8.html

オプション

ビルド

  •    BUILD OPTIONS
           The general form of an rpm build command is
    
           rpmbuild -bSTAGE|-tSTAGE [      rpmbuild-options
            ] FILE ...
    
           The  argument  used is -b if a spec file is being used to build the package and -t if rpmbuild should look inside of a (possibly
           compressed) tar file for the spec file to use. After the first argument, the next character  (STAGE)  specifies  the  stages  of
           building and packaging to be done and is one of:
    
           -ba    Build binary and source packages (after doing the %prep, %build, and %install stages).
    
           -bb    Build a binary package (after doing the %prep, %build, and %install stages).
    
           -bp    Executes the "%prep" stage from the spec file. Normally this involves unpacking the sources and applying any patches.
    
           -bc    Do  the  "%build"  stage  from  the spec file (after doing the %prep stage).  This generally involves the equivalent of a
                  "make".
    
           -bi    Do the "%install" stage from the spec file (after doing the %prep and %build stages).  This generally involves the equiv‐
                  alent of a "make install".
    
           -bl    Do  a  "list  check".  The "%files" section from the spec file is macro expanded, and checks are made to verify that each
                  file exists.
    
           -bs    Build just the source package.

リビルド

  •    REBUILD AND RECOMPILE OPTIONS
           There are two other ways to invoke building with rpm:
    
           rpmbuild --rebuild|--recompile SOURCEPKG ...
    
           When invoked this way, rpmbuild installs the named  source  package,  and  does  a  prep,  compile  and
           install.   In  addition, --rebuild builds a new binary package. When the build has completed, the build
           directory is removed (as in --clean) and the the sources and spec file for the package are removed.
    

種類

  • rpmbuild --rebulid foobar-1.0.src.rpm
  • rpmbuild -bb --target=`uname -m` kernel.spec

rpmbuild/パッチ

パッケージ

  • rpm-build?

関連