Skip to main content

Module inventory

Module inventory 

Source
Expand description

What is installed, where from, at which version, and whether an update is waiting: one snapshot from a few read-only queries (no root, no network: updates come from the repository metadata already on the machine), so a list of entries is answered by lookups.

Structs§

Inventory
A snapshot of the machine’s packages.

Enums§

Status
How an entry stands, for showing it.

Functions§

nix_owner
Who manages a command that resolves into the Nix store: whichever of places has the same command resolving to the same file, else Nix (a profile or nix-env). None outside the store. resolve follows links.
parse_apt_upgradable
name/suite version arch [upgradable from: old] lines from apt list.
parse_columns
Tab-separated id version columns from flatpak list.
parse_dnf_upgrades
name.arch version repository lines from dnf list –upgrades.
parse_dpkg
status package version lines from dpkg-query; only installed ones.
parse_pacman
name version lines (pacman -Q, and rpm with that format).
parse_pacman_updates
name old -> new lines from pacman -Qu, skipping ignored packages.
store_version
The version in a Nix store path: /nix/store/<hash>-ripgrep-15.2.0/bin/rg gives 15.2.0.
which
Where a command is on the PATH.