Differences

This shows you the differences between the selected revision and the current version of the page.

howto:extract 2012/01/13 08:09 howto:extract 2017/09/06 17:34 current
Line 1: Line 1:
-I can't believe you're not plyaing with me--that was so helpful.+====== How to extract gzipped and bzipped files (.tgz, .tar.gz, .tar.bz2.) ====== 
 + 
 +GNU tar supports the -z and -j flags, which allows extraction of compressed files without a pipeline: 
 + 
 +<code>tar -xvzf archivefile.tar.gz</code> 
 +<code>tar -xvjf archivefile.tar.bz2</code> 
 + 
 +---- 
 + 
 +Inside the DSM-G600 you can't use those flags, so there you must use a pipeline: 
 +<code>gunzip -c archivefile.tar.gz | /mnt/HD_a2/tar -xvf -</code> 
 +<code>/mnt/HD_a2/bzip2 -dc archivefile.tar.bz2 | /mnt/HD_a2/tar -xvf -</code> 
 + 
 +[bzip2 can be obtained [[http://dns323.kood.org/downloads/bzip2-1.0.3.tar.bz2|here]].  It's a bzip2 archive, so you'll obviously want to extract it //before// you install it onto the DSM-G600 8-).] 
 + 
 +---- 
 + 
 +In windows you can use various applications to extract tar.bz2 files: 
 +  * [[http://www.7-zip.org/|7Zip]] (GUI based free extractor) 
 +  * [[http://gnuwin32.sourceforge.net/packages/bzip2.htm|bzip2]]+[[http://gnuwin32.sourceforge.net/packages/tar.htm|tar]] for windows 
 +  * [[http://cgpgroup.com/index.asp?PgToLd=WBZIP2|wbzip2]] with GUI 
 +  * [[http://www.rarlab.com/|WinRAR]]

Personal Tools