rpmbuild命令使用
2007-10-06 01:13
344 查看
Usage: rpmbuild [OPTION...]
*使用命令:rpmbuild ·[OPTION]
Build options with [ <specfile> | <tarball> | <source package> ]:
*建立包的选项有:[ 从文件<specfile>建立 |从 <tarball>包建立 |从 <source package>包建立]
*从文件<specfile>建立
-bp build through %prep (unpack sources and apply patches) from <specfile>
* -bp 从<specfile>文件的%prep段开始建立(解开源码包并打补丁)
-bc build through %build (%prep, then compile) from <specfile>
*-bc 从<specfile>文件的%build
-bi build through %install (%prep, %build, then install) from <specfile>
-bl verify %files section from <specfile>
*检查<specfile>文件的%files段
-ba build source and binary packages from <specfile>
*建立源码和二进制包
-bb build binary package only from <specfile>
*只建立二进制包
-bs build source package only from <specfile>
*只建立源码包
*从 <tarball>包建立
-tp build through %prep (unpack sources and apply patches) from <tarball>
-tc build through %build (%prep, then compile) from <tarball>
-ti build through %install (%prep, %build, then install) from <tarball>
-ta build source and binary packages from <tarball>
*建立源码和二进制包
-tb build binary package only from <tarball>
*只建立二进制包
-ts build source package only from <tarball>
*只建立源码包
*从 <source package>包建立
--rebuild
build binary package from <source package>
*建立二进制包
--recompile
build through %install (%prep, %build, then install) from <source package>
*rpmbuild的其他使用项
--buildroot=DIRECTORY override build root
*确定以root目录建立包
--clean remove build tree when done
*完成打包后清除BUILD下的文件目录
--nobuild do not execute any stages of the build
*不进行BUILD的阶段
--nodeps do not verify build dependencies
*不检查建立包时的关联文件
--nodirtokens
generate package header(s) compatible with (legacy) rpm[23] packaging
--rmsource remove sources when done
*完成打包后清除sources
--rmspec remove specfile when done
*完成打包后清除specfile
--short-circuit skip straight to specified stage (only for c,i)
*跳过
--target=CPU-VENDOR-OS
override target platform
*确定包的最终使用平台
Common options for all rpm modes:
*所有rpm都可使用的选项
-D, --define='MACRO EXPR' define MACRO with value EXPR
*预定义
-E, --eval='EXPR' print macro expansion of EXPR
*显示大量EXPR扩展信息
--macros=<FILE:...> read <FILE:...> instead of default file(s)
*读<FILE:...>文件代替默认文件
--nodigest don't verify package digest(s)
*不检查包的说明信息
--nosignature don't verify package signature(s)
*不检查包的签名信息
--rcfile=<FILE:...> read <FILE:...> instead of default file(s)
*读<FILE:...>文件代替默认文件
-r, --root=ROOT use ROOT as top level directory (default: "/")
*使ROOT为最高级别的路径
--querytags display known query tags
*显示已知的有疑问的地方
--showrc display final rpmrc and macro configuration
*显示最终的配置信息
--quiet provide less detailed output
*提供少量的信息
-v, --verbose provide more detailed output
* 提供大量的详细的信息
--version print the version of rpm being used
*显示rpm包的版本
Options implemented via popt alias/exec:
*附加选项
--dbpath=DIRECTORY use database in DIRECTORY
--with=<option> enable configure <option> for build
*建立时允许配置的选项
--without=<option> disable configure <option> for build
*建立时不允许配置的选项
Help options:
*帮助选项
-?, --help Show this help message
* 显示帮助信息
--usage Display brief usage message
*显示使用方法的信息
类别:Linux | 添加到搜藏 | 浏览(47) | 评论 (0)
*使用命令:rpmbuild ·[OPTION]
Build options with [ <specfile> | <tarball> | <source package> ]:
*建立包的选项有:[ 从文件<specfile>建立 |从 <tarball>包建立 |从 <source package>包建立]
*从文件<specfile>建立
-bp build through %prep (unpack sources and apply patches) from <specfile>
* -bp 从<specfile>文件的%prep段开始建立(解开源码包并打补丁)
-bc build through %build (%prep, then compile) from <specfile>
*-bc 从<specfile>文件的%build
-bi build through %install (%prep, %build, then install) from <specfile>
-bl verify %files section from <specfile>
*检查<specfile>文件的%files段
-ba build source and binary packages from <specfile>
*建立源码和二进制包
-bb build binary package only from <specfile>
*只建立二进制包
-bs build source package only from <specfile>
*只建立源码包
*从 <tarball>包建立
-tp build through %prep (unpack sources and apply patches) from <tarball>
-tc build through %build (%prep, then compile) from <tarball>
-ti build through %install (%prep, %build, then install) from <tarball>
-ta build source and binary packages from <tarball>
*建立源码和二进制包
-tb build binary package only from <tarball>
*只建立二进制包
-ts build source package only from <tarball>
*只建立源码包
*从 <source package>包建立
--rebuild
build binary package from <source package>
*建立二进制包
--recompile
build through %install (%prep, %build, then install) from <source package>
*rpmbuild的其他使用项
--buildroot=DIRECTORY override build root
*确定以root目录建立包
--clean remove build tree when done
*完成打包后清除BUILD下的文件目录
--nobuild do not execute any stages of the build
*不进行BUILD的阶段
--nodeps do not verify build dependencies
*不检查建立包时的关联文件
--nodirtokens
generate package header(s) compatible with (legacy) rpm[23] packaging
--rmsource remove sources when done
*完成打包后清除sources
--rmspec remove specfile when done
*完成打包后清除specfile
--short-circuit skip straight to specified stage (only for c,i)
*跳过
--target=CPU-VENDOR-OS
override target platform
*确定包的最终使用平台
Common options for all rpm modes:
*所有rpm都可使用的选项
-D, --define='MACRO EXPR' define MACRO with value EXPR
*预定义
-E, --eval='EXPR' print macro expansion of EXPR
*显示大量EXPR扩展信息
--macros=<FILE:...> read <FILE:...> instead of default file(s)
*读<FILE:...>文件代替默认文件
--nodigest don't verify package digest(s)
*不检查包的说明信息
--nosignature don't verify package signature(s)
*不检查包的签名信息
--rcfile=<FILE:...> read <FILE:...> instead of default file(s)
*读<FILE:...>文件代替默认文件
-r, --root=ROOT use ROOT as top level directory (default: "/")
*使ROOT为最高级别的路径
--querytags display known query tags
*显示已知的有疑问的地方
--showrc display final rpmrc and macro configuration
*显示最终的配置信息
--quiet provide less detailed output
*提供少量的信息
-v, --verbose provide more detailed output
* 提供大量的详细的信息
--version print the version of rpm being used
*显示rpm包的版本
Options implemented via popt alias/exec:
*附加选项
--dbpath=DIRECTORY use database in DIRECTORY
--with=<option> enable configure <option> for build
*建立时允许配置的选项
--without=<option> disable configure <option> for build
*建立时不允许配置的选项
Help options:
*帮助选项
-?, --help Show this help message
* 显示帮助信息
--usage Display brief usage message
*显示使用方法的信息
类别:Linux | 添加到搜藏 | 浏览(47) | 评论 (0)
相关文章推荐
- linux的rpm与yum命令的使用
- Linux rpmbuild命令
- rpm命令使用简介
- rpm与yum,at与crontab,sed命令使用
- gcc rpm_使用rpm -qi gcc命令来获取gcc包的版本,安装日期等信息
- Linux RPM 命令参数使用详解 查看 rpm包依赖性
- Linux(centos)下安装卸载命令rpm,make install使用方法
- rpm 命令|rpm 安装|rpm 卸载|rpm 使用|rpm 删除
- Linux操作系统中RPM命令参数的使用详解
- 解压rpm包的linux命令及rpm命令使用简介
- rpm命令的使用
- Linux 中 RPM 命令参数使用详解
- 使用fpm命令制作rpm包并安装
- 使用WDK编译环境编译应用程序build命令(静态库程序)
- Linux(centos)下安装卸载命令rpm,make install使用方法【转】
- Linux 中 RPM 命令参数使用详解
- [Linux]使用rpm命令安装软件包
- rpmbuild命令详解
- 在Linux系统中RPM 命令参数使用详解 (1)
- Linux 中 RPM 命令参数使用详解 [转贴]