Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.92 KB

File metadata and controls

58 lines (42 loc) · 1.92 KB

azldev advanced mock build-rpms

Use mock to build an RPM

Synopsis

Build binary RPMs from a source RPM using mock.

This is a low-level command that invokes mock directly with the given SRPM and configuration. For most use cases, prefer 'azldev component build' which handles source preparation and overlay application automatically.

azldev advanced mock build-rpms [flags]

Examples

  # Build from an SRPM
  azldev advanced mock build-rpms --srpm ./my-package.src.rpm -o ./rpms/

  # Build with a custom mock config
  azldev advanced mock build-rpms -c my-mock.cfg --srpm ./my-package.src.rpm -o ./rpms/

Options

  -c, --config string       Path to the mock .cfg file
  -h, --help                help for build-rpms
      --no-check            Skip package %check tests
  -o, --output-dir string   Path to output directory
      --srpm string         Path to the SRPM to build

Options inherited from parent commands

  -y, --accept-all                accept all prompts
      --color mode                output colorization mode {always, auto, never} (default auto)
      --config-file stringArray   additional TOML config file(s) to merge (may be repeated)
  -n, --dry-run                   dry run only (do not take action)
      --network-retries int       maximum number of attempts for network operations (minimum 1) (default 3)
      --no-default-config         disable default configuration
  -O, --output-format fmt         output format {csv, json, markdown, table} (default table)
      --permissive-config         do not fail on unknown fields in TOML config files
  -C, --project string            path to Azure Linux project
  -q, --quiet                     only enable minimal output
  -v, --verbose                   enable verbose output

SEE ALSO