This guide walks through building a component with azldev.
- A configured Azure Linux project (see Creating a Project)
- The
azldevCLI installed and on yourPATH
Build a component by name:
azldev comp build -p <component-name>Built packages are placed in structured subdirectories under the project's output directory
(configured by output-dir in project config):
| Directory | Contents |
|---|---|
out/srpms/ |
Source RPMs (SRPMs) |
out/rpms/ |
Binary RPMs with no channel configured, or channel none |
out/rpms/<channel>/ |
Binary RPMs assigned to a named publish channel |
| Flag | Description |
|---|---|
--no-check |
Skip the %check section (package test suite) |
--srpm-only |
Build only the SRPM, not the binary RPMs |
--preserve-buildenv on-failure |
Keep the mock chroot on build failure for debugging |
--continue-on-error / -k |
Continue building remaining components if one fails |
--local-repo <path> |
Add a local RPM repository for build dependencies |
--local-repo-with-publish <path> |
Use a local repo and publish built RPMs into it |
When building multiple components that depend on each other, use --local-repo-with-publish to make each component's output available to subsequent builds:
azldev comp build --local-repo-with-publish ./base/out -p dep-package -p main-package- Re-run with
--preserve-buildenv on-failureto keep the mock chroot - Enter the chroot with
azldev adv mock shellto inspect the build environment - Check build logs in the project's log directory
- Components Reference — component definition format
- Overlays Reference — modifying upstream specs