imagefilelz4

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?


Solution

  • 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.