35

How to check if a LaTeX package has been installed in Ubuntu?

When installing, I followed the methods mentioned in math.arizona.edu and n.wikibooks.org.

Abdulla Nilam
  • 288
  • 5
  • 20
Tim
  • 24,657
  • 62
  • 151
  • 245

1 Answers1

23

If you know the name of the .sty or .cls file from the package, you can do

kpsewhich <filename>

and it show you the location of the file where Latex system finds the file. If kpsewhich doesn't find it, you probably didn't install the files correctly or didn't run mktexlsr or texhash.

Also, please show us the output of

echo $TEXINPUTS

from the commandline.

Alok
  • 436
  • 4
  • 6
  • kpsewchih and echo $TEXTINPUTS produce no output - what might be the cause? I'm on Ubuntu 10.04. –  Jun 26 '10 at 08:28
  • You might not have the package installed - which package are you trying to install? –  Jun 26 '10 at 14:57