How to decompress lz4 file
Asked Answered
C

2

10

I have a folder/file which is with the extension abc.tar.lz4 I want to be able to view the contents of this file but I have been unable to do so. I am using MACOS and I installed lz4 via my terminal using the command:

brew install lz4

How can I view the contents of this file?

Cabrera answered 27/7, 2021 at 18:45 Comment(6)
Try /usr/local/bin/lz4 -dc < abc.tar.lz4 | tar xvf -Kristykristyn
Or maybe omit the < from above.Kristykristyn
I get this as the output/error @MarkSetchell : abc.tar.lz4: is not a regular fileCabrera
Mmm, ok. Try file abc.tar.lz4 to see what sort of file it is.Kristykristyn
abc.tar.lz4: LZ4 compressed data (v1.4+) @MarkSetchellCabrera
This folder is placed on the desktop folderCabrera
C
13

As mentioned by Mark Setchell what worked for me is:

 /usr/local/bin/lz4 -dc < abc.tar.lz4 | tar xvf -

where:

/usr/local/bin/lz4 -> the path where lz4 is installed. Since I used homebrew, it installs packages within /usr/local/bin

And replace abc.tar.lz4 with the .tar.lz4 file name.

Cabrera answered 30/7, 2021 at 13:55 Comment(0)
U
0

A solution easier to remember is:

lz4 -d filename.tar.lz4

Then just double-click the file in finder or type:

tar xvf filename.tar

In case you forget the argument to decompress use the standard for help:

lz4 -h

which gives you a short summary of the usage.

Ultranationalism answered 26/8, 2024 at 11:1 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.