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:
- Do not clone github repository. Download the source package from repo https://tukaani.org/xz/#_source_packages
pkcon install gcc make
Install gcc and make.
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
./configure
./configure can give errors. Launch it with MAKE="gmake" ./configure
make
execute make as default user
devel-su make install
execute 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 refresh
ed 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.