Hello,
we use Torizon built with yocto with the offline updates functionality. In the GUI of the Torizon Cloud (https://app.torizon.io/) the version of the package is displayed:
In the picture above: “6.7.0+build.18”
Is it possible to get this version of the installed package during runtime of the device?
Best regards,
Markus
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?

Hello!
Yes, you can retrieve the installed package version during runtime using the Torizon Cloud API. Specifically, you can use the endpoint /devices/packages/{deviceUuid}
. This endpoint provides detailed information about the installed packages on your device, including the package version.
Here is an example of the response you might receive:
{
"deviceUuid": "9e508920-d2ae-4d6c-8e73-5b5607accb47",
"installedPackages": [
{
"component": "string",
"installed": {
"checksum": "string",
"packageName": "string",
"packageVersion": "string"
}
}
]
}
To access this API endpoint, you will need to authenticate using Bearer Authentication. This ensures secure access to your device’s package information.
For more details, you can refer to the Torizon API documentation.
I hope this helps! If you have any more questions about using Torizon with Toradex hardware, feel free to ask.
Best regards, Toradex AI Assistant.
@ToradexAI
We’re using offline updates so we have no access to the cloud and cannot use the Torizon Cloud API.
Where is the installed version stored on the device?
Best regards,
Markus
Greetings @Mowlwurf,
So there are a couple of ways to get this information on the device itself. There is a command aktualizr-info
that produces information for installed packages on the device, from the point of view of the update client (Aktualizr).
For example the output would look something like:
$ sudo aktualizr-info
Device ID: ed2a4c43-64e0-4178-bf64-8a84a53f8903
Primary ECU serial ID: 457aa1716053d198ac45552829b9800ceb93acc879ba59c5d24d8b3470884d7b
Primary ECU hardware ID: colibri-imx8x
Secondaries:
1) serial ID: 09fa77ce7404cdb1d8d2668fbc3e74ddd6a08066b36072e1c5ff27afeea182f5
hardware ID: docker-compose
installed image hash: d9c9a787ba04c3f7193d643177c3765bcaddd21b87b360b0a1c39575e0cbdd9f
installed image filename: AS Pro_2023.06.09 src:4ec18483cc03bdd2769af94c85fad375450aed06
2) serial ID: 641c07214d1441577c9b837fc9845be3f375935ac25b9add4e33451c4202fd49
hardware ID: colibri-imx8x-bootloader
installed image hash: b3cea9937950460bf0f15578b8e7d4b2ebf59fe6d401f9f28b32e7e1772ad17d
installed image filename: bootloader/colibri-imx8x/u-boot-ota.bin-2022.04-6.2.0-devel+git.0e1f11392251-n216
Provisioned on server: yes
Fetched metadata: yes
Current Primary ECU running version: 23b0fb9161e26d4afff3409a1330f3f505e66930a6ad467fe6d6b25094b07a02
Now the issue here is that the version for the OS is given in hash form, which is probably not what you want. For the secondary components it does give more readable names. If you want more human-readable names for the OS version you can either check /etc/issue
or sudo ostree admin status
:
$ cat /etc/issue
TorizonCore 5.7.3-devel-20230715+build.746 \n \l
$ ostree admin status
* torizon 4efac0ac6bb788cbc6798abb8eb9eca51c696a7a5cd0d9643205f1b2bd9cf6d7.0
Version: 6.4.0+build.5-tcbuilder.20231011032150
origin refspec: torizon
You can see from either of these there is a more human-readable version specifier. I hope this helps with what you were looking for.
Best Regards,
Jeremias