如何安装 ocaml-camlp5 Fedora 36

在本教程中,我们学习如何安装 ocaml-camlp5 Fedora 36. ocaml-camlp5 是 camlp4 OCaml 预处理器的经典​​版本

介绍

在本教程中我们学习如何安装 ocaml-camlp5 在 Fedora 36.

什么是 ocaml-camlp5

Camlp5 是 OCaml 的一个漂亮的预处理器打印机。 它是经典 camlp4 的延续,并具有新功能。 OCaml 3.10 及更高版本有一个官方 camlp4,它与经典(<= 3.09)版本不兼容。 您可以在 ocaml-camlp4 包中找到它。

我们可以用 yum 或者 dnf 安装 ocaml-camlp5 在 Fedora 36. 在本教程中,我们讨论这两种方法,但您只需选择一种方法来安装 ocaml-camlp5。

安装 ocaml-camlp5 Fedora 36 使用dnf

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

sudo dnf makecache --refresh

更新 yum 数据库后,我们可以安装 ocaml-camlp5 使用 dnf 通过运行以下命令:

sudo dnf -y install ocaml-camlp5

安装 ocaml-camlp5 Fedora 36 使用 yum

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

sudo yum makecache --refresh

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

sudo yum -y install ocaml-camlp5

如何卸载 ocaml-camlp5 Fedora 36

仅卸载 ocaml-camlp5 打包我们可以使用以下命令:

sudo dnf remove ocaml-camlp5

ocaml-camlp5 软件包内容位于 Fedora 36

/usr/lib64/ocaml/camlp5
/usr/lib64/ocaml/camlp5/META
/usr/lib64/ocaml/camlp5/ast2pt.cmi
/usr/lib64/ocaml/camlp5/asttools.cmi
/usr/lib64/ocaml/camlp5/camlp5.cma
/usr/lib64/ocaml/camlp5/camlp5_top.cma
/usr/lib64/ocaml/camlp5/camlp5_top_funs.cmi
/usr/lib64/ocaml/camlp5/camlp5_top_funs.cmo
/usr/lib64/ocaml/camlp5/camlp5o.cma
/usr/lib64/ocaml/camlp5/camlp5r.cma
/usr/lib64/ocaml/camlp5/camlp5sch.cma
/usr/lib64/ocaml/camlp5/diff.cmi
/usr/lib64/ocaml/camlp5/eprinter.cmi
/usr/lib64/ocaml/camlp5/extfold.cmi
/usr/lib64/ocaml/camlp5/extfun.cmi
/usr/lib64/ocaml/camlp5/fstream.cmi
/usr/lib64/ocaml/camlp5/gramext.cmi
/usr/lib64/ocaml/camlp5/gramlib.cma
/usr/lib64/ocaml/camlp5/grammar.cmi
/usr/lib64/ocaml/camlp5/lib.sml
/usr/lib64/ocaml/camlp5/mLast.cmi
/usr/lib64/ocaml/camlp5/mlsyntax.cmi
/usr/lib64/ocaml/camlp5/ocpp.cmo
/usr/lib64/ocaml/camlp5/odyl.cma
/usr/lib64/ocaml/camlp5/odyl.cmo
/usr/lib64/ocaml/camlp5/odyl.o
/usr/lib64/ocaml/camlp5/pa_extend.cmi
/usr/lib64/ocaml/camlp5/pa_extend.cmo
/usr/lib64/ocaml/camlp5/pa_extend.o
/usr/lib64/ocaml/camlp5/pa_extend_m.cmo
/usr/lib64/ocaml/camlp5/pa_extend_m.o
/usr/lib64/ocaml/camlp5/pa_extfold.cmo
/usr/lib64/ocaml/camlp5/pa_extfold.o
/usr/lib64/ocaml/camlp5/pa_extfun.cmo
/usr/lib64/ocaml/camlp5/pa_extfun.o
/usr/lib64/ocaml/camlp5/pa_extprint.cmo
/usr/lib64/ocaml/camlp5/pa_extprint.o
/usr/lib64/ocaml/camlp5/pa_fstream.cmo
/usr/lib64/ocaml/camlp5/pa_fstream.o
/usr/lib64/ocaml/camlp5/pa_lefteval.cmo
/usr/lib64/ocaml/camlp5/pa_lefteval.o
/usr/lib64/ocaml/camlp5/pa_lexer.cmo
/usr/lib64/ocaml/camlp5/pa_lexer.o
/usr/lib64/ocaml/camlp5/pa_lisp.cmo
/usr/lib64/ocaml/camlp5/pa_lisp.o
/usr/lib64/ocaml/camlp5/pa_macro.cmi
/usr/lib64/ocaml/camlp5/pa_macro.cmo
/usr/lib64/ocaml/camlp5/pa_macro.o
/usr/lib64/ocaml/camlp5/pa_macro_gram.cmi
/usr/lib64/ocaml/camlp5/pa_macro_gram.cmo
/usr/lib64/ocaml/camlp5/pa_macro_gram.o
/usr/lib64/ocaml/camlp5/pa_macro_print.cmo
/usr/lib64/ocaml/camlp5/pa_macro_print.o
/usr/lib64/ocaml/camlp5/pa_mkast.cmo
/usr/lib64/ocaml/camlp5/pa_mkast.o
/usr/lib64/ocaml/camlp5/pa_mktest.cmo
/usr/lib64/ocaml/camlp5/pa_mktest.o
/usr/lib64/ocaml/camlp5/pa_o.cmo
/usr/lib64/ocaml/camlp5/pa_o.o
/usr/lib64/ocaml/camlp5/pa_o_fast.o
/usr/lib64/ocaml/camlp5/pa_oop.cmo
/usr/lib64/ocaml/camlp5/pa_oop.o
/usr/lib64/ocaml/camlp5/pa_op.cmo
/usr/lib64/ocaml/camlp5/pa_op.o
/usr/lib64/ocaml/camlp5/pa_pprintf.cmo
/usr/lib64/ocaml/camlp5/pa_pprintf.o
/usr/lib64/ocaml/camlp5/pa_pragma.cmo
/usr/lib64/ocaml/camlp5/pa_pragma.o
/usr/lib64/ocaml/camlp5/pa_r.cmo
/usr/lib64/ocaml/camlp5/pa_r.o
/usr/lib64/ocaml/camlp5/pa_reloc.cmo
/usr/lib64/ocaml/camlp5/pa_reloc.o
/usr/lib64/ocaml/camlp5/pa_rp.cmo
/usr/lib64/ocaml/camlp5/pa_rp.o
/usr/lib64/ocaml/camlp5/pa_scheme.cmo
/usr/lib64/ocaml/camlp5/pa_scheme.o
/usr/lib64/ocaml/camlp5/pa_schemer.cmo
/usr/lib64/ocaml/camlp5/pa_schemer.o
/usr/lib64/ocaml/camlp5/pa_sml.cmo
/usr/lib64/ocaml/camlp5/pa_sml.o
/usr/lib64/ocaml/camlp5/papr_phony_macro.cmo
/usr/lib64/ocaml/camlp5/papr_phony_macro.o
/usr/lib64/ocaml/camlp5/pcaml.cmi
/usr/lib64/ocaml/camlp5/plexer.cmi
/usr/lib64/ocaml/camlp5/plexing.cmi
/usr/lib64/ocaml/camlp5/ploc.cmi
/usr/lib64/ocaml/camlp5/pp_debug.cmi
/usr/lib64/ocaml/camlp5/pprintf.cmi
/usr/lib64/ocaml/camlp5/pr_depend.cmo
/usr/lib64/ocaml/camlp5/pr_depend.o
/usr/lib64/ocaml/camlp5/pr_dump.cmo
/usr/lib64/ocaml/camlp5/pr_dump.o
/usr/lib64/ocaml/camlp5/pr_extend.cmo
/usr/lib64/ocaml/camlp5/pr_extend.o
/usr/lib64/ocaml/camlp5/pr_extfun.cmo
/usr/lib64/ocaml/camlp5/pr_extfun.o
/usr/lib64/ocaml/camlp5/pr_extprint.cmo
/usr/lib64/ocaml/camlp5/pr_extprint.o
/usr/lib64/ocaml/camlp5/pr_null.cmo
/usr/lib64/ocaml/camlp5/pr_null.o
/usr/lib64/ocaml/camlp5/pr_o.cmi
/usr/lib64/ocaml/camlp5/pr_o.cmo
/usr/lib64/ocaml/camlp5/pr_o.o
/usr/lib64/ocaml/camlp5/pr_official.cmo
/usr/lib64/ocaml/camlp5/pr_official.o
/usr/lib64/ocaml/camlp5/pr_op.cmo
/usr/lib64/ocaml/camlp5/pr_op.o
/usr/lib64/ocaml/camlp5/pr_r.cmi
/usr/lib64/ocaml/camlp5/pr_r.cmo
/usr/lib64/ocaml/camlp5/pr_r.o
/usr/lib64/ocaml/camlp5/pr_ro.cmo
/usr/lib64/ocaml/camlp5/pr_ro.o
/usr/lib64/ocaml/camlp5/pr_rp.cmo
/usr/lib64/ocaml/camlp5/pr_rp.o
/usr/lib64/ocaml/camlp5/pr_scheme.cmo
/usr/lib64/ocaml/camlp5/pr_scheme.o
/usr/lib64/ocaml/camlp5/pr_schemep.cmo
/usr/lib64/ocaml/camlp5/pr_schemep.o
/usr/lib64/ocaml/camlp5/pretty.cmi
/usr/lib64/ocaml/camlp5/prtools.cmi
/usr/lib64/ocaml/camlp5/q_MLast.cmi
/usr/lib64/ocaml/camlp5/q_MLast.cmo
/usr/lib64/ocaml/camlp5/q_MLast.o
/usr/lib64/ocaml/camlp5/q_ast.cmi
/usr/lib64/ocaml/camlp5/q_ast.cmo
/usr/lib64/ocaml/camlp5/q_ast.o
/usr/lib64/ocaml/camlp5/q_ast_base.cmi
/usr/lib64/ocaml/camlp5/q_ast_base.cmo
/usr/lib64/ocaml/camlp5/q_ast_base.o
/usr/lib64/ocaml/camlp5/q_phony.cmo
/usr/lib64/ocaml/camlp5/q_phony.o
/usr/lib64/ocaml/camlp5/quotation.cmi
/usr/lib64/ocaml/camlp5/reloc.cmi
/usr/lib64/ocaml/camlp5/stdpp.cmi
/usr/lib64/ocaml/camlp5/token.cmi
/usr/lib64/ocaml/camlp5/versdep.cmi
/usr/lib64/ocaml/topfind.camlp5
/usr/share/doc/ocaml-camlp5
/usr/share/doc/ocaml-camlp5/README.md
/usr/share/licenses/ocaml-camlp5
/usr/share/licenses/ocaml-camlp5/LICENSE

参考

概括

在本教程中我们学习如何安装 ocaml-camlp5 在 Fedora 36 使用 yum 和 [dnf]((/fedora/36/dnf/)。