如何安装缩进 Fedora 36

在本教程中,我们学习如何安装缩进 Fedora 36. indent 是一个用于格式化 C 代码的 GNU 程序

介绍

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

什么是 indent

Indent是一个GNU程序,用于美化C代码,使其更易于阅读。 缩进还可以从一种 C 书写风格转换为另一种不同的书写风格。 Indent 理解正确的 C 语法并尝试处理不正确的 C 语法。 如果您正在用 C 开发应用程序并且需要一个程序来格式化您的代码,请安装 indent 包。

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

安装缩进 Fedora 36 使用dnf

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

sudo dnf makecache --refresh

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

sudo dnf -y install indent

安装缩进 Fedora 36 使用 yum

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

sudo yum makecache --refresh

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

sudo yum -y install indent

如何卸载缩进 Fedora 36

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

缩进包装内容 Fedora 36

/usr/bin/indent
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/3a99346b59a5a27660be557291de35cedc72da
/usr/share/doc/indent
/usr/share/doc/indent/AUTHORS
/usr/share/doc/indent/ChangeLog
/usr/share/doc/indent/ChangeLog-1990
/usr/share/doc/indent/ChangeLog-1998
/usr/share/doc/indent/ChangeLog-2001
/usr/share/doc/indent/NEWS
/usr/share/doc/indent/README.md
/usr/share/info/indent.info.gz
/usr/share/licenses/indent
/usr/share/licenses/indent/COPYING
/usr/share/locale/bg/LC_MESSAGES/indent.mo
/usr/share/locale/ca/LC_MESSAGES/indent.mo
/usr/share/locale/cs/LC_MESSAGES/indent.mo
/usr/share/locale/da/LC_MESSAGES/indent.mo
/usr/share/locale/de/LC_MESSAGES/indent.mo
/usr/share/locale/el/LC_MESSAGES/indent.mo
/usr/share/locale/eo/LC_MESSAGES/indent.mo
/usr/share/locale/es/LC_MESSAGES/indent.mo
/usr/share/locale/et/LC_MESSAGES/indent.mo
/usr/share/locale/eu/LC_MESSAGES/indent.mo
/usr/share/locale/fi/LC_MESSAGES/indent.mo
/usr/share/locale/fr/LC_MESSAGES/indent.mo
/usr/share/locale/ga/LC_MESSAGES/indent.mo
/usr/share/locale/gl/LC_MESSAGES/indent.mo
/usr/share/locale/hr/LC_MESSAGES/indent.mo
/usr/share/locale/hu/LC_MESSAGES/indent.mo
/usr/share/locale/id/LC_MESSAGES/indent.mo
/usr/share/locale/it/LC_MESSAGES/indent.mo
/usr/share/locale/ja/LC_MESSAGES/indent.mo
/usr/share/locale/ko/LC_MESSAGES/indent.mo
/usr/share/locale/nl/LC_MESSAGES/indent.mo
/usr/share/locale/pl/LC_MESSAGES/indent.mo
/usr/share/locale/pt_BR/LC_MESSAGES/indent.mo
/usr/share/locale/ro/LC_MESSAGES/indent.mo
/usr/share/locale/ru/LC_MESSAGES/indent.mo
/usr/share/locale/sk/LC_MESSAGES/indent.mo
/usr/share/locale/sr/LC_MESSAGES/indent.mo
/usr/share/locale/sv/LC_MESSAGES/indent.mo
/usr/share/locale/tr/LC_MESSAGES/indent.mo
/usr/share/locale/uk/LC_MESSAGES/indent.mo
/usr/share/locale/vi/LC_MESSAGES/indent.mo
/usr/share/locale/zh_CN/LC_MESSAGES/indent.mo
/usr/share/locale/zh_TW.Big5/LC_MESSAGES/indent.mo
/usr/share/locale/zh_TW/LC_MESSAGES/indent.mo
/usr/share/man/man1/indent.1.gz

参考

概括

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