Skip to main content

Usage

anaconda repo policy [OPTIONS]

Description

Manages policies for filtering and channel assignment. Policies define rules (platform, license, package name, CVE score and status, dependencies, signing, package creation date, and exclusions) and can be assigned to channels. Use --list-all to list policies, --create or --edit to define rules, and --assign/--unassign to link policies to channels.

Options (main actions)

Options (policy rules)

Use these options with --create or --edit to define policy filtering rules.

Examples

List all policies
anaconda repo policy --list-all
Show a policy
anaconda repo policy --show <POLICY_ID>
Create a policy and assign to a channel
anaconda repo policy --create --name "My policy" --channel-name my-channel
anaconda repo policy --assign <POLICY_ID> --channel my-channel
Create a policy with filtering rules
anaconda repo policy --create --name "Secure packages" --channel-name my-channel \
  --platform linux-64,noarch \
  --license-not gpl3,agpl \
  --cve-score 7.0 --cve-score-comparator "<=" \
  --only-signed-packages