OS: Ubuntu 11.10
TeX: Tex Live 2011
List of packages originally installed with Tex Live

Using the information given at the aforementioned question, I was able to see the list of packages in my current TeX Live installation. I wanted to save the list in a file. I tried using the "Edit>>Select All" option from the terminal. But using that I am able to save only a small sub-section of it. Is there a simple addition that I can make to the "list" command with "tlmgr" to make it print the output to a file?

  • 4
    What operating system are you running? Try tlmgr list | grep '^i' > packages.txt under Linux.
    – Werner
    Commented May 16, 2012 at 3:57
  • 1
    Sorry about that; I am running Ubuntu 11.10. Commented May 16, 2012 at 4:01
  • Then just use the command line below :)
    – Xavier
    Commented May 16, 2012 at 4:03

3 Answers 3


Simply type the following command in a terminal / command prompt:

tlmgr list --only-installed > installed_texlive_packages.txt

which will save the list to a file called installed_texlive_packages.txt.

  • 3
    How can I install from it then? tlmgr install installed_texlive_packages.txt, or tlmgr install `cat installed_texlive_packages.txt` doesn't work. Commented Apr 2, 2021 at 15:11
  • 7
    The default data output format changed in newer versions of tlmgr. With TexLive 2020 and later you need to add also --data name in order only get the package names without additional information. Commented Apr 14, 2021 at 14:33

Compile it with -shell-escape option.

enter image description here

enter image description here


\gdef\trimmer#1{\expandafter\trimtok #1}%


\immediate\write18{tlmgr list --only-installed > installed-packages.txt}
    \readline\reader to \data
        \item \trimmer{\data}

For animated version, click this link (only several KiB).

  • 11
    I love overkill solutions :-)
    – Daniel
    Commented Sep 24, 2012 at 12:13

In 2020, type :

tlmgr info --only-installed

to get the list of installed package. Then do whatever you want with the output (like putting it in a file with > myfile.tx).

info command replaces former show and list commands (tlmgr manual: "The former actions "show" and "list" are merged into this action, but are still supported for backward compatibility".)

You must log in to answer this question.

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