“教你轻松安装unzip——Linux必备技能”(linux安装unzip)

Linux是一款广受欢迎的操作系统,可以帮助用户解决很多问题。熟练使用Linux系统,比如安装unzip,是Linux掌握者必备的技能。

unzip是一款用于在Linux系统中解压缩的小工具,可以帮助用户轻松解压多种压缩文件格式,例如zip、rar、tar等。今天,小编就为大家教授一下如何轻松地安装unzip到Linux系统中:

### 一、使用YUM命令安装unzip

1. 首先,打开终端,输入 `yum install -y unzip`,便可开始安装unzip。

2. 输入完上述命令后,将看到如下提示,表示安装已开始:

“`shell

Dependencies Resolved

============================================================================================

Package Arch Version Repository Size

============================================================================================

Installing:

unzip x86_64 6.0-21.el7 base 164 k

Transaction Summary

============================================================================================

Install 1 Package

Total download size: 164 k

Installed size: 437 k

Is this ok [y/d/N]:


3. 输入y确认表示同意,接着便会开始安装,安装完成后输入 `unzip -h `,若输出如下信息,表示成功安装:

```shell
UnZip 6.00 of 20 April 2009, by Info-ZIP. Portions of this software were developed by
the Indiana University Extreme! Lab For the full list of authors, refer to the file
AUTHORS.
Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
Default action is to extract files in list, except those in xlist, to exdir

### 二、使用APT命令安装unzip

1. 打开终端,输入 `apt-get install unzip`,便可开始安装unzip。

2. 输入完上述命令后,将看到如下提示,表示安装已开始:

“`shell

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following additional packages will be installed:

libbz2-1.0

The following NEW packages will be installed:

libbz2-1.0 unzip

0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade

Need to get 223 kB of archives.

After this operation, 517 kB of additional disk space will be used.


3. 输入y确认表示同意,接着便会开始安装,安装完成后输入 `unzip -h`,若输出如下信息,表示成功安装:

```shell
UnZip 6.00 of 20 April 2009, by Info-ZIP. Portions of this software were developed by
the Indiana University Extreme! Lab For the full list of authors, refer to the file
AUTHORS.
Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
Default action is to extract files in list, except those in xlist, to exdir

以上就是小编给大家分享的关于如何轻松安装unzip到Linux系统中的内容,使用YUM或者APT命令,都可以实现轻松安装unzip。最后,希望大家能够学好Linux,增强自身专业技能!


数据运维技术 » “教你轻松安装unzip——Linux必备技能”(linux安装unzip)