Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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.

1 Answer 1

up vote 17 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.