TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. 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

I just installed MacTeX 2010 yesterday, so I'm running TeXLive 2010. I need to upgrade my installation of PGF to 2.0 from 1.18, which is what comes standard with the MacTeX distribution. Could someone walk me through all the steps to do this, on a mac running 10.6, assuming I'm illiterate when it comes to installing TeX stuff?

I'd like to do the update not in my personal library (although if you can tell me how to make that work that would be great too) but in the main computer library, so the update will be available across users.

I tried following the instructions in the PGF manual, which said to put various files in various places:

To update your installation from a previous version, all you need to do is to replace everything in the directory texmf/tex/generic/pgf with the files of the new version (or in all the directories where pgf was installed, if you chose a tds-compliant installation).

but when I did that it didn't work. Possibly because I didn't "run texhash", whatever that is and however you do that.

share|improve this question
To run texhash, open up a terminal, type in sudo texhash, and give your password when asked. – Konrad Swanepoel Oct 19 '10 at 21:29
I believe PGF 2.0 became standard issue in TeX Live 2008, so anything from MacTeX 2008 or later should have it. It is likely you have a copy installed in a texmf tree that supersedes the MacTeX distribution – Sharpie Oct 20 '10 at 0:05
up vote 5 down vote accepted

I use MacTeX 2010, and I already have PGF/TikZ v2. If texdoc pgf doesn't give you the manual for version 2, there are two possibilities:

  1. your pgf/tikz needs to be updated from the version shipped with MacTeX 2010 (I can't remember if v2 is installed out of the box); try using TeX Live Utility to update the pgf package.

  2. you have an old installation of pgf in your home texmf tree; check this with kpsewhich pgf.tex in the Terminal application. If it returns a file inside your home folder — e.g.,


    — then you need to delete the old installation. This will involve removing at least the following two folders:


With fingers crossed, you shouldn't ever have to replace any files inside the main TeX distribution itself; TeX Live is good at updating itself these days and most packages are kept up-to-date on CTAN.

share|improve this answer

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.