Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
4  
What operating system are you running? Try tlmgr list | grep '^i' > packages.txt under Linux. –  Werner May 16 '12 at 3:57
    
Sorry about that; I am running Ubuntu 11.10. –  Shashank Sawant May 16 '12 at 4:01
    
Then just use the command line below :) –  Xavier May 16 '12 at 4:03
add comment

2 Answers

up vote 29 down vote accepted
+100

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.

share|improve this answer
1  
Should work on Windows too –  Joseph Wright May 16 '12 at 5:59
1  
@JosephWright: It does. –  Martin Schröder May 16 '12 at 6:55
    
@JosephWright Thanks Joseph and Martin! Just edited my answer. –  Xavier Aug 29 '12 at 18:38
add comment

Compile it with -shell-escape option.

enter image description here

enter image description here

\documentclass[10pt]{article}
\usepackage[a6paper,hmargin=3mm,vmargin=12mm]{geometry}

\usepackage[T1]{fontenc}
\begingroup
\catcode`\^^M=12\relax%
\expandafter\gdef\expandafter\trimtok\detokenize{i}#1^^M{#1}%
\gdef\trimmer#1{\expandafter\trimtok #1}%
\endgroup

\newread\reader

\immediate\write18{tlmgr list --only-installed > installed-packages.txt}
\begin{document}
\tiny
\begin{enumerate}
\openin\reader=installed-packages.txt\relax
\loop
    \readline\reader to \data
    \unless\ifeof\reader
        \item \trimmer{\data}
\repeat
\closein\reader
\end{enumerate}
\end{document}

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

share|improve this answer
5  
I love overkill solutions :-) –  Daniel Sep 24 '12 at 12:13
1  
This is a nice solution. –  Svend Tveskæg Dec 14 '12 at 9:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.