[root@iZwz97y7jsj7fz6x5nk5khZ ~]# yum install p7zip
Loaded plugins: refresh-packagekit, security
Setting up Install Process
base | 3.7 kB 00:00
dockerrepo | 2.9 kB 00:00
epel | 4.7 kB 00:00
epel/primary_db | 6.0 MB 00:00
extras | 3.4 kB 00:00
nginx | 2.9 kB 00:00
nginx/primary_db | 32 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 5.3 MB 00:01
Resolving Dependencies
--> Running transaction check
---> Package p7zip.x86_64 0:16.02-2.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================================================
Installing:
p7zip x86_64 16.02-2.el6 epel 710 k
Transaction Summary
======================================================================================================================================================================================
Install 1 Package(s)
Total download size: 710 k
Installed size: 1.9 M
Is this ok [y/N]: y
Downloading Packages:
p7zip-16.02-2.el6.x86_64.rpm | 710 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : p7zip-16.02-2.el6.x86_64 1/1
Unable to connect to dbus
Verifying : p7zip-16.02-2.el6.x86_64 1/1
Installed:
p7zip.x86_64 0:16.02-2.el6
Complete!
常用命令:
7za e core-dev.7z 解压到当前目录下,不保留原来的目录结构
7za x core-dev.7z 解压到当前目录下,但保留原来的目录结构