Firmware (LuxOS)
API Docs
LUXMiner commands
updatecheck

updatecheck

Description

Check the update source and the local package registry to retrieve a list of packages and their respective versions. For each package, the current installed version, as well as the one available on the update site are returned. Comparing the Available with the Installed fields show if a given package is on the latest version or not, but keep in mind that they can be empty if the package is not present on the server anymore (in case of Available) or is not currently installed (in case of Installed).

Note: This command always hits the remote source to always show the most updated information.

Command

$ echo '{"command": "updatecheck"}' | nc $MINER_IP 4028 | jq

Examples

In this example, we can see that the luxminer package is slightly outdated, while all the others are in their latest versions.

$ echo '{"command": "updatecheck"}' | nc $MINER_IP 4028 | jq
{
  "STATUS": [
    {
      "Code": 356,
      "Description": "LUXminer 2024.9.27.082624-9aad3f57",
      "Msg": "Update Check",
      "STATUS": "S",
      "When": 1727426704
    }
  ],
  "UPDATES": [
    {
      "Available": "20240926.41622.35",
      "Installed": "20240926.41622.35",
      "Package": "luxupdate"
    },
    {
      "Available": "20240926.41622.35",
      "Installed": "20240926.41622.35",
      "Package": "luxminer"
    }
  ],
  "id": 1
}

Field details

FieldNotes
AvailableThe latest available version of this package. An empty value means the package is not available in the server anymore.
InstalledThe currently installed version of this package. An empty value means a fresh install or that the package is not installed.
PackageThe name of the package.