在本教程中,我们学习如何安装 ctpp2-utils Ubuntu 18.04。 ctpp2-utils是ctpp模板转换的工具
介绍
在本教程中我们学习如何安装 ctpp2-utils
在 Ubuntu 18.04。
什么是 ctpp2-utils
ctpp2-utils 是:
对于程序员和 HTML 设计师是不同人的项目,CTPP 是一个合适的选择。 CTPP 开发的目标是通过易于扩展的最少基本功能实现最大性能。 换句话说,任何可以想到的功能都可以通过编写用户函数来添加。
该软件包提供了以下工具来处理 ctpp 模板:
- ctpp2c – CTPP 模板编译器
- ctpp2i – CTPP 模板解释器
- ctpp2-config – CTPP 配置工具
- ctpp2json – CTPP JSON 文件解析器
- ctpp2vm – CTPP 虚拟机
有三种安装方法 ctpp2-utils
在 Ubuntu 18.04。 我们可以用 apt-get
, apt
和 aptitude
。 在以下部分中,我们将描述每种方法。 您可以选择其中之一。
使用 apt-get 安装 ctpp2-utils
更新 apt 数据库 apt-get
使用以下命令。
更新apt数据库后,我们可以安装 ctpp2-utils
使用 apt-get
通过运行以下命令:
sudo apt-get -y install ctpp2-utils
使用 apt 安装 ctpp2-utils
更新 apt 数据库 apt
使用以下命令。
更新apt数据库后,我们可以安装 ctpp2-utils
使用 apt
通过运行以下命令:
sudo apt -y install ctpp2-utils
使用 aptitude 安装 ctpp2-utils
如果您想遵循此方法,您可能需要先安装 aptitude,因为 aptitude 通常不会默认安装 Ubuntu。 更新 apt 数据库 aptitude
使用以下命令。
更新apt数据库后,我们可以安装 ctpp2-utils
使用 aptitude
通过运行以下命令:
sudo aptitude -y install ctpp2-utils
如何卸载 ctpp2-utils Ubuntu 18.04
仅卸载 ctpp2-utils
打包我们可以使用以下命令:
sudo apt-get remove ctpp2-utils
卸载 ctpp2-utils 及其依赖项
卸载 ctpp2-utils
及其不再需要的依赖项 Ubuntu 18.04,我们可以使用以下命令:
sudo apt-get -y autoremove ctpp2-utils
删除 ctpp2-utils 配置和数据
去除 ctpp2-utils
配置和数据来自 Ubuntu 18.04我们可以使用以下命令:
sudo apt-get -y purge ctpp2-utils
删除 ctpp2-utils 配置、数据及其所有依赖项
我们可以使用下面的命令来删除 ctpp2-utils
配置、数据及其所有依赖项,我们可以使用以下命令:
sudo apt-get -y autoremove --purge ctpp2-utils
参考
概括
在本教程中我们学习如何安装 ctpp2-utils
封装在 Ubuntu 18.04 使用不同的包管理工具: apt
, apt-get
和 aptitude
。