Dev.D
Dev.D

Reputation: 527

How to decompress lz4 file

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?

Upvotes: 10

Views: 49547

Answers (2)

Gismo Ranas
Gismo Ranas

Reputation: 6442

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.

Upvotes: 1

Dev.D
Dev.D

Reputation: 527

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.

Upvotes: 14

Related Questions