# Which texmf directory to use for non-texlive deb-package [closed]

I'd like to provide a collection of packages/classes/fonts in a custom .deb package, i.e. that is not part of texlive.

Which directory should I choose for installing?

texlive tells me to use `TEXMLOCAL` for additional packages which is normally `/usr/local/share/texmf`. But debian says `/usr/local` is not allowed for deb-packages.

-
Put it in `~/texmf/`. `kpsewhich --var-value TEXMFHOME` will tell you what the 'personal' base directory is. You may need to create it; you could do, e.g., `mkdir -p ~/texmf/{bibtex,doc,fonts,tex,texdoc}` (depending on your needs: you may require other directories -- just make it mimic the directory structure of your system `texmf`, including the subdirectories!). –  jon Mar 29 '13 at 1:08
A deb package that installs in ~ ? Not really ;). –  ejoerns Mar 29 '13 at 13:14
Sorry: you want to create a `.deb` package for Debian/etc.? And it will work regardless of what kind of TeX Live installation people have? I think this is the wrong approach. Make a `.tds.zip` file and let users decide where they want to install it. That way it is not a Debian-specific thing, but is useful to anyone who has a TDS-compliant TeX installation. –  jon Mar 29 '13 at 15:42
For instance, I would not want to use a `.deb` since I installed TeX Live from TUG, and I wouldn't want your file to install in `/usr/local/share/texmf` on my system. Also `kpsewhich --var-value TEXMFLOCAL` does not return that dir for me. –  jon Mar 29 '13 at 15:47
I'd like to have a `.deb` package because it also needs to install some fonts etc. and i wanted to make install as easy as possible. What about `TEXMFMAIN`? Btw. I also provide a `.tds.zip` and an install script. –  ejoerns Mar 29 '13 at 18:59