如何在 debian 9 上安装 urlscan

在本教程中,我们学习如何在 debian 9 上安装 urlscan。 urlscan 是提取并浏览电子邮件中包含的 URL(urlview 替换)

介绍

在本教程中我们学习如何安装 urlscan 在 Debian 9 上。

什么是 urlscan

urlscan 搜索电子邮件中的 URL,然后在当前终端中显示它们的列表。 它主要是作为 urlview 的替代品,它在以下方面进行了改进:

  • urlscan 可以理解电子邮件编码,例如引用打印; urlview 没有。
  • urlscan 提取并显示每个 URL 周围的上下文。

有三种安装方式 urlscan 在 debian 9 上。我们可以使用 apt-get, aptaptitude。 在以下部分中,我们将描述每种方法。 您可以选择其中之一。

使用 apt-get 安装 urlscan

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

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

sudo apt-get -y install urlscan

使用 apt 安装 urlscan

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

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

sudo apt -y install urlscan

使用 aptitude 安装 urlscan

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

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

sudo aptitude -y install urlscan

如何在 debian 9 上卸载 urlscan

仅卸载 urlscan 打包我们可以使用以下命令:

sudo apt-get remove urlscan

卸载 urlscan 及其依赖项

卸载 urlscan 以及 debian 9 不再需要的依赖项,我们可以使用以下命令:

sudo apt-get -y autoremove urlscan

删除 urlscan 配置和数据

去除 urlscan 来自 debian 9 的配置和数据我们可以使用以下命令:

sudo apt-get -y purge urlscan

删除 urlscan 配置、数据及其所有依赖项

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

sudo apt-get -y autoremove --purge urlscan

参考

概括

在本教程中我们学习如何安装 urlscan 在 debian 9 上使用不同的包管理工具,如 apt、apt-get 和 aptitude。