什么是适用于 Windows 的好的 tar 实用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/484133/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What's a good tar utility for Windows?
提问by skiphoppy
I use Cygwin regularly, but I have a need these days to extract tar.gz and tar.bz2 files on other people's Windows machines. They don't want Cygwin; they need a GUI. I've tried 7-zip, which some other people in our company were using, but 7-zip makes the braindead decision to require you to first uncompress a file to a new destination file, then untar the file, thus wasting time and disk space, and requiring extra actions on my part. And there's other things I don't like about its interface.
我经常使用 Cygwin,但最近我需要在其他人的 Windows 机器上提取 tar.gz 和 tar.bz2 文件。他们不想要 Cygwin;他们需要一个 GUI。我试过 7-zip,我们公司的其他一些人正在使用它,但是 7-zip 做出了一个愚蠢的决定,要求您首先将文件解压缩到新的目标文件,然后解压缩文件,从而浪费时间和磁盘空间,并需要我采取额外的行动。还有其他我不喜欢它的界面的地方。
I just received a new Windows workstation and decided to try out the ZipGenius software the powers that be decided to provide with it, but it doesn't even handle tar.gz files.
我刚刚收到一个新的 Windows 工作站,并决定试用 ZipGenius 软件决定为其提供的功能,但它甚至不处理 tar.gz 文件。
Any suggestions on a better tool?
关于更好的工具的任何建议?
采纳答案by Gonzalo Quero
回答by Rob Kennedy
A good tar utility for Windows is tar
. No need to involve Cygwin, either; it can run as a native program. The UnxUtils project on Sourceforgehas lots of Windows versions of common Unix utilities without the need for Cygwin.
一个很好的 Windows tar 实用程序是tar
. 也不需要涉及 Cygwin;它可以作为本机程序运行。Sourceforge上的UnxUtils 项目拥有许多 Windows 版本的常见 Unix 实用程序,而无需 Cygwin。
If you need a GUI, WinZip can read tarballs, and so can WinRar. They behave the same as you describe 7-Zip, though. If you open a .tar.gzfile, they first unzip the file and then open the inner tar file. There's not much you can do to avoid that in a GUI. Both the tarand gzformats are streamable, which makes them perfect for, say, piping the output from gunzip
into tar
in order to unpack a tarball without using lots of extra disk space. But a GUI is going to offer a list of all the files in the archive, which you can't do without reading the entire tar file. A GUI will also allow you to point and click to select which single files to extract, and you can't do that without reading the entire file, either.
如果您需要 GUI,WinZip 可以读取 tarball,WinRar 也可以。不过,它们的行为与您描述的 7-Zip 相同。如果您打开.tar.gz文件,他们首先解压缩文件,然后打开内部 tar 文件。在 GUI 中没有什么可以避免这种情况。无论是焦油和GZ格式可流,这使它们非常适合,比如,通过管道将输出gunzip
到tar
以解压压缩包,而无需使用大量额外的磁盘空间。但是 GUI 将提供存档中所有文件的列表,您必须阅读整个 tar 文件才能做到这一点。GUI 还允许您指向并单击以选择要提取的单个文件,而且您也无法在不阅读整个文件的情况下执行此操作。
What a GUI coulddo is unzip the file in memory to create an index and then discard the data, retaining only enough to display the index. Once you select the files to extract, it would unzip the tarball a second time and write the selected data to disk. But I'm not aware of any programs that do it that way. If you're that low on disk space, use the command-line method instead.
GUI可以做的是在内存中解压缩文件以创建索引,然后丢弃数据,仅保留足以显示索引的数据。选择要提取的文件后,它会再次解压缩 tarball 并将所选数据写入磁盘。但我不知道有任何程序会这样做。如果您的磁盘空间不足,请改用命令行方法。
回答by Martijn Laarman
Total Commanderhandles .tar.gz out of the box and is just the best FileSystem manager around in my book :)
Total Commander开箱即用地处理 .tar.gz 并且是我书中最好的文件系统管理器:)
回答by senthil
回答by Drosophila
You can use 7-Zip, or PeaZip if you dislike 7-Zip's UI, both are free and open source. Another good choice may be WinRAR, it is non-free but just shows a nag screen at program's startup when the trial expires, not a big nag at all.
如果您不喜欢 7-Zip 的用户界面,您可以使用 7-Zip 或 PeaZip,两者都是免费和开源的。另一个不错的选择可能是 WinRAR,它是非免费的,但只是在试用期到期时在程序启动时显示一个唠叨屏幕,根本不是一个大唠叨。
回答by Joe
Archive eXchange from www.objectfusion.com has the best TAR support of any of the Windows software currently on the market.
来自 www.objectfusion.com 的 Archive eXchange 拥有目前市场上所有 Windows 软件中最好的 TAR 支持。
回答by Dillie-O
I've always been a big fan of ZipGenius. They support TAR formats (7zip too) and it has a lot of great features. Plus it is free.
我一直是ZipGenius 的忠实粉丝。它们支持 TAR 格式(也支持 7zip)并且它有很多很棒的功能。另外它是免费的。