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?
4 Answers
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
http://mirrors.ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma http://mirrors.ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb2-2.9.tar.lzma http://mirrors.ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb3-2.9.tar.lzma
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 DoeNov 28, 2018 at 17:31
-
Well then you will have to install etoolbox in the same way. mirrors.ctan.org/systems/win32/miktex/tm/packages/… Nov 28, 2018 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 DoeNov 28, 2018 at 18:13
-
1Not really. You can search for some log and guess, but it would be easier to download the whole lot, e.g. with wget. Nov 28, 2018 at 18:15
-
There are an enormous number of dependencies. I've manually download around 15 now. No end in sight,– John DoeNov 28, 2018 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:
Well the obvious places to start are for downloading beamer are
- https://ctan.org/pkg/beamer?lang=en
- https://sourceforge.net/projects/latex-beamer/
- might have to look at tex live for installing a local package repo ftp://tug.org/historic/systems/texlive/
I downloaded the following files and store them together in a folder named MiKTeX:
Requiredpackagenames.tar.lzma
miktex-zzdb1-2.9.tar.lzma
miktex-zzdb3-2.9.tar.lzma
After the basic Installation I opened the MiKTeX Console and selected under packages the local repository MiKTeX Folder with the files I downloaded before. Then start MiKTeX and you can install the packages from your own directory.