CLI¶
rpkg is a library to build command line utility to build RPM, container and module in local machine or remote build system. There is no executable to be shipped from rpkg project. This page shows what command line interface and commands will be available in any packaging tool that is built on top of rpkg.
Synopsis¶
sample-rpkg [ global_options ] command [ command_options ] [ command_arguments ]
sample-rpkg help
sample-rpkg command --help
Description¶
sample-rpkg is a library to build command line appliaction to build RPM, container and module locally or in remote build system.
Global Options¶
-
-h
,
--help
¶
show this help message and exit
-
--config
CONFIG
,
-C
CONFIG
¶ Specify a config file to use
-
--release
RELEASE
¶ Override the discovered release from current branch, which is used to determine the build target and value of dist macro. Generally, release is the name of a branch created in your package repository. –release is an alias of –dist, hence –release should be used instead.
-
--dist
DIST
¶ Deprecated. Use –release instead. You can use –dist for a while for backward-compatibility. It will be disabled in future version.
-
--module-name
MODULE_NAME
¶ Deprecated. Use combination of –name and –namespace. Override the module name. Otherwise it is discovered from: Git push URL or Git URL (last part of path with .git extension removed) or from name macro in spec file. In that order.
-
--name
NAME
¶ Override repository name. Use –namespace option to change namespace. If not specified, name is discovered from Git push URL or Git URL (last part of path with .git extension removed) or from Name macro in spec file, in that order.
-
--namespace
NAMESPACE
¶ The package repository namespace. If omitted, default to rpms if namespace is enabled.
-
--user
USER
¶ Override the discovered user name
-
--password
PASSWORD
¶ Password for Koji login
-
--runas
RUNAS
¶ Run Koji commands as a different user
-
--path
PATH
¶ Define the directory to work in (defaults to cwd)
-
--verbose
,
-v
¶
Run with verbose debug output
-
--debug
,
-d
¶
Run with debug output
-
-q
¶
Run quietly only displaying errors
Commands¶
- help
- build
- chain-build
- clean
- clog
- clone
- co
- copr-build
- commit
- ci
- compile
- container-build
- container-build-setup
- diff
- gimmespec
- gitbuildhash
- giturl
- import
- install
- lint
- local
- mockbuild
- mock-config
- module-build
- module-build-cancel
- module-build-info
- module-build-local
- module-build-watch
- module-overview
- new
- new-sources
- patch
- prep
- pull
- push
- scratch-build
- sources
- srpm
- switch-branch
- tag
- unused-patches
- upload
- verify-files
- verrel