如何安装 libecpg6 Debian 9

在本教程中,我们学习如何安装 libecpg6 Debian 9. libecpg6是ECPG程序的运行时库

介绍

在本教程中我们学习如何安装 libecpg6 在 Debian 9.

什么是 libecpg6

libecpg6 是:

libecpg 共享库由使用 ECPG(C 语言的嵌入式 PostgreSQL)构建的程序使用。

PostgreSQL 是一个对象关系 SQL 数据库管理系统。

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

使用 apt-get 安装 libecpg6

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

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

sudo apt-get -y install libecpg6

使用 apt 安装 libecpg6

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

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

sudo apt -y install libecpg6

使用 aptitude 安装 libecpg6

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

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

sudo aptitude -y install libecpg6

如何卸载 libecpg6 Debian 9

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

sudo apt-get remove libecpg6

卸载 libecpg6 及其依赖项

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

sudo apt-get -y autoremove libecpg6

删除 libecpg6 配置和数据

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

sudo apt-get -y purge libecpg6

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

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

sudo apt-get -y autoremove --purge libecpg6

依赖关系

libecpg6 具有以下依赖项:

参考

概括

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