Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

When installing, I followed the methods mentioned in and

share|improve this question

migrated from Sep 16 '11 at 4:28

This question came from our site for professional and enthusiast programmers.

up vote 18 down vote accepted

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


from the commandline.

share|improve this answer
Thanks! Problem solved. – Tim Dec 26 '09 at 3:50
kpsewchih and echo $TEXTINPUTS produce no output - what might be the cause? I'm on Ubuntu 10.04. – Roman Luštrik Jun 26 '10 at 8:28
You might not have the package installed - which package are you trying to install? – Alok Jun 26 '10 at 14:57

Your Answer


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.