Space out DNF repository priorities on EL
Decision date: 2026-12-05
Status Released in v1.12.0 for EL 8–10.
Current reference Repository definitions.
Scope RPM repository selection in PIG, pgext and Pigsty.
Decision
Use 10 for Pigsty PGSQL, 20 for Pigsty INFRA and 40 for stable PGDG, including its common repository. Distribution repositories use DNF’s default of 99. The same priorities apply to all mirrors and both architectures.
Context
Rocky 10 AppStream and PGDG both provide postgresql18-server. The AppStream server uses a different directory layout from the extensions built for PGDG. DNF can complete a mixed installation that then fails at pig pg init -v 18. PIG v1.11.0 gave Pigsty PGSQL and INFRA adjacent priorities of 11 and 12 and let DNF choose the default for PGDG. Released catalog
Alternatives
Giving only pgdg18 priority 98 resolves the immediate EL 10 collision but leaves PGDG common and other stable majors at the distribution priority. Excluding PostgreSQL from the managed AppStream definition protects nodes that use it. A standalone PIG user can also add PGDG while retaining the distribution’s original AppStream file.
Contract
DNF prefers the lower number when repositories offer the same package. All stable PGDG majors available on a platform share 40. The requested major and package dependencies still determine which packages participate in a transaction. The optional intranet source uses 1. EPEL, PGDG extras, nonfree, beta and third-party repositories inherit DNF’s default. A site can use 15 between the Pigsty repositories, 30 before PGDG or 60 before the distribution.
The numbers live in repository metadata. pgext embeds its RPM catalog for both pgext repo and pgext gen conf. Pigsty consumes the generated platform defaults or an inventory’s repo_upstream. PIG maintains its own catalog with publisher key bindings. Each renderer passes through an explicit meta.priority.
Impact
A site source already set to 15 gains precedence over Pigsty INFRA. A source set to 60 now yields to stable PGDG. Administrators who manage a catalog or inventory override update that definition and reapply the selected modules on their hosts. The managed AppStream and EPEL exclusions continue to cover PostgreSQL packages and PgBouncer respectively. EL 7 keeps its historical Yum priorities. Debian and Ubuntu use their existing APT configuration.
Verification
The release-candidate tests TestEmbeddedELRepositoryPriorities in PIG and TestEmbeddedRPMRepositoryPriorities in pgext check the catalog values. On Rocky 10.1, a clean install retaining the native AppStream selected the PGDG server and loaded vector, pgcrypto and pgjwt. An isolated DNF transaction test offered seven versions of one RPM across seven repositories. With successively higher-priority sources disabled, DNF selected priorities 10, 15, 20, 30, 40, 60 and 99 for configurations written by both CLIs and both Pigsty role templates. PIG catalog and regression tests
Status
PIG implements the new priorities in its bundled EL catalog. For the package selection rules and published versions, see the repository manual and release notes.