# How to install a package from a local repository?

I am unable to connect to the package repository server using MiKTeX due to a proxy error. How would I go about installing a package from a local repository? I am trying to install the package beamer. Where do I actually find the file to download?

You need to get the packages from the miktex folder on ctan:

http://mirrors.ctan.org/systems/win32/miktex/tm/packages/

Put whatever you want to install e.g.

http://mirrors.ctan.org/systems/win32/miktex/tm/packages/beamer.tar.lzma

in some empty folder (outside miktex).

Beside this you need the three database files

Put them also in the folder. Then you can use the folder as local repository.

• Tried that, I'm getting: ! LaTeX Error: File etoolbox.sty' not found. – John Doe Nov 28 '18 at 17:31
• Well then you will have to install etoolbox in the same way. mirrors.ctan.org/systems/win32/miktex/tm/packages/… – Ulrike Fischer Nov 28 '18 at 17:41
• I'm getting an unending number of missing dependencies. Is there any way to find all of them I need to use beamer? – John Doe Nov 28 '18 at 18:13
• Not really. You can search for some log and guess, but it would be easier to download the whole lot, e.g. with wget. – Ulrike Fischer Nov 28 '18 at 18:15
• There are an enormous number of dependencies. I've manually download around 15 now. No end in sight, – John Doe Nov 28 '18 at 18:28

From https://ctan.org/tex-archive/systems/win32/miktex/tm/packages, download to a directory on your h.d. beamer.tar.lzma and the 5 following files:

pr.ini, files.csv.lzma, miktex-zzdb1-2.9.tar.lzma, miktex-zzdb2-2.9.tar.lzma and miktex-zzdb3-2.9.tar.lzma`.

You have to declare the local repository from MiKTeX console, Settings, like this: