Xz-utils for Sailfishos

OS VERSION: 4.6.0.15
HARDWARE: Xperia 10 iii

DESCRIPTION:

I need to extract .xz archives, I would like to share my experience installing xz-utils program from sources

STEPS TO REPRODUCE:

  1. Do not clone github repository. Download the source package from repo https://tukaani.org/xz/#_source_packages
  2. pkcon install gcc make Install gcc and make.
  3. tar -xf xz-5.8.1.tar.gz uncompress the source package (correct the command with the number of latest release) and cd into it
  4. ./configure./configure can give errors. Launch it with MAKE="gmake" ./configure
  5. makeexecute make as default user
  6. devel-su make installexecute make install as root or defaultuser

EXPECTED RESULT:

Now you can extract xz archives and flash also sd cards for your computers directly from archive

ADDITIONAL INFORMATION:

Could we evaluate to add this package and let it be used by our sailfish-archive native app?

1 Like

Erm, xz is available from Jolla repos. No need for a custom build.

pkcon install xz

8 Likes

One can also write a simple python wrapper to do xz extraction.
As a related note, zstd is a bit harder as there is no (python)
support to use the libs already in the system…
(pkcon install could do this, too? - but If i needed to vendor…)

Many thanks! I was searching for it but I still not find “xz” or “xz-utils”.
Can I ask you the very repository? I could add it in my list.

Checking on SFOS 4.4, it’s in the standard ‘jolla’ repo.
Has it been dropped in later releases? I can’t imagine that.

Have you pkcon refreshed before searching?

1 Like

It’s in the jolla repo on 5.0.0.67.

1 Like
pkcon search xz
Searching by details
Starting
Refreshing software list
Querying
Finished
Available   	wordgrinder-0.8+git3-1.2.1.bso.aarch64 (sailfishos-chum)    	Cell word processor
Installed   	xz-5.6.2+git1-1.5.1.jolla.aarch64 (installed)               	LZMA compression utilities
Available   	xz-debuginfo-5.6.2+git1-1.5.1.jolla.aarch64 (jolla)         	Debug information for package xz
Available   	xz-debugsource-5.6.2+git1-1.5.1.jolla.aarch64 (jolla)       	Debug sources for package xz
Available   	xz-devel-5.6.2+git1-1.5.1.jolla.aarch64 (jolla)             	Devel libraries & headers for liblzma
Available   	xz-doc-5.6.2+git1-1.5.1.jolla.noarch (jolla)                	Documentation for xz
Installed   	xz-libs-5.6.2+git1-1.5.1.jolla.aarch64 (installed)          	Libraries for decoding LZMA compression
Installed   	xz-lzma-compat-5.6.2+git1-1.5.1.jolla.aarch64 (installed)   	Older LZMA format compatibility binaries

PS: version info is removed when installing, so:

pkcon install xz

As root/devel-su.

1 Like

Thank you. Pkcon refresh worked, so it’s better way to install it than to compile them from binaries.