How to unpack a tar file in windows
来源:互联网 发布:大学生网络文明调查 编辑:程序博客网 时间:2024/06/15 18:40
1 Introduction
Source code is often packed for download as a TAR (Tape ARchive) file, that is a standard format in the Unix/Linux world. These files have a .tar extension; they can also be compressed, the extension is .tar.gz or.tar.bz2 in these cases. There are several ways to unpack these files.
2 tar
If you have MinGW/MSYS or Cygwin installed, you can use the tar command to unpack such files:
tar xvf <.tar file> tar xzvf <.tar.gz file> tar xjvf <.tar.bz2 file>
See the tar man page for more information.
3 7-Zip
Another option is to install 7-Zip, which has a nice graphical user interface. 7-Zip can also be used to unpack many other formats and to create tar files (amongst others).
- Download and install 7-Zip from 7-zip.org. If you do not want to use 7-Zip as a command line tool, skip the next steps.
- Add the directory you installed 7-Zip into to your path (Start -> Control Panel -> System -> Advanced -> Environment Variables).
- Move the tar file to the directory you wish to unpack into (usually the tar file will put everything into a directory inside this directory).
- Open a command prompt, and cd to the directory.
- If the tar file is compressed, type 7z x filename.tar.gz at the command prompt (where filename.tar.gzis the name of the compressed tar file). This results in a tar file called filename.tar
- Type 7z x filename.tar at the command prompt (where filename.tar is the name of the tar file).
Instead of using 7-Zip on the command line, you can use the file manager and click on a .tar, .tar.gz, or.tar.bz2 file; 7-Zip will automatically start.
4 TarTool
A simple windows command line tool (no install , just unzip)
Its hosted on codeplex tartool, complete with the source code.
- to decompress and untar .tar.gz (.tgz) files or
- just untar .tar files
>TarTool.exe
Usage :
>TarTool sourceFile destinationDirectory
>TarTool D:\sample.tar.gz ./
>TarTool sample.tgz temp
>TarTool -x sample.tar temp
TarTool 2.0 Beta supports bzip2 files such as tar.bz2 and .bz2 extraction.
TarTool -xj sample.tar.bz2 temp or TarTool -j sample.bz2
More details are on this post -- http://blog.rajasekharan.com/2009/01/16/tartool-windows-tar-gzip-tgz-extraction-tool/
- How to unpack a tar file in windows
- DirectShow - How To Play a File(Windows)
- How to untar a tar file or gzip-bz2 tar file
- How to compile and run a simple java file in jenkins on Windows
- How to remove a line from a file in java?
- how to unzip a file in a system directory
- Windows Batch File: How to read a file
- How to run a .BAT file in InstallShield?
- How to remove ^M in a uploaded text file?
- How to Open a Text File in VB .NET
- How to create SVAs in a seperate file
- How to create a File-Compare function in Visual C#
- How to run a _BAT file in InstallShield
- How to new a tld file in eclipse
- How to read data from a file in reverse order?
- How to make a KML/KMZ file in Google Earth?
- How to Install a Bin File in Fedora
- How to run test cases in a specified file?
- VMware Workstation unrecoverable error:(vmui) 虚拟机报错
- linux的shell脚本判断当前是否为root用户
- 一步一步走进Linux HOOK API(六)
- 我的gentoo,告别scim,转用fcitx
- ubuntu重启不清除 /tmp 设置
- How to unpack a tar file in windows
- 一步一步走进Linux HOOK API(七)
- 集合的应用----集合覆盖分析
- js、jquery、动态添加option项
- struts2 从一个action 跳转到另一个action的两种方法
- 大数据量处理方法总结
- python list operation
- SSH框架整合步骤
- storm安装注意事项记录