Linux / UNIX: Untar / Extract a .lzma Tar Ball

Linux / UNIX: Untar / Extract a .lzma Tar Ball

To extract a .lzma tar ball (a tar archive that has been compressed using the LZMA algorithm) under Linux or UNIX, you will need to use a utility that can handle LZMA compression, such as tar or p7zip.

Here is an example of how to extract a .lzma tar ball using tar:

  1. Install the xz-utils package, which includes the lzma utility for decompressing LZMA-compressed files. On a Debian-based system, you can install the package using the following command:
sudo apt-get install xz-utils
Sou‮ww:ecr‬w.lautturi.com

On a Red Hat-based system, you can install the package using the following command:

sudo yum install xz

On a FreeBSD system, you can install the package using the following command:

sudo pkg install xz
  1. Extract the .lzma tar ball using the tar command with the -xJf options, followed by the name of the .lzma file. For example:
tar -xJf /path/to/myfile.tar.lzma

This will extract the contents of the .lzma tar ball to the current directory.

Alternatively, you can use the p7zip utility to extract a .lzma tar ball. To install p7zip on a Debian-based system, use the following command:

sudo apt-get install p7zip-full

To extract a .lzma tar ball using p7zip, use the 7z command with the x option, followed by the name of the .lzma file. For example:

7z x /path/to/myfile.tar.lzma

This will extract the contents of the .lzma tar ball to the current directory.

Keep in mind that the syntax for extracting .lzma tar balls may vary depending on your specific operating system and the utilities you are using. For more information and other options, you can refer to the documentation for your specific operating system or the man pages for the relevant utilities.

Created Time:2017-10-29 22:08:57  Author:lautturi