Skip to content

xbps Facts

See also: operations/xbps.

xbps.XbpsPackages

host.get_fact(XbpsPackages)

Returns a dict of installed XBPS packages:

{
    "package_name": ["version"],
}

xbps.XbpsSelfUpdate

host.get_fact(XbpsSelfUpdate)

Returns the packages XBPS would update to update itself, empty if xbps is up to date:

["xbps-triggers-0.128_1", "xbps-0.60.5_1"]

XBPS refuses to install or update any other package until it has updated itself, failing with "The 'xbps' package must be updated". This reads the locally synced repository index, so it can only see a new xbps after xbps-install -S has run.