How to manually add a package to MiKTex

The fact that I’m writing this article implies that it is far from a trivial task to do this. After about 2 hours I finally found a solution that just works. Note that I’m using MiKTeX 2.9 on Windows 7, so the solution may not be working for other versions of MiKTeX and the path to the directory may vary depending on your version of windows and/or your installation preferences. The concept however is the same.

To make this work you should complete the following steps:

  1. Download the package file that you want to install.
  2. Create a directory in (make sure that you have admin privileges in case of Vista/7):
    • C:\Program Files\MiKTeX 2.9\tex\latex\base (for Windows XP/Vista/7 on a 32-bit Windows version)
    • C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base (for Vista/7 on a 64-bit Windows version)
  3. Go to Start > MiKTeX > Maintenance (Admin) > Settings (Admin) and click on Refresh FNDB.
  4. Restart your LaTeX editor (in my case it was WinEdt 6.0) and now you should be able to use your new package.


Note that in step 3 I have deliberately wrote that you should chose the Admin folder, which is important if you are running Windows Vista or Windows 7, since otherwise refreshing FNDB will not result in your package being added to the database! Alternatively, you can also open the settings from the non-Admin or in some other way, but in any case make sure that the process has admin rights to update the database. If you have a more complex setup you can read this post that gives some more advanced information on how to manually add packages.

One thought on “How to manually add a package to MiKTex”

Leave a Reply

Your email address will not be published. Required fields are marked *