Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown   Email 



TAR, Unpacking Packages


There are packages in many different formats and I thought you would like to know all the different options for unpacking them:


.tar.gz

CODE
$ tar -xvzf package_name.tar.gz

( x= extract v=verbose z=(un)compress f=file )


.tgz

CODE
$ tar -xvzf package_name.tgz



.tar.z

CODE
$ tar -xvzf package_name.tar.z



.tar.bz2

CODE
$ tar -jxvf package_name.tar.bz2

( j=bzip2 )


.gz

CODE
$ gunzip package_name.gz



.bz2

CODE
$ bunzip2 package_name.bz2



So, now if you get a package, no need to right click it and select unpack . . . but choose the more speedy method of the commandline !

( Just for your info, to wrap a package up: “tar -cvzf package.tar.gz file1 file2 file 3” where “package is the name you want the wrap to have, and file1 etc. the files that will be in the package )

More info: tar --help.


Bruno


-- Nov 24 2003 ( Revised Dec 11 2005 ) --


Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown   Email