How do I uncompress a tarball that uses .xz?


XZ is another compression method used to compress data. There are several ways on how to decompress XZ archive on Linux. For a tarball XZ compressed archive first try a


command with


options. This way a


command will try automatically guess a compression method. Before you run the above command firs install XZ tools:

# apt-get install xz-utils

Otherwise, you will receive error message output:

tar (child): xz: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now

To extract XZ tarball run:

$ tar xf myarchive.tar.xz

If from some reason


command fails to detect a correct decompression method use


directly specify XZ compression:

$ tar xJf myarchive.tar.xz

Next, solutions is to use XZ decompression tool


. It will first decompress XZ compression and leave you with a...

0 0

How can I extract or uncompress a file from tar ball downloaded from the Internet under Linux using bash command prompt?

You need to use the tar command to extract files from an archive or to create an archive (also known as tarball). A tarball or an archive is nothing but a single file that contains various individual files. It also includes information which allows your to restore files to their original form by one or more extraction programs such as tar command.

Extract or Unpack a TarBall File

To unpack or extract a tar file, type:

To save disk space and bandwidth over the network all files are saved using compression program such as gzip or bzip2. To extract / unpack a .tar.gz (gzip) file, enter (note -z option):

To extract / unpack a .tar.bz2 (bzip2) file, enter (note -j option):


-x : Extract a tar ball. -v : Verbose output or show progress while extracting files. -f : Specify an archive or a tarball filename. ...
0 0
Sep 29, 2009

Upon attempting to uncompress a tarball with



Apr 23, 2009

I ftp upload a zip file to a linux pc, for example,, can I uncompress the zip file use "#tar zvf",

Mar 15, 2011

I have got a backfile with extension .tar.gz.enc. After fooling around I found out that it is encrypted gzipped tarball.

Jul 18, 2011

I'm running a script and the response is, missing utility no uncompress. Please install this utility. The system searched in /usr/sbin; /usr/bin/; /bin.

where I can receive a uncompress (which I guess is a .rpm) or utility that will work with my version of RHEL 5.6?

Running I386 GNU/LINUX
2.6.18-238.el5 #1 SMP

Apr 4, 2011

I have an upstream source tarball which, by coincidence, already contains a directory named "debian", but which has nothing to do with the "debian" directory...

0 0
Related to : How to Unzip a Tarball How to Unzip a Tarball by asid in Computers A tarball is a group of files archived using the tar (tape archive) utility. This utility is available on the Linux and Unix operating systems. Tarballs are often used as a way to distribute source code from open-source software projects. They are also used as a way to backup data. The "tar" comm
Unix unzip: how to batch unzip zip files in a folder and save in subfolders? by skimple in Computers

Say if I have a folder 'images' and inside it there are to, I want to unzip all of them and save them in subfolder which has their file name, for example, will be unzipped and saved to /0001, will be unzipped and saved to /0002, I tried to do

Can I use VBA to unzip a file using the native windows unzip feature? by Igor Carron in Computers

I'm using Outlook 2003 & I want to use a macro to unzip a file attachment on a message. Can I use...

0 0

FCVNx HP -- Неподдельная Радость (не Hewlett-Packard) F5DL5 ------------------------------------------------------------------------ sizeof( long) changed in Linux ------------------------------ foo.c #include int main() { printf("%ld %ld\n", sizeof( unsigned long), sizeof( unsigned int)); return 0; } Windows 8.1-x64, tdm-gcc 4.9.2: > gcc foo.c -o foo > foo 4 4 Ubuntu Linux 15.04 virtu@VIVI:~/chess$ clang --version Ubuntu clang version 3.6.0-2ubuntu1 (tags/RELEASE_360/final) (based on LLVM 3.6.0) Target: x86_64-pc-linux-gnu Thread model: posix virtu@VIVI:~/chess$ clang foo.c -o foo virtu@VIVI:~/chess$ ./foo 8 4 virtu@VIVI:~/chess$ gcc --version gcc (Ubuntu 4.9.2-10ubuntu13) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. virtu@VIVI:~/chess$ gcc foo.c -o foo virtu@VIVI:~/chess$ ./foo 8 4...

0 0

There is more than one way to do this, however I tend to do it like this from command prompt:

Uncompress tar.gz

The below does both the uncompressing and untarring in a single command and puts the contents in the same directory you are in:

The z argument basically does the gunzip work for you.

Uncompress tar.gz into different directory

Use the -C argument to specify the path to place the files:

tar zxvf file.tar.gz -C /path/to/somedirectory

Uncompress first, untar second

When you uncompress first using gunzip, it will strip the .gz file extension from the file leaving you with a .tar file:

gunzip file.tar.gz
tar xvf file.tar

gunzip file.tar.gz tar xvf file.tar

Uncompress tar.bz2

You might also encounter a bz2 file that you need to uncompress and untar:

Common Tar Arguments

With tar some of the arguments we used above mean the...

0 0

I have just downloaded 20MB of gdb-7.4.tar.bz2

and lamented that it wasn't xz-compressed.

With xz -9e, that would have been 25% smaller,
at 15282412 bytes (contrast w/20614020 for .bz2).
The .xz tarball would have uncompressed more quickly, too.

For reference, gnome went xz-only in September:

and I have done the same with coreutils-8.14 and 8.15 and grep-2.10.
No one has complained, since xz is available nearly everywhere,
these days, and on the few/aging systems for which it is not
already packaged, it's easy to build the latest from source.

Obviously, gdb needn't drop .gz and .bz2 tarballs now or ever,
but please do consider distributing .xz-compressed tarballs.

0 0

I work at Canonical on the Canonical Cloud Developer Ops team working on cloud related topics such as juju for the world's #1 Cloud OS, Ubuntu! My standing order is to make Ubuntu a wonderful place to participate, so if we're not making that happen for you let me know!

I try to focus on answering community and juju tagged questions on Ask Ubuntu. Part of my job at Canonical is to help Ubuntu rock for you in the cloud, be it AWS, Azure, Google, Rackspace, Dreamhost, or your own OpenStack or bare metal. So if you're doing that and we're not being awesome for you then I'm your guy to help fix your problems.

I tend to mingle on other tags and SE sites as well. I like dinosaurs, hockey, tacos, and heavy metal.

Feel free to contact me via...

0 0

Unlike Windows, installing software in has the potential to be slightly more complicated. Unless your chosen software is already in package form or resides in a repository Your Guide to Ubuntu Repositories and Package Management and can be installed with a simple line of text, the chances are you’re going to need to compile and install from a .TAR.GZ or .TAR.BZ2 file.

This can be a nightmare, but if you stick to the rules it shouldn’t be. If you’ve got a pesky archive that needs installing, the following method will create a package, install said package and provide a nice clean way to remove the software afterwards via your package manager. Command lines at the ready, deep breath please…

Tarballs Of Steel

A .TAR.GZ/BZ2 file is a compressed tarball (the uncompressed extension being .TAR) which contains the raw source code for your chosen application. Installation requires these files to be compiled, processed...

0 0

John the Ripper source code is distributed in the form of tarballs (tar archives) compressed with gzip, xz, or (for older versions) bzip2. On a Unix-like system with GNU tar (or on Cygwin if you use Windows), please use the following command for gzip-compressed tarballs:

tar xzvf john-VERSION.tar.gz

(where VERSION is a John the Ripper version number, such as 1.8.0). For xz-compressed tarballs use (note the uppercase “J”):

tar xJvf john-VERSION.tar.xz

For bzip2-compressed tarballs use (note the lowercase “j”):

tar xjvf john-VERSION.tar.bz2

On some commercial Unices, you might need to download and install gzip or xz or bzip2 on your own (perhaps from a pre-compiled freeware archive for your flavor of Unix) and/or to use more complicated command-line syntax, such as:

gzip -dc john-VERSION.tar.gz | tar xvf -

Please refer to man (manual) pages, texinfo documentation, and/or web pages on tar, gzip, xz, and bzip2 for information on the command-line...

0 0

While installing some packages on Linux, I had to download a dependent module called core-utilities. Surprisingly the core utilities package was compressed using ‘xz’ and it had an extension as .xz. I have seen .tar, .zip, .bz, .bz2, .gz, .tar.gz file formats, but today was the first time I downloaded packaged with .xz extension. After googling, I found that : XZ Utils is a free general purpose data compression package that yields high compression ratio. Interestingly, .xz compressed files can be uncompressed using well known ‘tar’ command.

How to use ‘tar’ command to uncompress .xz compressed files?

tar xvfJ filename.tar.xz

But remember, .xz formats are supported only from tar 1.22 version.

If you have a lower version of tar like me, then either you can update your tar command or download xz utilities. To update the tar command, type as shown below:

yum update tar

Note: In case, if “yum update” didn’t work for you, then you may download “tar”...

0 0

This is not good practice unless you know the implications of installing software this way, and trust the source of the file.


tar xf [filename]

This will expand the contents of the file to a folder. Then the commands are, from the folder:

./configure make sudo make install

This will compile the VLC source code, and then install it into your system. Because you are installing as root, this is why you must know that the source of the file is trustworthy.

To compile vlc, you need at least the following libraries installed:

libdvbpsi (compulsory) , mpeg2dec (compulsory) , libdvdcss if you want to be able to read encrypted DVDs , libdvdplay if you want to have DVD menu navigation , a52dec if you want to be able to decode the AC3 (i.e. A52) sound format often used in DVDs , ffmpeg, libmad, faad2 if you want to read MPEG 4 / DivX files , libogg & libvorbis if you want to read Ogg Vorbis files .

You will probably also need to install the...

0 0

2005-05-31 Lasse Collin

How the test files were selected

I was especially interested how well LZMA compression would fit in

binary package management of GNU/*/Linux distributions distributing source code of free software

In both uses the files are compressed on one computer and decompressed many times by users around the world. In practice the most important factors are:

compressed size (faster to download; more packages fit into one CD or DVD) time required in decompression (fast installation is nice) memory requirements for decompression (should the user want to use the file on e.g. an old i486 with 8 MB RAM) common format that everyone knows how to uncompress/install

Less important:

time wasted for compressing in the package build process; compiling software usually takes several minutes or even hours so spending one or two minutes to compress the package tightly increases the build time only little. memory requirements for the...
0 0

MPlayer 1.3.0 "worksforme" is out.

Less than a month after 1.2.1, we're at it again.

MPlayer 1.3.0 is compatible with the FFmpeg 3.0.x releases and (at the time of writing) with FFmpeg git. The tarball already includes a copy of FFmpeg 3.0, so you don't need to fetch it separately.

This release brings you some new codecs and formats, a lot of fixes, and many cleanups. It also includes all the enhancements and speed-ups from FFmpeg; check their changelog if you are curious about the details.

In addition to these, there were a lot of updates to accommodate the API changes made in FFmpeg. Some were simple renames, but others were quite invasive. None of them should have a user-visible effect, except maybe for some corner-cases in the channel order for multichannel files.
If you see any regression from the previous releases, please report it on the mplayer-users mailing list or use our bug tracker.

So, which version should...

0 0
Mlucas README Ernst Home

This ftp site contains Ernst Mayer's C source code for performing Lucas-Lehmer tests and sieve-based trial-factoring (TF) of prime-exponent Mersenne numbers. (Although see notes below about the GPU clients now being preferable for sieving.) In short, everything you need to search for Mersenne primes on your Intel, AMD or non-x86-CPU-based computer!

Mlucas is an open-source program for primality testing of Mersenne numbers in search of a world-record prime. You may use it to test any suitable number as you wish, but it is preferable that you do so in a coordinated fashion, as part of the Great Internet Mersenne Prime Search (GIMPS). Note that Mlucas is not (yet) as efficient as the main GIMPS client, George Woltman's Prime95 program (a.k.a. mprime for the linux version), but that program is not truly open-source, and requires the user to abide by the prize-sharing rules set by its author, should a user be lucky enough to find a new prime eligible...

0 0

You can use the split command with the -b option:

split -b 1024m file.tar.gz

It can be reassembled on a Windows machine using @Joshua's answer.

copy /b file1 + file2 + file3 + file4 filetogether

Edit: As @Charlie stated in the comment below, you might want to set a prefix explicitly because it will use x otherwise, which can be confusing.

split -b 1024m "file.tar.gz" "file.tar.gz.part-" // Creates files: file.tar.gz.part-aa, file.tar.gz.part-ab, file.tar.gz.part-ac, ...

Edit: Editing the post because question is closed and the most effective solution is very close to the content of this answer:

# create archives $ tar cz my_large_file_1 my_large_file_2 | split -b 1024MiB - myfiles_split.tgz_ # uncompress $ cat myfiles_split.tgz_* | tar xz

This solution avoids the need to use an intermediate large file when (de)compressing. Use the tar -C option to use a different directory for the resulting files. btw if the archive consists from only a single file,...

0 0
0 0
sum, cksum, md5sum, sha1sum

These are utilities for generating checksums. A checksum is a number mathematically calculated from the contents of a file, for the purpose of checking its integrity. A script might refer to a list of checksums for security purposes, such as ensuring that the contents of key system files have not been altered or corrupted. For security applications, use the md5sum (message digest 5 checksum) command, or better yet, the newer sha1sum (Secure Hash Algorithm).

Example 16-38. Checking file integrity

Also see Example A-19, Example 36-16, and Example 10-2 for creative uses of the md5sum command.

Security consultants have demonstrated that even sha1sum can be compromised. Fortunately, newer Linux distros include longer bit-length sha224sum, sha256sum, sha384sum, and sha512sum commands.


This utility encodes binary files...

0 0