Skip to main content

List

List the packages the index has newer versions of.

Runs apt list --upgradable: each package with its installed version and the version the index has. Refresh the index first for what the repositories have now.

osapi client node updatepackages list [flags]

Examples​

# Two updates
osapi client node updatepackages list --target web-01

Permission​

It needs the updatepackages:read permission. osapi token roles get --name <role> shows what a role grants.

Flags​

FlagDescriptionDefault
-T, --targetTarget: _all, _any, hostname, or label (group:web.dev)_all

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml
--urlURL the client will connect tohttp://0.0.0.0:8080

Output tells how the result is printed, and what --json gives.