在本教程中,我们学习如何安装 blueprint-tools Ubuntu 22.04。 blueprint-tools 是蓝图元构建系统(命令行工具)
介绍
在本教程中我们学习如何安装 blueprint-tools
在 Ubuntu 22.04。
什么是 blueprint-tools
蓝图工具是:
Blueprint 是一个元构建系统,它读取描述需要构建的模块的蓝图文件,并生成描述需要运行的命令及其依赖项的 Ninja 清单。 大多数构建系统使用内置规则或特定于领域的语言来描述将模块描述转换为构建规则的逻辑,而 Blueprint 将其委托给用 Go 编写的每个项目构建逻辑。 对于大型异构项目,这允许以高级语言维护构建逻辑的固有复杂性,同时仍然允许通过修改易于理解的蓝图文件来对各个模块进行简单的更改。
该软件包包含蓝图的命令行工具。
有三种安装方法 blueprint-tools
在 Ubuntu 22.04。 我们可以用 apt-get
, apt
和 aptitude
。 在以下部分中,我们将描述每种方法。 您可以选择其中之一。
更新 apt 数据库 apt-get
使用以下命令。
更新apt数据库后,我们可以安装 blueprint-tools
使用 apt-get
通过运行以下命令:
sudo apt-get -y install blueprint-tools
更新 apt 数据库 apt
使用以下命令。
更新apt数据库后,我们可以安装 blueprint-tools
使用 apt
通过运行以下命令:
sudo apt -y install blueprint-tools
如果您想遵循此方法,您可能需要先安装 aptitude,因为 aptitude 通常不会默认安装 Ubuntu。 更新 apt 数据库 aptitude
使用以下命令。
更新apt数据库后,我们可以安装 blueprint-tools
使用 aptitude
通过运行以下命令:
sudo aptitude -y install blueprint-tools
仅卸载 blueprint-tools
打包我们可以使用以下命令:
sudo apt-get remove blueprint-tools
卸载 blueprint-tools 及其依赖项
卸载 blueprint-tools
及其不再需要的依赖项 Ubuntu 22.04,我们可以使用以下命令:
sudo apt-get -y autoremove blueprint-tools
删除 blueprint-tools 配置和数据
去除 blueprint-tools
配置和数据来自 Ubuntu 22.04我们可以使用以下命令:
sudo apt-get -y purge blueprint-tools
删除 blueprint-tools 配置、数据及其所有依赖项
我们可以使用下面的命令来删除 blueprint-tools
配置、数据及其所有依赖项,我们可以使用以下命令:
sudo apt-get -y autoremove --purge blueprint-tools
参考
概括
在本教程中我们学习如何安装 blueprint-tools
封装在 Ubuntu 22.04 使用不同的包管理工具: apt
, apt-get
和 aptitude
。