安裝 rpmrebuild

  1. rpmrebuild 由 epel-releases 套件庫提供。
    [root@dyw219 ~]# yum install rpmrebuild
    
  2. rpmrebuild 輔助說明,-p 是指定要編輯的 package,-e 是編輯 spec。
    [root@dyw219 src]# rpmrebuild --help
    rpmrebuild is a tool to rebuild an rpm file from the rpm database
    Usage: rpmrebuild [options] package
    options:
       -5  --md5-compat-digest      use rpm 4.4 compatible digest (md5)
       -a, --additional=<flags>	additional flags to be pass to the rpmbuild
       -b, --batch			batch mode (ask no questions)
       -c, --comment-missing=<y|n>	comment missing files in the specfile. default : no.
       -d, --directory=<dir>        specify the working directory
       -D, --define=<define>        defines to be passed to the rpmbuild
       -e, --edit-spec              alias for --edit-whole
       -f, --filter=<command>       alias for --change-spec-whole
       -i, --includes=<file>        read options from the file <file>
       -I, --install                install the created rpm
       -k, --keep-perm              alias for --pug-from-fs
           --pug-from-fs            keep installed files permission, uid and gid
           --pug-from-db (default)  use files permission, uid and gid from rpm db
           --cap-from-fs            use files posix capabilities from installed files
           --cap-from-db (default)  use files posix capabilities from rpm database
       -l, --list-plugin		list installed plugins
       -m, --modify=<command>       alias for --change-files
       -n, --notest-install		do not perform a test install
       -p, --package                use package file, not installed rpm
       -P, --autoprovide            force rpm to auto generate "Provide:"
       -r, --release=N              force release to N
       -R, --autorequire            force rpm to auto generate "Require:"
       -s, --spec-only=<specfile>   generate specfile only. (If <specfile> "-" stdout will be used)
       -v, --verbose                verbose
           --debug                  debug mode (do not remove temporary working files)
       -V, --version                print rpmrebuild version
       -w, --warning                print warning if detect filenames with globbing characters (default : no).
       -y, --verify=<y|n>           verify package (rpm -V) before processing (default : yes).
       -h, --help                   print this help
           --help-plugins           print help about plugins options
    
    Copyright (C) 2002-2007 by Eric Gerbier (<gerbier@users.sourceforge.net>)
    this program is distributed under GNU General Public License