首页 > 编程知识 正文

7z包解压命令,linux 解压7z压缩包

时间:2023-05-03 15:38:34 阅读:285893 作者:2578

安装p7zip-full软件

我下载了离线的Android源码android-8.1.0_r1.7z.大小有11个G。我需要解压。发现后缀是.7z。之前没接触过。

于是我先在应用商店搜索7z,发现了一个名为p7zip-full的软件,描述是(见图)

7z and 7za file archivers with high compre


就是他了,然后我apt-get install p7zip-full安装了这个软件。

p7zip-full使用指南 cds@cds-TN15S:~/baidunetdiskdownload$ 7z -h7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz (306C3),ASM,AES-NI)Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...] [<@listfiles...>]<Commands> a : Add files to archive b : Benchmark d : Delete files from archive e : Extract files from archive (without using directory names) h : Calculate hash values for files i : Show information about supported formats l : List contents of archive rn : Rename files in archive t : Test integrity of archive u : Update files to archive x : eXtract files with full paths x参数就是解压的选项指令7z x android-8.1.0_r1.7z即可开始解压。
如图:

bash操作记录

cds@cds-TN15S:~/baidunetdiskdownload$ lsandroid-8.1.0_r1.7zcds@cds-TN15S:~/baidunetdiskdownload$ aptitude search 7zp i7z - reporting tool for i7, i5, i3 CPUs p i7z:i386 - reporting tool for i7, i5, i3 CPUs v libaac-tactics-ocaml-dev-hv7z9: - v libaac-tactics-ocaml-hv7z9:i386 - v libinifiles-ocaml-dev-xe7z1 - v libinifiles-ocaml-xe7z1 - p p7zip - 7zr file archiver with high compression rap p7zip:i386 - 7zr file archiver with high compression rap p7zip-full - 7z and 7za file archivers with high comprep p7zip-full:i386 - 7z and 7za file archivers with high comprep p7zip-rar - non-free rar module for p7zip p p7zip-rar:i386 - non-free rar module for p7zip cds@cds-TN15S:~/baidunetdiskdownload$ sudo apt-get install p7zip-full[sudo] password for cds: Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following additional packages will be installed: p7zipSuggested packages: p7zip-rarThe following NEW packages will be installed: p7zip p7zip-full0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded.Need to get 1,522 kB of archives.After this operation, 5,755 kB of additional disk space will be used.Do you want to continue? [Y/n] yGet:1 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 p7zip amd64 16.02+dfsg-6 [358 kB]Get:2 http://mirrors.aliyun.com/ubuntu bionic/universe amd64 p7zip-full amd64 16.02+dfsg-6 [1,164 kB]Fetched 1,522 kB in 1s (1,557 kB/s) Selecting previously unselected package p7zip.(Reading database ... 184223 files and directories currently installed.)Preparing to unpack .../p7zip_16.02+dfsg-6_amd64.deb ...Unpacking p7zip (16.02+dfsg-6) ...Selecting previously unselected package p7zip-full.Preparing to unpack .../p7zip-full_16.02+dfsg-6_amd64.deb ...Unpacking p7zip-full (16.02+dfsg-6) ...Setting up p7zip (16.02+dfsg-6) ...Setting up p7zip-full (16.02+dfsg-6) ...Processing triggers for man-db (2.8.3-2ubuntu0.1) ...Processing triggers for doc-base (0.10.8) ...Processing 1 added doc-base file...cds@cds-TN15S:~/baidunetdiskdownload$ lsandroid-8.1.0_r1.7zcds@cds-TN15S:~/baidunetdiskdownload$ 7z x android-8.1.0_r1.7z 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz (306C3),ASM,AES-NI)Scanning the drive for archives:1 file, 11027617719 bytes (11 GiB)Extracting archive: android-8.1.0_r1.7z--Path = android-8.1.0_r1.7zType = 7zPhysical Size = 11027617719Headers Size = 5973419Method = Delta LZMA2:24 BCJ PPC ARM ARMTSolid = +Blocks = 24 Would you like to replace the existing file: Path: ./android-8.1.0_r1/libcore/luni/src/test/resources/org/apache/harmony/tests/java/lang/test#.properties Size: 44 bytes (1 KiB) Modified: 2017-12-26 13:24:03with the file from archive: Path: android-8.1.0_r1/libcore/luni/src/test/resources/org/apache/harmony/tests/java/lang/test?.properties Size: 44 bytes (1 KiB) Modified: 2017-12-26 13:24:03? (Y)es / (N)o / (A)lways / (S)kip all / A(u)to rename all / (Q)uit?

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。