Skip to main content

Update

Refresh the package index.

Runs apt-get update. It reports changed: true when the Release file of a repository under /var/lib/apt/lists changed, and changed: false when each repository was unchanged.

osapi client node updatepackages update [flags]

Examples​

# The repositories are unchanged since the last refresh
osapi client node updatepackages update --target web-01

Permission​

It needs the updatepackages:write 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.