如何安装 libarchive-tools Debian 10

了解如何安装 libarchive-tools Debian 10 通过本教程。 libarchive-tools 是 tar 和 cpio 以及其他归档工具的 FreeBSD 实现

介绍

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

什么是 libarchive-tools

libarchive-tools 是:

该软件包包含几个基于 libarchive 库的命令行工具。

bsdtar 程序是 FreeBSD 上使用的默认系统“tar”程序。 bsdtar 使用 libarchive 库作为后端,它完成读取和写入各种格式的档案的所有工作。

bsdcpio 程序是 FreeBSD 上使用的默认系统“cpio”程序。 bsdcpio 使用 libarchive 库作为后端,它完成读取和写入各种格式的档案的所有工作。

bsdcat 程序从文件或其标准输入读取归档数据,并使用 libarchive 库将其解压缩到其标准输出。 它可用于查看档案的内容或将其传递给其他工具进行进一步处理。

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

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

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

sudo apt-get -y install libarchive-tools

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

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

sudo apt -y install libarchive-tools

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

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

sudo aptitude -y install libarchive-tools

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

sudo apt-get remove libarchive-tools

卸载 libarchive-tools 及其依赖项

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

sudo apt-get -y autoremove libarchive-tools

删除 libarchive-tools 配置和数据

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

sudo apt-get -y purge libarchive-tools

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

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

sudo apt-get -y autoremove --purge libarchive-tools

依赖关系

libarchive-tools 具有以下依赖项:

参考

概括

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