Is xz installed in Torizon OS 7.5.0?

I run Torizon OS 7.5.0 on Verdin iMX8M-Plus and I would like using xz to compress data.

If I run xz –version I get error bash: xz: command not found

Based on this message it seems that xz was installed on Torizon OS.

Is it available on new Torizon OS 7.5.0?

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


Based on the available documentation, I don’t have specific information about the xz utility’s availability in Torizon OS 7.5.0. The documentation focuses on building custom images, device tree overlays, and system configuration rather than specific package availability.

Since you’re running Torizon OS 7.5.0 on Verdin iMX8M Plus and need the xz compression utility, you have a few options:

Solutions

1. Use a Container with xz

The recommended approach for Torizon OS is to use containers for additional tools. You can run xz from within a container that has it installed:

docker run --rm -v $(pwd):/data alpine:latest sh -c "apk add xz && xz --version"

2. Custom Image Build

If you need xz permanently available in the base system, you can build a custom Torizon OS image that includes it. You would need to build from source using Yocto Project/OpenEmbedded (1) and add the xz package to your custom image recipe.

3. Alternative Compression Tools

Check if other compression tools are available in your current Torizon OS installation:

  • gzip / gunzip
  • bzip2 / bunzip2

Getting More Information

To get detailed information about your current system and available packages, you can use the tdx-info command. For more details, see: Getting Device Information with Tdx-Info | Toradex Developer Center

The containerized approach is typically the most practical solution for Torizon OS, as it maintains the minimal base system while providing access to additional tools when needed.

Best regards, Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

Greetings @vix,

I checked myself, but I don’t believe xz was ever installed on standard Torizon OS. That message regarding the CVE was more stating that it’s not possible for Torizon to be affected by the referenced CVE since even if xz was installed it’s not the version deemed dangerous by the CVE.

We don’t explicitly install xz into Torizon OS anyways, so if it was ever in Torizon OS it was by way of some other package pulling it in as a dependency. That said, I checked as far back as Torizon 5.7.2 and this old version doesn’t seem to have xz either. Leading to my assumption that I don’t think we ever installed xz.

If you truly need to compress something on the device running Torizon OS, a container with xz could do the job. I believe this is what others have done. If for some reason you need xz on the base OS itself, I would be curious as to your reasoning why.

Best Regards,
Jeremias

Hi @jeremias.tx

Thanks for teh confirmation about xz. That message confused me.

I did the job using gzip (which is installed in Torizon OS).

Glad I was able to help clarify.

Best Regards,
Jeremias