在 Windows 上解压多部分 tarball
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/678905/
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
Untar multipart tarball on Windows
提问by
I have a series of files named filename.part0.tar, filename.part1.tar, … filename.part8.tar.
我有一系列名为filename.part0.tar、filename.part1.tar、... filename.part8.tar 的文件。
I guess tar can create multiple volumes when archiving, but I can't seem to find a way to unarchive them on Windows. I've tried to untar them using 7zip (GUI & commandline), WinRAR, tar114 (which doesn't run on 64-bit Windows), WinZip, and ZenTar(a little utility I found).
我猜 tar 可以在归档时创建多个卷,但我似乎找不到在 Windows 上取消归档它们的方法。我尝试使用 7zip(GUI 和命令行)、WinRAR、tar114(不能在 64 位 Windows 上运行)、WinZip 和ZenTar(我发现的一个小实用程序)来解压它们。
All programs run through the part0file, extracting 3 rar files, then quit reporting an error. None of the other part files are recognized as .tar, .rar, .zip,or .gz.
所有程序运行通过part0文件,解压3个rar文件,然后退出报错。其他部分文件均无法识别为.tar、.rar、.zip或.gz。
I've tried concatenating them using the DOS copy command, but that doesn't work, possibly because part0thru part6and part8are each 100Mb, while part7is 53Mb and therefore likely the last part. I've tried several different logical orders for the files in concatenation, but no joy.
我试着使用DOS复制命令串联它们,但不起作用,可能是因为PART0通6部分和第8部分均为百兆,而PART7是53MB,因此有可能是最后一部分。我已经为连接中的文件尝试了几种不同的逻辑顺序,但没有任何乐趣。
Other than installing Linux, finding a live distro, or tracking down the guy who left these files for me, how can I untar these files?
除了安装 Linux、寻找实时发行版或追踪为我留下这些文件的人之外,我如何解压这些文件?
回答by callingshotgun
Install 7-zip. Right click on the first tar. In the context menu, go to "7zip -> Extract Here".
安装 7-zip。右键单击第一个 tar。在上下文菜单中,转到“7zip -> 在这里提取”。
Works like a charm, no command-line kung-fu needed:)
像魅力一样工作,不需要命令行功夫:)
EDIT: I only now noticed that you mention already having tried 7zip. It might have balked if you tried to "open" the tar by going "open with" -> 7zip - Their command-line for opening files is a little unorthodox, so you have to associate via 7zip instead of via the file association system built-in to windows. If you try the right click -> "7-zip" -> "extract here", though, that should work- I tested the solution myself (albeit on a 32-bit Windows box- Don't have a 64 available)
编辑:我现在才注意到您提到已经尝试过 7zip。如果您尝试通过“打开方式”-> 7zip 来“打开”tar,它可能会犹豫不决 - 他们用于打开文件的命令行有点非正统,因此您必须通过 7zip 而不是通过构建的文件关联系统进行关联- 进入窗户。但是,如果您尝试右键单击->“7-zip”->“在此处提取”,那应该可行-我自己测试了该解决方案(尽管在 32 位 Windows 机器上-没有 64 可用)
回答by Bashmakov Evgeniy
1) download gzip http://www.gzip.org/for windows and unpack it
2) gzip -c filename.part0.tar > foo.gz
gzip -c filename.part1.tar >> foo.gz
...
gzip -c filename.part8.tar >> foo.gz
3) unpack foo.gz
1) 下载 gzip http://www.gzip.org/for windows 并解压
2) gzip -c filename.part0.tar > foo.gz
gzip -c filename.part1.tar >> foo.gz
...
gzip -c 文件名.part8.tar >> foo.gz
3) 解压 foo.gz
worked for me
对我来说有效
回答by Edwin
As above, I had the same issue and ran into this old thread. For me it was a severe case of RTFM when installing a Siebel VM . These instructions were straight from the manual:
如上所述,我遇到了同样的问题并遇到了这个旧线程。对我来说,在安装 Siebel VM 时,这是一个严重的 RTFM 案例。这些说明直接来自手册:
cat \
OVM_EL5U3_X86_ORACLE11G_SIEBEL811ENU_SIA21111_PVM.tgz.1of3 \
OVM_EL5U3_X86_ORACLE11G_SIEBEL811ENU_SIA21111_PVM.tgz.2of3 \
OVM_EL5U3_X86_ORACLE11G_SIEBEL811ENU_SIA21111_PVM.tgz.3of3 \
| tar xzf –
Worked for me!
对我来说有效!
回答by Assaf Lavie
The tar -M
switch should it for you on windows (I'm using tar.exe).
该tar -M
开关应该在 Windows 上为您提供(我使用的是 tar.exe)。
tar --help
says:
tar --help
说:
-M, --multi-volume create/list/extract multi-volume archive
回答by Robert S
I found this thread because I had the same problem with these files. Yes, the same exact files you have. Here's the correct order: 042358617 (i.e. start with part0, then part4, etc.)
我找到了这个线程,因为我对这些文件有同样的问题。是的,您拥有的完全相同的文件。这是正确的顺序:042358617(即从第 0 部分开始,然后是第 4 部分,等等)
Concatenate in that order and you'll get a tarball you can unarchive. (I'm not on Windows, so I can't advise on what app to use.) Note that of the 19 items contained therein, 3 are zip files that some unarchive utilities will report as being corrupted. Other apps will allow you to extract 99% of their contents. Again, I'm not on Windows, so you'll have to experiment for yourself.
按该顺序连接,您将获得一个可以取消归档的 tarball。(我不在 Windows 上,所以我不能建议使用什么应用程序。)请注意,其中包含的 19 个项目中,3 个是 zip 文件,一些未归档的实用程序将报告为已损坏。其他应用程序将允许您提取 99% 的内容。再说一次,我不是在 Windows 上,所以你必须自己试验。
Enjoy! ;)
享受!;)