texlive-ifplatform 是测试正在使用哪个平台的条件
介绍
在本教程中我们学习如何安装 texlive-ifplatform
在 CentOS 8.
什么是 texlive-ifplatform
该包使用 (La)TeX 扩展 -shell-escape 来确定文档是否正在处理 Windows 或者在类 Unix 系统上(Mac 操作系统 X, Linux等),或在 Cygwin(Windows 系统上的 Unix 环境)上。 提供的布尔值还保留了类 Unix 系统上 uname 的输出,可用于区分不同类别的 Unix 系统。
我们可以用 yum
或者 dnf
安装 texlive-ifplatform
在 CentOS 8. 在本教程中,我们讨论这两种方法,但您只需选择其中一种方法来安装 texlive-ifplatform。
安装 texlive-ifplatform CentOS 8 使用dnf
更新 yum 数据库 dnf
使用以下命令。
sudo dnf makecache --refresh
输出应如下所示:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
更新 yum 数据库后,我们可以安装 texlive-ifplatform
使用 dnf
通过运行以下命令:
sudo dnf -y install texlive-ifplatform
安装 texlive-ifplatform CentOS 8 使用百胜
更新 yum 数据库 yum
使用以下命令。
sudo yum makecache --refresh
输出应如下所示:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
更新 yum 数据库后,我们可以安装 texlive-ifplatform
使用 yum
通过运行以下命令:
sudo yum -y install texlive-ifplatform
如何卸载 texlive-ifplatform CentOS 8
仅卸载 texlive-ifplatform
打包我们可以使用以下命令:
sudo dnf remove texlive-ifplatform
texlive-ifplatform 软件包内容 CentOS 8
/usr/share/licenses/texlive-ifplatform
/usr/share/licenses/texlive-ifplatform/lppl1.txt
/usr/share/texlive/texmf-dist/doc/latex/ifplatform
/usr/share/texlive/texmf-dist/doc/latex/ifplatform/README
/usr/share/texlive/texmf-dist/doc/latex/ifplatform/ifplatform.pdf
/usr/share/texlive/texmf-dist/tex/latex/ifplatform
/usr/share/texlive/texmf-dist/tex/latex/ifplatform/ifplatform.sty
参考
概括
在本教程中我们学习如何安装 texlive-ifplatform
在 CentOS 8 使用 yum 和 dnf。