在本教程中,我们学习如何在 debian 9 上安装 sqitch。sqitch 是健全的数据库更改管理
介绍
在本教程中我们学习如何安装 sqitch
在 Debian 9 上。
什么是 sqitch
Sqitch 为数据库变更管理提供了一个简单而强大的界面。 其理念和功能受到 Git 的启发。
有三种安装方式 sqitch
在 debian 9 上。我们可以使用 apt-get
, apt
和 aptitude
。 在以下部分中,我们将描述每种方法。 您可以选择其中之一。
使用 apt-get 安装 sqitch
更新 apt 数据库 apt-get
使用以下命令。
更新apt数据库后,我们可以安装 sqitch
使用 apt-get
通过运行以下命令:
sudo apt-get -y install sqitch
使用 apt 安装 sqitch
更新 apt 数据库 apt
使用以下命令。
更新apt数据库后,我们可以安装 sqitch
使用 apt
通过运行以下命令:
sudo apt -y install sqitch
使用 aptitude 安装 sqitch
如果您想遵循此方法,您可能需要先安装 aptitude,因为 debian 上通常默认不安装 aptitude。 更新 apt 数据库 aptitude
使用以下命令。
更新apt数据库后,我们可以安装 sqitch
使用 aptitude
通过运行以下命令:
sudo aptitude -y install sqitch
如何在 debian 9 上卸载 sqitch
仅卸载 sqitch
打包我们可以使用以下命令:
sudo apt-get remove sqitch
卸载 sqitch 及其依赖项
卸载 sqitch
以及 debian 9 不再需要的依赖项,我们可以使用以下命令:
sudo apt-get -y autoremove sqitch
删除 sqitch 配置和数据
去除 sqitch
来自 debian 9 的配置和数据我们可以使用以下命令:
sudo apt-get -y purge sqitch
删除 sqitch 配置、数据及其所有依赖项
我们可以使用下面的命令来删除 sqitch
配置、数据及其所有依赖项,我们可以使用以下命令:
sudo apt-get -y autoremove --purge sqitch
参考
概括
在本教程中我们学习如何安装 sqitch
在 debian 9 上使用不同的包管理工具,如 apt、apt-get 和 aptitude。