# Manual LaTeX package installation

Posted on

Because sometimes, it’s always useful to know where to store these kind of files.

Type Directory Description
.bst bibtex/bst/packagename BibTeX style
.cls tex/latex/base Document class file
.sty tex/latex/packagename Style file: the normal package content

These files have to be stored under ~/texmf or the equivalent folder if you changes the default installation setting. Then you can add the files in the required subfolders according to the table above. Lastely, it is necessary to create/update the TeX database using the following command:

# no need to run this as root
texhash ~/texmf


It’s done, you can enjoy your new files!