如何安装 libfreeimageplus3 Ubuntu 21.10

在本教程中,我们学习如何安装 libfreeimageplus3 Ubuntu 21.10。 libfreeimageplus3 是 freeimage 的 C++ 包装器(库)

介绍

在本教程中我们学习如何安装 libfreeimageplus3 在 Ubuntu 21.10。

什么是 libfreeimageplus3

libfreeimageplus3 是:

FreeImage 是一个开源 C/C++ 库项目,适用于希望支持流行的图形图像格式(如 PNG、BMP、JPEG、TIFF 等当今多媒体应用程序所需的其他格式)的开发人员。 FreeImage 易于使用、速度快、多线程安全且跨平台(可与 Linux32 位 Windows 和 Mac 操作系统 X)。

该软件包包含 FreeImagePlus 库。

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

使用 apt-get 安装 libfreeimageplus3

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

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

sudo apt-get -y install libfreeimageplus3

使用 apt 安装 libfreeimageplus3

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

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

sudo apt -y install libfreeimageplus3

使用 aptitude 安装 libfreeimageplus3

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

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

sudo aptitude -y install libfreeimageplus3

如何卸载 libfreeimageplus3 Ubuntu 21.10

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

sudo apt-get remove libfreeimageplus3

卸载 libfreeimageplus3 及其依赖项

卸载 libfreeimageplus3 及其不再需要的依赖项 Ubuntu 21.10,我们可以使用以下命令:

sudo apt-get -y autoremove libfreeimageplus3

删除 libfreeimageplus3 配置和数据

去除 libfreeimageplus3 配置和数据来自 Ubuntu 21.10我们可以使用以下命令:

sudo apt-get -y purge libfreeimageplus3

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

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

sudo apt-get -y autoremove --purge libfreeimageplus3

参考

概括

在本教程中我们学习如何安装 libfreeimageplus3 封装在 Ubuntu 21.10 使用不同的包管理工具:apt、apt-get 和 aptitude。