安装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 -h
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip 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$ ls
android-8.1.0_r1.7z
cds@cds-TN15S:~/baidunetdiskdownload$ aptitude search 7z
p 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 ra
p p7zip:i386 - 7zr file archiver with high compression ra
p p7zip-full - 7z and 7za file archivers with high compre
p p7zip-full:i386 - 7z and 7za file archivers with high compre
p 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... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
p7zip
Suggested packages:
p7zip-rar
The following NEW packages will be installed:
p7zip p7zip-full
0 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] y
Get: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$ ls
android-8.1.0_r1.7z
cds@cds-TN15S:~/baidunetdiskdownload$ 7z x android-8.1.0_r1.7z
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip 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.7z
Type = 7z
Physical Size = 11027617719
Headers Size = 5973419
Method = Delta LZMA2:24 BCJ PPC ARM ARMT
Solid = +
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:03
with 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?