Mac中有个很大的7z文件,然后去用之前安装的IZip去解压,结果始终没反应:
crifan mac 解压 7z
mac 解压 7z
mac解压7z格式文件 – book_1992的专栏 – CSDN博客
Mac上解压.7z文件(已解决) – 狐狸的懒窝 – CSDN博客
安装后,去打开试试
最后终于解压出来了:
【总结】
mac中解压7z的文件的话:
之前用IZip是没问题的,但是现在不行。
去换用:
Keka
即可。
去下载
然后正常使用去解压即可。
另外再去更新7z默认打开方式为Keka
【后记】
期间,又遇到去解压7z文件
然后用keka去解压,但是报错:
➜ use_wget_download brew search 7z ==> Formulae p7zip ➜ use_wget_download brew install p7zip ==> Downloading https://homebrew.bintray.com/bottles/p7zip-16.02_1.mojave.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/bb/bb715042a9067df735cd7d032a15988da430fbf5a297d9624b9a4a021af6fea2?__gda__=exp=1558574391~hmac=2a9cf3d7724897c2e0dfa2a6c7fa ######################################################################## 100.0% ==> Pouring p7zip-16.02_1.mojave.bottle.tar.gz 🍺 /usr/local/Cellar/p7zip/16.02_1: 103 files, 4.7MB
➜ backups 7z e www.crifan.com_allFiles_20190509.7z 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64) Scanning the drive for archives: 1 file, 11698810070 bytes (11 GiB) Extracting archive: www.crifan.com_allFiles_20190509.7z -- Path = www.crifan.com_allFiles_20190509.7z Type = 7z Physical Size = 11698810070 Headers Size = 3384746 Method = LZMA2:24 BCJ Solid = + Blocks = 8 0% 37772
结果看到提示问是否覆盖文件:
后来折腾:
【记录】备份腾讯云香港CVM的crifan.com网站全部文件和数据库
期间,又遇到去解压7z文件
然后用keka去解压,但是报错:
解压失败
错误码 13 使用“p7zip”
未知错误
所以再去解决:
mac 7z 解压
mac解压7z格式文件 – book_1992的专栏 – CSDN博客
➜ use_wget_download brew search 7z ==> Formulae p7zip ➜ use_wget_download brew install p7zip ==> Downloading https://homebrew.bintray.com/bottles/p7zip-16.02_1.mojave.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/bb/bb715042a9067df735cd7d032a15988da430fbf5a297d9624b9a4a021af6fea2?__gda__=exp=1558574391~hmac=2a9cf3d7724897c2e0dfa2a6c7fa ######################################################################## 100.0% ==> Pouring p7zip-16.02_1.mojave.bottle.tar.gz 🍺 /usr/local/Cellar/p7zip/16.02_1: 103 files, 4.7MB
然后去试试mac中用p7zip去解压7z文件
参考
7z e filename.7z
去
7z e www.crifan.com_allFiles_20190509.7z
➜ backups 7z e www.crifan.com_allFiles_20190509.7z 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64) Scanning the drive for archives: 1 file, 11698810070 bytes (11 GiB) Extracting archive: www.crifan.com_allFiles_20190509.7z -- Path = www.crifan.com_allFiles_20190509.7z Type = 7z Physical Size = 11698810070 Headers Size = 3384746 Method = LZMA2:24 BCJ Solid = + Blocks = 8 0% 37772
结果看到提示问是否覆盖文件:
或者找到解压参数中保留目录结构的
7z x www.crifan.com_allFiles_20190509.7z ➜ use_wget_download 7z x www.crifan.com_allFiles_20190509.7z 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64) Scanning the drive for archives: 1 file, 11698810070 bytes (11 GiB) Extracting archive: www.crifan.com_allFiles_20190509.7z -- Path = www.crifan.com_allFiles_20190509.7z Type = 7z Physical Size = 11698810070 Headers Size = 3384746 Method = LZMA2:24 BCJ Solid = + Blocks = 8 4% 49445 - files/doc/docbook/virtualbox_tu . ls/virtualbox_tutorial.htmls.7z
这下正常了。
另外,怀疑还是7z文件本身有问题
那么再去找找其他工具试试
如果解压还是像keka一样报错,那就证明7z文件本身有问题
就重新去备份
7z压缩大师 for mac|7z压缩大师Mac版下载 V2.5.1 – PC6苹果网
再去试试命令行中用7z去压缩
然后是没问题的。
【总结】
mac中,用7z解压和压缩:
brew install p7zip
然后解压:
7z e to_uncompress_file.7z 7z x to_uncompress_file.7z
解释:
e:解压缩 不保留原先目录结构
x:解压缩 保留原先目录结构
举例:
7z e www.crifan.com_allFiles_20190509.7z 7z x www.crifan.com_allFiles_20190509.7z
压缩=创建7z压缩文件:
7z a compressed_filename.7z /folder_to_compress/ 7za a compressed_filename.7z file_to_compress
比如:
7z a gitbook_src_root.7z gitbook_src_root/
或更复杂的:
7za a -t7z -r -bt output_filename.7z folder_to_compress/* 7za a -t7z -r -bt output_filename.7z file_to_compress
比如:
7za a -t7z -r -bt www.crifan.com_allFiles_20180320.7z /home/wwwroot/www.crifan.com/*
详见:
转载请注明:在路上 » 【已解决】Mac中如何解压7z文件