# LaTeX installation on RHEL-derivatives

**URL:** <https://forums.rockylinux.org/t/latex-installation-on-rhel-derivatives/19189>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-10\
**Created:** [July 23, 2025, 4:08am UTC](https://forums.rockylinux.org/t/latex-installation-on-rhel-derivatives/19189 "2025-07-23T04:08:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![meta](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@meta](https://forums.rockylinux.org/u/meta)\
**Post date:** [July 23, 2025, 4:08am UTC](https://forums.rockylinux.org/t/latex-installation-on-rhel-derivatives/19189/1 "2025-07-23T04:08:31Z")

</div>

What’s the recommended way of installing (and keeping up to date!) LaTeX bundle on RHEL-based distributions?

For example, on Debian (Ubuntu, etc…) `apt install texlive-full` with optional `apt install texstudio` will give you a comprehensive distribution with competent editor.

Using Rocky (RHEL, Alma, etc) the strategy appears to be:

1. Install from “base” and/or AppStreams; if not found:
2. Install from EPEL; if still not found:
3. Install from Flathub.

Which works for more or less self-contained applications, but does not work for large bundles or linked libraries like ROCm or LaTeX, etc.

Is there a canonical way to resolve this problem?

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 23, 2025, 6:12am UTC](https://forums.rockylinux.org/t/latex-installation-on-rhel-derivatives/19189/2 "2025-07-23T06:12:40Z")

</div>

Mostly you use repos, so it would be the texlive packages that are in the main repos or epel after that.

Perhaps you should be more clear and provide more detail as to what is not working? What are you missing? Perhaps search [pkgs.org](http://pkgs.org) for the package you require to see what repo it’s in as well as what distribution.

If you are looking for newer packages than the default in Rocky, then you have the wrong distribution. In which case, use something like Fedora.

---

<div class="post-metadata">

**Author:** ![meta](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@meta](https://forums.rockylinux.org/u/meta)\
**Post date:** [July 23, 2025, 6:40am UTC](https://forums.rockylinux.org/t/latex-installation-on-rhel-derivatives/19189/3 "2025-07-23T06:40:08Z")

</div>

> [@iwalker](#):
>
> Mostly you use repos, so it would be the texlive packages that are in the main repos or epel after that.

But is there `texlive` in either?.. [RPM resource texlive](https://www.rpmfind.net/linux/rpm2html/search.php?query=texlive&submit=Search+...&system=&arch=x86_64)

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 23, 2025, 6:54am UTC](https://forums.rockylinux.org/t/latex-installation-on-rhel-derivatives/19189/4 "2025-07-23T06:54:40Z")

</div>

Use this command:

```auto
dnf list texlive*

```

plenty of output when I run that command, in fact 454 texlive packages. Be more specific in what your problem is. What are you missing?

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 23, 2025, 7:41am UTC](https://forums.rockylinux.org/t/latex-installation-on-rhel-derivatives/19189/5 "2025-07-23T07:41:25Z")

</div>

Also, if you must use a site to search, use the one I already suggested, because rpmfind is not great. [pkgs.org](http://pkgs.org) is much better, results for searching texlive: [https://pkgs.org/search/?q=texlive](https://pkgs.org/search/?q=texlive)

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [July 23, 2025, 7:51am UTC](https://forums.rockylinux.org/t/latex-installation-on-rhel-derivatives/19189/6 "2025-07-23T07:51:07Z")

</div>

> [@iwalker](#):
>
> in fact 454 texlive packages

That is from base repos _and_ EPEL, I presume.

* * *

Yum repositories may define _groups_ of packages in their metadata.  
An AlmaLinux 9 I do get:

```bash
$ dnf group list --hidden -v | grep -i tex
   TeX formatting system (texlive)

```

and see that there is a group “TeX formatting system”. I can get its list with

```bash
$ dnf group info texlive

```

and `dnf group install texlive` (or `dnf install @texlive`) would install the _mandatory_ and _default_ packages from the list. (There is some option to get the optional too.)

The group might not include all packages that are in the repositories, but is a starting point.

* * *

Yes, the base repositories do provide only a subset of LaTeX packages. Red Hat (and hence Rocky) has no incentive to build (and maintain) RPM packages for everything LaTeX.

The EPEL repository provides additional packages for EL distros. That includes _some_ LaTeX packages. (Looks like ~80 in EPEL 9.) They are naturally for the version of texlive that is in the base repo.

The ~450 RPM packages do probably provide more than 450 LaTeX packages, but certainly not all the ~7000 in CTAN.

* * *

How does one install packages from CTAN if one has “source install” of texlive?

I recall downloading one or two packages and placing them in some subdirectory of my home directory. A place that the LaTeX commands did look from (in additional to the system directories where RPM packages put the files).

If there is a way to tell the commands (via environment variables or some config file) to look from one more directory, then one could make such (outside of system and home directories) and put the non-RPM-packaged LaTEX packages there. This is what I do with Python modules, R packages, well any additional software that is not available as RPM. (The directories are also on NFS share, so I effectively install not just for all users of machine, but for all machines in lab.)

* * *

There is _environment modules_ (package `environment-modules`, or alternatively `Lmod` from EPEL) tool to help user modify their environment (e.g. add dir to PATH). I.e. I put program in non-standard location and add “module file” to known place, so user can “load module” and then shell environment to use program is ready.

This, I believe, is “canonical” on HPC systems.

---

<div class="post-metadata">

**Author:** ![meta](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@meta](https://forums.rockylinux.org/u/meta)\
**Post date:** [August 4, 2025, 12:08am UTC](https://forums.rockylinux.org/t/latex-installation-on-rhel-derivatives/19189/7 "2025-08-04T00:08:34Z")

</div>

> [@jlehtone](#):
>
> ```auto
> dnf group info texlive
> 
> ```

Oh, that’s neat! `dnf group info texlive | wc` returns 380 matches on Rocky 10. Solved.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [October 3, 2025, 12:08am UTC](https://forums.rockylinux.org/t/latex-installation-on-rhel-derivatives/19189/8 "2025-10-03T00:08:50Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
