portage-ng Handbook
A comprehensive guide to portage-ng — a declarative reasoning engine for software configuration, applied to Gentoo Linux.
Part I — Getting Started
Part II — Architecture and Internals
- Architecture Overview
- Proof Literals
- Knowledge Base and Cache
- The EAPI Grammar
- The Prover
- Assumptions and Constraint Learning
- Version Domains
- Rules and Domain Logic
- Resolution: Configuration as Proofs
- Policy cards — what Gentoo policy requires
- Policy by example — overlay curriculum
- One-page map —
rule/2→ schema → test → card
- Ordering: Plans as Proofs
- Output and Visualization
Part III — Features
- Command-Line Interface
- Building and Execution
- Why not our own
ebuild? — why phase execution stays delegated - The ebuild contract — builder ↔ Portage
ebuildboundary
- Why not our own
- Semantic Search and LLM Integration
- Distributed Proving
- Upstream and Bug Tracking
- Gentoo Linux Security Advisories (GLSA)
Part IV — Foundations
- Contextual Logic Programming
- Context Terms and Feature Unification
- Resolver Comparison
- Dependency Ordering