Hello, I want to use a package, which is not included in texlive 2021, but in texlive 2022 and therefore want to upgrade.
I definitely have the 2021 version (because the package is not found and
pdftex --version says so), however the command
sudo dnf update texlive-scheme-full tells me, “nothing to do”.
Am I doing something wrong, or is the 2022 version still not packaged?
If so, when is it expected to be packaged and is there an alternative way to get the newest version of texlive on Fedora?
Can you please tell which package you’re missing? Downloading texstudio alone won’t pull all tex packages.
You can use
dnf provides */a_tex_package.sty -C to get an rpm package providing your missing package.
I am missing the package tabularray.
And using the command
dnf provides */tabularray.sty -C results in
Error: No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning..
TeX Live 2022 is scheduled for Fedora 38:
You can try installing Fedora 38 in a VM:
Upstream for TeX Live is CTAN. There you can download a cross-platform installer which puts everything for the 2022 version in one tree. There is an option to create symbolic links in /usr/bin, but if you have other packages that rely on the Fedora the live packages you should avoid mixing versions in /usr/bin. I use lmod to add the CTAN the texlive path to the PATH variable.
Another option is to install the missing texlive packages to a local texmf tree, conventionally /usr/local/texlive/texmf-local. Many CTAN libraries will work on older texlive systems.
How can I install the package into the folder? The folder does not exist yet. Should I create the Folder ~/.local/texlive/texmf-local and then just put the .sty file into it, or do I also need to put other files in (create a folder for the package maybe?) or run some commands?
Many CTAN packages provide an archive that uses the standard TeX directory structure (TDS), so you just create a top-level directory and unpack the archive inside the directory. To find where TeX Live looks for files:
% kpsewhich -var-value TEXMF
One problem with using texmf-local is that it is easy forget you installed a new package there. Afterthe package is included in a new texlive version you are still using a possibly outdated package. [I’ve seen bug reports that were due to this issue for a package that had been installed years ago and only recently something triggered the bug. The bug was fixed in current texlive, but users reports that installing the update didn’t solve the problem.]