Over the last three days, I have struggled to get texlive, pdflatex, and a LaTeX editor on Rocky 9 (I use an HTML / LaTeX based searchable command line knowledge base that I built).
These are the basic steps that I used (did not take notes as I did it (sorry))
sudo dnf install epel-release
sudo dnf install texlive-*
installed kile (from epel)
sudo dnf install kile
sudo dnf install okular
sudo dinf okular-*
At this point I could run (if I remember correctly) kile, but kept getting “cannot find file comment.sty” and other errors. I finally ran across a comment in a linux / LaTeX forum that told me to create a folder ~/texmf/tex/latex , and put all the *.sty files etc. there. I tried to download these from one of the TUG mirrors and untar the tar.xz files. I kept getting file errors, and finally cheated (copied all the files from /usr/share/texlive/texmf-dist/latex (think that was the path) from a debian installation with a full texlive install and copied to the above mentioned folder (~/texmf/tex/latex) and now I can use kile seemlessly.
If this saves anyone some time, or helps, I am glad.