如何安装 libarchive-zip-perl Debian 10

了解如何安装 libarchive-zip-perl Debian 10 通过本教程。 libarchive-zip-perl 是用于操作 ZIP 档案的 Perl 模块

介绍

在本教程中我们学习如何安装 libarchive-zip-perl 在 Debian 10.

什么是 libarchive-zip-perl

libarchive-zip-perl 是:

Archive::Zip 模块允许 Perl 程序创建、操作、读取和写入 Zip 存档文件。

可以创建 Zip 存档,也可以从现有 zip 文件中读取。 创建后,它们可以写入文件、流或字符串。

可以添加、删除、提取、替换、重新排列和枚举成员。 它们还可以被重命名或者查询或修改它们的日期、注释或其他属性。 它们的数据可以根据需要进行压缩或解压缩。 可以从现有 Zip 文件中的成员或现有目录、文件或字符串创建成员。

有三种安装方法 libarchive-zip-perl 在 Debian 10.我们可以使用 apt-get, aptaptitude。 在以下部分中,我们将描述每种方法。 您可以选择其中之一。

使用 apt-get 安装 libarchive-zip-perl

更新 apt 数据库 apt-get 使用以下命令。

更新apt数据库后,我们可以安装 libarchive-zip-perl 使用 apt-get 通过运行以下命令:

sudo apt-get -y install libarchive-zip-perl

使用 apt 安装 libarchive-zip-perl

更新 apt 数据库 apt 使用以下命令。

更新apt数据库后,我们可以安装 libarchive-zip-perl 使用 apt 通过运行以下命令:

sudo apt -y install libarchive-zip-perl

使用 aptitude 安装 libarchive-zip-perl

如果您想遵循此方法,您可能需要先安装 aptitude,因为 aptitude 通常不会默认安装 Debian。 更新 apt 数据库 aptitude 使用以下命令。

更新apt数据库后,我们可以安装 libarchive-zip-perl 使用 aptitude 通过运行以下命令:

sudo aptitude -y install libarchive-zip-perl

如何卸载 libarchive-zip-perl Debian 10

仅卸载 libarchive-zip-perl 打包我们可以使用以下命令:

sudo apt-get remove libarchive-zip-perl

卸载 libarchive-zip-perl 及其依赖项

卸载 libarchive-zip-perl 及其不再需要的依赖项 Debian 10、我们可以使用下面的命令:

sudo apt-get -y autoremove libarchive-zip-perl

删除 libarchive-zip-perl 配置和数据

去除 libarchive-zip-perl 配置和数据来自 Debian 10.我们可以使用如下命令:

sudo apt-get -y purge libarchive-zip-perl

删除 libarchive-zip-perl 配置、数据及其所有依赖项

我们可以使用下面的命令来删除 libarchive-zip-perl 配置、数据及其所有依赖项,我们可以使用以下命令:

sudo apt-get -y autoremove --purge libarchive-zip-perl

依赖关系

libarchive-zip-perl 具有以下依赖项:

参考

概括

在本教程中我们学习如何安装 libarchive-zip-perl 封装在 Debian 10. 使用不同的包管理工具: apt, apt-getaptitude