I am trying to unpackage "gcc-4.4_4.4.3.orig.tar.gz." After reading 5 sites from Google to do the unpackage, I cannot figure it out.
Please tell me how to unpackage "gcc-4.4_4.4.3.orig.tar.gz."
thanks
I am trying to unpackage "gcc-4.4_4.4.3.orig.tar.gz." After reading 5 sites from Google to do the unpackage, I cannot figure it out.
Please tell me how to unpackage "gcc-4.4_4.4.3.orig.tar.gz."
thanks
tar xzvf gcc-4.4_4.4.3.orig.tar.gz
for a gziped file (like .tar.gz)
and
tar xJvf gcc-4.4_4.4.3.orig.tar.xz
for a file like .tar.xz
i dunno where you got that file, but XZ extraction is:
tar Jxf gcc-4.4.3.tar.xz
Instead of remembering the flag to select a compression type when extracting an archive, you can let GNU tar (version >= 1.20) autodetect it for you. Example:
tar xf archive.tar.gz
tar xf archive.tar.bz2
tar xf archive.tar.xz
The same thing of course works for listing an archive as well:
tar tf archive.tar.gz
tar tf archive.tar.bz2
tar tf archive.tar.xz
To create an archive, you can use the -a
(or --auto-compress
) flag, which makes tar use the file suffix to do the right thing:
tar caf archive.tar.gz file ...
tar caf archive.tar.bz2 file ...
tar caf archive.tar.xz file ...