运行LaTeX的时候遇到! LaTeX Error: File `xxx’ not found.这个错误的时候该怎么办?

这样就可以了

sudo dnf install 'tex(xxx)'

然后就会帮你安装缺失的文件。