# How do I install CTAN packages on Mac OS with TexShop?

I run TexShop on my Mac OS 10.6.

I'd like to install new packages like this: http://www.ctan.org/tex-archive/macros/latex/contrib/listings/

I will assume you are using MacTeX (The Mac specific distribution of TeXLive)

Before answering your question, the listings package you mention is part of the TeXLive distribution. You don't actually have to install it, it is already there. Just include the line

\usepackage{listings}


If you have to install a package, there are several quick ways to install a package.

1. For packages found on CTAN: use the TeX Live Utility found in your /Applications/TeX folder. This application can keep all of your TeX packages up to date.
2. Place the relevant files in ~/Library/texmf/tex/latex. TeX will find them.
3. Enter tlmgr install *packagename* in the Terminal.pp window

I hope this helps.

• Thanks for your answer! My Tex Live Utility crashed on launch no matter how many times I tried. I went with your second option and it worked really well! Thanks very much! – Enrico Susatyo Feb 26 '11 at 3:51
• @Frédéric: Maybe you could reorder your question so that the “you already have this package installed” information is at the top. Past experience has shown that unnecessary manual installation of packages leads to all kind of trouble. People coming here from google searches might only read the first part of your post and run into trouble. (As a side remark, greetings generally not used on this site, as we want to keep the focus on the actual content.) – Caramdir Feb 26 '11 at 4:21
• @the_great_monkey: As Frédéric said, listings should be part of your default TeX Live installation, so there should be no need to install it manually. – Caramdir Feb 26 '11 at 4:22
• @Carambir: Thanks for the suggestions. I edited my answer accordingly. – Frédéric Feb 26 '11 at 4:48
• What about packages that are in CTAN but are not on the TeX Live distribution? I'm trying to install Emerald which is on CTAN but not on TeX Live. – Sergio Parreiras Aug 29 '14 at 17:43