inventory
Extract the distribution and installed packages from a source. Extraction is entirely local; add --resolve to also map packages to canonicals via the API.
vrtmv inventory --image centos7.vmdk
vrtmv inventory --root /mnt/vm
vrtmv inventory --ssh user@host --sudo
vrtmv inventory --image centos7.vmdk --resolve
| Flag | Purpose |
|---|---|
--root / --image / --ssh | The source (see Sources). |
--ssh-port, --ssh-key, --jump, --sudo | SSH collection options. |
--resolve | Also resolve installed packages to canonical slugs via the API (needs an account). |
What it reads
- The distribution and version from
/etc/os-release(falling back to/usr/lib/os-release). - Installed packages from the dpkg status database (Debian family) or the rpm database (EL family — sqlite, ndb, or BerkeleyDB, auto-detected).
Without --resolve, inventory is a purely local report and needs no account. With --resolve, only package identifiers are sent to the API.