Download source files listed in a Fedora-format sources file
Download source files from a lookaside cache based on a Fedora-format 'sources' file in the specified directory.
The command reads the 'sources' file, resolves the lookaside cache URI from the distro configuration, and downloads each listed file into the directory. Files that already exist in the directory are skipped.
Either --component or --lookaside-uri must be provided:
--component (-p) Uses the component's distro configuration to resolve the lookaside URI and package name. --lookaside-uri Provides the URI explicitly (no project config needed). Package name is derived from the directory name.
azldev advanced download-sources [flags]
# Download sources for a component (uses component's distro config)
azldev advanced download-sources -p curl
# Download sources using explicit lookaside URI (no config needed)
azldev advanced download-sources \
--lookaside-uri 'https://example.com/$pkg/$filename/$hashtype/$hash/$filename'
# Specify a different source directory
azldev advanced download-sources -p curl -d ./path/to/sources/
# Download to a different output directory
azldev advanced download-sources -p curl -o /tmp/output
# Try multiple lookaside URIs in order
azldev advanced download-sources \
--lookaside-uri 'https://cache1.example.com/$pkg/$filename/$hashtype/$hash/$filename' \
--lookaside-uri 'https://cache2.example.com/$pkg/$filename/$hashtype/$hash/$filename'
-p, --component string component name to resolve distro and package name from
-d, --dir string source directory containing the 'sources' file (defaults to current directory)
-h, --help help for download-sources
--lookaside-uri stringArray explicit lookaside base URI(s) to try in order, first success wins (can be specified multiple times)
-o, --output-dir string output directory for downloaded files (defaults to source directory)
-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
- azldev advanced - Advanced operations