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
placeshas the same command resolving to the same file, else Nix (a profile or nix-env). None outside the store.resolvefollows links. - parse_
apt_ upgradable name/suite version arch [upgradable from: old]lines from apt list.- parse_
columns - Tab-separated
id versioncolumns from flatpak list. - parse_
dnf_ upgrades name.arch version repositorylines from dnf list –upgrades.- parse_
dpkg status package versionlines from dpkg-query; only installed ones.- parse_
pacman name versionlines (pacman -Q, and rpm with that format).- parse_
pacman_ updates name old -> newlines from pacman -Qu, skipping ignored packages.- store_
version - The version in a Nix store path:
/nix/store/<hash>-ripgrep-15.2.0/bin/rggives 15.2.0. - which
- Where a command is on the PATH.