如何安装 cvs-fast-export Ubuntu 18.04

在本教程中,我们学习如何安装 cvs-fast-export Ubuntu 18.04。 cvs-fast-export 将 RCS 或 CVS 历史记录导出为快速导入流

介绍

在本教程中我们学习如何安装 cvs-fast-export 在 Ubuntu 18.04。

什么是 cvs-fast-export

cvs-fast-export 是:

cvs-fast-export,以前称为“parsecvs”,正如其新名称所暗示的那样:以适合 git fast-import 的格式导出 CVS 存储库。

该程序分析 CVS 存储库(或外部)中的 RCS 文件集合,并在可能的情况下以快速导入流的形式发出等效历史记录。 并非所有可能的历史都可以这样呈现; 当程序无法发出有用的警告时,它会尝试发出有用的警告。 该程序还可以生成由 graphviz 套件处理的 DOT 格式的结果提交 DAG 的可视化。

该发行版包含一个工具 cvssync,用于从 CVS 远程存储库获取 master,以便 cvs-fast-export 可以看到它们。 您需要安装 rsync 才能使用它。

名为 cvsconvert 的包装器脚本运行到 git 的转换,并查找与原始 CVS 不匹配的内容。 您需要安装 CVS 和 Git 才能使用它。

还包括一个名为 cvsreduce 的工具,它可以从 RCS/CVS master 树中剥离内容,只保留元数据结构。

有三种安装方法 cvs-fast-export 在 Ubuntu 18.04。 我们可以用 apt-get, aptaptitude。 在以下部分中,我们将描述每种方法。 您可以选择其中之一。

使用 apt-get 安装 cvs-fast-export

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

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

sudo apt-get -y install cvs-fast-export

使用 apt 安装 cvs-fast-export

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

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

sudo apt -y install cvs-fast-export

使用 aptitude 安装 cvs-fast-export

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

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

sudo aptitude -y install cvs-fast-export

如何卸载 cvs-fast-export Ubuntu 18.04

仅卸载 cvs-fast-export 打包我们可以使用以下命令:

sudo apt-get remove cvs-fast-export

卸载 cvs-fast-export 及其依赖项

卸载 cvs-fast-export 及其不再需要的依赖项 Ubuntu 18.04,我们可以使用以下命令:

sudo apt-get -y autoremove cvs-fast-export

删除 cvs-fast-export 配置和数据

去除 cvs-fast-export 配置和数据来自 Ubuntu 18.04我们可以使用以下命令:

sudo apt-get -y purge cvs-fast-export

删除 cvs-fast-export 配置、数据及其所有依赖项

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

sudo apt-get -y autoremove --purge cvs-fast-export

参考

概括

在本教程中我们学习如何安装 cvs-fast-export 封装在 Ubuntu 18.04 使用不同的包管理工具: apt, apt-getaptitude