<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>UnpackCompressedFiles</title><revhistory><revision><revnumber>2</revnumber><date>2013-03-07 21:23:03</date><authorinitials>localhost</authorinitials><revremark>converted to 1.6 markup</revremark></revision><revision><revnumber>1</revnumber><date>2006-07-04 14:59:27</date><authorinitials>Scripting Subsystem</authorinitials></revision></revhistory></articleinfo><section><title>Unpacking archives in .tar.gz format</title><para>This page contains step by step instructions on how to unpack .tar.gz files. In the following, I assume that you have an archive file called: </para><screen><![CDATA[myarchive.tar.gz]]></screen><para>and you want to unpack the file to a directory called: </para><screen><![CDATA[mydirectory]]></screen><para>&quot;myarchive.tar.gz&quot; will be a unix tape archive, or .tar file, which has been compressed using &quot;gzip&quot;. See the <ulink url="https://lsr-wiki-01.mrc-cbu.cam.ac.uk/imaging/UnpackCompressedFiles/imaging/ReadingOnlineDocs#Uncompress">online reading page</ulink> for more information on compression formats. </para><section><title>Unpacking in windows</title><para>The easiest way to unpack archives in windows is to use an archive utility such as <ulink url="http://www.bamsystems.com/easyzip/">EasyZip</ulink>, (which is freeware) or the shareware program, <ulink url="http://www.winzip.com">winzip</ulink>. Both programs will uncompress .gz, and .Z files, as well as the most common windows compression format, .zip files (compressed with a version of the pkzip algorithm). So, step by step: 1. Save &quot;myarchive.tar.gz&quot; to any directory </para><orderedlist numeration="arabic"><listitem><para>Open &quot;myarchive.tar.gz&quot; with the archive utility </para></listitem><listitem><para>If using winzip, accept its suggestion to unpack the .tar file to a tempory folder. If using <ulink url="https://lsr-wiki-01.mrc-cbu.cam.ac.uk/imaging/UnpackCompressedFiles/imaging/EasyZip#">EasyZip</ulink>, double click on the .tar file when <ulink url="https://lsr-wiki-01.mrc-cbu.cam.ac.uk/imaging/UnpackCompressedFiles/imaging/EasyZip#">EasyZip</ulink> opens to show the files in the .tar file </para></listitem><listitem><para>Click on the extract button, and select &quot;mydirectory&quot; to extract the files to </para></listitem></orderedlist></section><section><title>Unpacking in Unix</title><para>Working in unix, you should first uncompress the compressed archive, and then extract the files in the resulting tape archive, or .tar file. Thus: 1. Save the archive to &quot;mydirectory&quot; </para><orderedlist numeration="arabic"><listitem><para>Change the current directory to &quot;mydirectory&quot; </para></listitem><listitem><para>Uncompress with the command: </para></listitem></orderedlist><screen><![CDATA[gunzip myarchive.tar.gz]]></screen><itemizedlist><listitem override="none"><para>at the unix prompt. This should result in a new file, &quot;myarchive.tar&quot; </para></listitem><listitem><para>Extract the files from the .tar file with the command: </para></listitem></itemizedlist><screen><![CDATA[tar xvf myarchive.tar]]></screen><itemizedlist><listitem override="none"><para>at the unix prompt. </para></listitem></itemizedlist><para>And that's it.Matthew Brett 18/10/99 </para></section></section></article>