Currently my Tex Live directory is placed at /usr/share/texlive, but it is taking up about 2.1 GB of space. I would like to move it to an SD card that I use for semi-permanent storage in /run/media/${user}/sdcard. Is this possible?
1 Answer
Definitely possible. I would suggest the following:
- Copy the entire
texlive
directory to its new directory - Once copying is complete, go into
/usr/share
, dosudo rm -r texlive
(or become root first if you have no sudo privileges) and create a symlink to the new directory: `ln -s /what/ever/texlive texlive
In this way, you don't need to tell TeX about the path change. Edit: good to know (as per David's comment) that TeX executables are self-locating. However, if you try to install additional LaTeX packages through your OS package manager for example, it is best to fake the original directory structure.
apparmor
prevent the programs from accessing the new places. One example isevince
when displayingdvi
files, at least in Debian and Ubuntu; see Tex Live installation, and a problem of getting evince to show dvi files for the required adjustments.