Skip to content

feat(alpm-utils): Add orphan detection to alpm-utils#64

Open
pfeifferj wants to merge 2 commits intoarchlinux:masterfrom
pfeifferj:feat/is-orphan
Open

feat(alpm-utils): Add orphan detection to alpm-utils#64
pfeifferj wants to merge 2 commits intoarchlinux:masterfrom
pfeifferj:feat/is-orphan

Conversation

@pfeifferj
Copy link
Copy Markdown
Contributor

@pfeifferj pfeifferj commented Jan 24, 2026

Add is_orphan() for direct orphan checks and find_unneeded() which forward-walks from explicit packages to find all transitively unneeded deps.

Add is_orphan() for direct orphan checks and find_unneeded() which
forward-walks from explicit packages to find all transitively unneeded
deps.
removal_closure computes the minimal set of unneeded packages that must
be removed alongside user-selected targets to avoid broken deps. Checks
the full local DB for alternative satisfiers so virtual deps provided by
needed packages don't trigger false positives.

find_unneeded_classified wraps find_unneeded and tags each result as a
direct or indirect orphan, avoiding redundant per-package is_orphan calls.

Both are exposed as free functions and OrphanExt trait methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant