Expand description
Official package index management, persistence, and enrichment.
Split into submodules for maintainability. Public API is re-exported
to remain compatible with previous crate::index consumers.
Structs§
- Official
Index - What: Represent the full collection of official packages maintained in memory.
- Official
Pkg - What: Capture the minimal metadata about an official package entry.
Functions§
- all_
official - What: Return the entire official index as a list of
PackageItems. - all_
official_ or_ fetch - What: Return the entire official list; if empty, try to populate from disk and return it.
- explicit_
names - What: Return a cloned set of explicitly installed package names.
- find_
package_ by_ name - What: Find a package by name in the official index and return it as a
PackageItem. - is_
artix_ galaxy - What: Check if a repo name is the Artix galaxy repository.
- is_
artix_ lib32 - What: Check if a repo name is the Artix lib32 repository.
- is_
artix_ omniverse - What: Check if a repo name is the Artix omniverse repository.
- is_
artix_ repo - What: Check if a repo name belongs to Artix Linux
- is_
artix_ system - What: Check if a repo name is the Artix system repository.
- is_
artix_ universe - What: Check if a repo name is the Artix universe repository.
- is_
artix_ world - What: Check if a repo name is the Artix world repository.
- is_
cachyos_ repo - What: Check if a repo name belongs to
CachyOS - is_
eos_ name - What: Heuristic to treat a name as EndeavourOS-branded
- is_
eos_ repo - What: Check if a repo name is an
EndeavourOSrepo - is_
installed - What: Query whether
nameappears in the cached set of installed packages. - is_
manjaro_ name_ or_ owner - What: Determine if a package or its owner indicates Manjaro
- is_
name_ manjaro - What: Determine if a package name is Manjaro-branded
- load_
from_ disk - What: Load the official index from
pathif a valid JSON exists. - query_
explicit_ packages_ sync - What: Query pacman directly for explicitly installed packages with the specified mode.
- refresh_
explicit_ cache - What: Refresh the process-wide cache of explicitly installed package names.
- refresh_
installed_ cache - What: Refresh the process-wide cache of installed package names using
pacman -Qq. - request_
enrich_ for - What: Request enrichment (
pacman -Si) for a set of packagenamesin the background, merge fields into the index, persist, and notify. - save_
to_ disk - What: Persist the current official index to
pathas JSON. - search_
official - What: Search the official index for packages whose names match
query. - update_
in_ background - What: Spawn a background task to refresh the official index and notify on changes.