I have used LaTex for 30 years and I have used texconfig to configure it. But now I have a new computer with Ubuntu 16.04 and textconfig returns "command not found" (even as sudo). I searched for the texconfig executable and I cannot find it either. Seems to be absent. Any idea of how to install it? I have texlive installed, already the newest version (2015.20160320-1ubuntu0.1).

  • 1
    Welcome to TeX.SX! What do you want to achieve with texconfig?
    – TeXnician
    Jan 6, 2018 at 20:13
  • Most often I use it to change the paper size, or rehash LaTeX from there (I know I can use texhash for that too).
    – Paulo
    Jan 6, 2018 at 20:16
  • 2
    You could use tlmgr, but it seems that you have installed the repo version of texlive. That might be troublesome.
    – TeXnician
    Jan 6, 2018 at 20:21
  • 1
    @RobtAll 'A portable installation to your home directory is recommended'. Really? Recommended by whom? There is a standard question about installing vanilla TeX Live, which also explains how to avoid the various complexities. If you just uninstall the repo version and install from upstream, you'll end up reinstalling the repo version, too - and that definitely is not recommended.
    – cfr
    Jan 6, 2018 at 21:17
  • 1
    @RobtAll There's no particular advantage to putting it in your home and some disadvantages. For example, tlmgr cannot touch my home when I install or update TeX Live, any more than it can touch the (less valuable) system directories. To avoid the installation of distro TeX Live, you need to install a suitable dummy package which tells your package manager (apt in your case, I guess) that the relevant dependencies are already satisfied. I would recommend installing under /usr/local as an unprivileged, dedicated user. Your original claim 'is recommended' made it sound like official advice.
    – cfr
    Jan 6, 2018 at 23:16

1 Answer 1


If you want to set the default paper size in Debian (I suppose that the same works for Ubuntu as well), you should configure the libpaper1 package:

sudo dpkg-reconfigure libpaper1

and then choose the preferred paper size in the appeared dialog. This will set paper size for the supplied TeXLive distribution.

To rehash the texmf tree, just run

sudo mktexlsr

(though it's rarely necessary to do that by hands if you don't install custom packages system-wide).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .