如何安装 elpa-undo-tree Debian 9

在本教程中,我们学习如何安装 elpa-undo-tree Debian 9. elpa-undo-tree 是 Emacs 次要模式,用于将撤消历史记录作为树处理

介绍

在本教程中我们学习如何安装 elpa-undo-tree 在 Debian 9.

什么是 elpa-undo-tree

elpa 撤消树是:

该包提供的 undo-tree 包用一个按其本来面目对待撤消历史的系统替换了 Emacs 的撤消系统:更改的分支树。 这个简单的想法允许标准撤消/重做系统的更直观的行为与永不丢失任何历史记录的功能相结合。 另一个额外的好处是,在某些情况下,撤消历史记录可以更有效地存储,从而允许在 Emacs 开始丢弃历史记录之前积累更多更改。

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

使用 apt-get 安装 elpa-undo-tree

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

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

sudo apt-get -y install elpa-undo-tree

使用 apt 安装 elpa-undo-tree

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

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

sudo apt -y install elpa-undo-tree

使用 aptitude 安装 elpa-undo-tree

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

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

sudo aptitude -y install elpa-undo-tree

如何卸载 elpa-undo-tree Debian 9

仅卸载 elpa-undo-tree 打包我们可以使用以下命令:

sudo apt-get remove elpa-undo-tree

卸载 elpa-undo-tree 及其依赖项

卸载 elpa-undo-tree 及其不再需要的依赖项 Debian 9、我们可以使用下面的命令:

sudo apt-get -y autoremove elpa-undo-tree

删除 elpa-undo-tree 配置和数据

去除 elpa-undo-tree 配置和数据来自 Debian 9.我们可以使用以下命令:

sudo apt-get -y purge elpa-undo-tree

删除 elpa-undo-tree 配置、数据及其所有依赖项

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

sudo apt-get -y autoremove --purge elpa-undo-tree

依赖关系

elpa-undo-tree 具有以下依赖项:

参考

概括

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