Getting MiKTeX

MiKTeX is available for selected operating systems.

Please check the prerequisites in order to find out whether your system is supported.

If your system is not (yet) supported: it is not too difficult to build MiKTeX.

To install a basic TeX/LaTeX system on Windows, download and run this installer.

Please read the tutorial, if you want step-by-step guidance.

Date:
01/28/2024
File name:
basic-miktex-24.1-x64.exe
Size:
138.07 MB
SHA-256:
94ddd75e2b90309b75db6dbda7d8103fcebda4495b579695e925e885d2b92704

The portable edition allows you to run MiKTeX from a portable storage device.

Please read the tutorial, if you want step-by-step guidance.

Please note that there is no separate installer. Just download the standard installer and rename it to miktex-portable.exe.

If you want to install MiKTeX on many client computers, then you should use the MiKTeX Setup Utility to deploy MiKTeX in your organization. You can read the deployment tutorial, if you want step-by-step guidance.

Date:
04/17/2023
File name:
miktexsetup-5.5.0+1763023-x64.zip
Size:
2.6 MB
SHA-256:
0571e90f6d94353089b4f189fd82a532f9fe559a388c7e7f1102b14b3c1ae27d

To set up a TeX/LaTeX system on macOS, download and open this disk image. Then drag the MiKTeX icon onto the Applications folder.

Please read the tutorial, if you want step-by-step guidance.

Date:
02/01/2022
File name:
miktex-22.1-darwin-x86_64.dmg
Size:
60.63 MB
SHA-256:
a5b531a60fc51c1f01c1af46bf859863c6974ef8d71213e476642acb788a4e4f

MiKTeX is available for selected Linux distributions.

Installing MiKTeX on Linux involves these steps:

  1. Register the GPG key with which MiKTeX installation packages and metadata is signed. The key ID is: D6BC243565B2087BC3F897C9277A7293F59E4889
  2. Register the installation source which contains the MiKTeX installation package. The installation source depends on the Linux distribution version.
  3. Use the package management system to install MiKTeX.
  4. Finish the setup.
  5. Upgrade your TeX distribution. This is an optional step.

Please click a tab to get instructions for your Linux distribution:

a. Register GPG key

curl -fsSL https://miktex.org/download/key | sudo tee /usr/share/keyrings/miktex-keyring.asc > /dev/null

b. Register installation source

Ubuntu 24.04 LTS (Noble Numbat):
echo "deb [signed-by=/usr/share/keyrings/miktex-keyring.asc] https://miktex.org/download/ubuntu noble universe" | sudo tee /etc/apt/sources.list.d/miktex.list
Ubuntu 22.04 LTS (Jammy Jellyfish):
echo "deb [signed-by=/usr/share/keyrings/miktex-keyring.asc] https://miktex.org/download/ubuntu jammy universe" | sudo tee /etc/apt/sources.list.d/miktex.list
Ubuntu 20.04 LTS (Focal Fossa):
echo "deb [signed-by=/usr/share/keyrings/miktex-keyring.asc] https://miktex.org/download/ubuntu focal universe" | sudo tee /etc/apt/sources.list.d/miktex.list

c. Install MiKTeX

sudo apt-get update
sudo apt-get install miktex

a. Register GPG key

curl -fsSL https://miktex.org/download/key | sudo tee /usr/share/keyrings/miktex-keyring.asc > /dev/null

b. Register installation source

Linux Mint 21:
echo "deb [signed-by=/usr/share/keyrings/miktex-keyring.asc] https://miktex.org/download/ubuntu jammy universe" | sudo tee /etc/apt/sources.list.d/miktex.list
Linux Mint 20:
echo "deb [signed-by=/usr/share/keyrings/miktex-keyring.asc] https://miktex.org/download/ubuntu focal universe" | sudo tee /etc/apt/sources.list.d/miktex.list

c. Install MiKTeX

sudo apt-get update
sudo apt-get install miktex

a. Register GPG key

curl -fsSL https://miktex.org/download/key | sudo tee /usr/share/keyrings/miktex-keyring.asc > /dev/null

b. Register installation source

Debian 12 (Bookworm):
echo "deb [signed-by=/usr/share/keyrings/miktex-keyring.asc] https://miktex.org/download/debian bookworm universe" | sudo tee /etc/apt/sources.list.d/miktex.list
Debian 11 (Bullseye):
echo "deb [signed-by=/usr/share/keyrings/miktex-keyring.asc] https://miktex.org/download/debian bullseye universe" | sudo tee /etc/apt/sources.list.d/miktex.list

c. Install MiKTeX

sudo apt-get update
sudo apt-get install miktex

a. Register GPG key

sudo rpm --import "https://miktex.org/download/key"

b. Register installation source

Fedora 40:
sudo curl -L -o /etc/yum.repos.d/miktex.repo https://miktex.org/download/fedora/40/miktex.repo
Fedora 39:
sudo curl -L -o /etc/yum.repos.d/miktex.repo https://miktex.org/download/fedora/39/miktex.repo
Fedora 38:
sudo curl -L -o /etc/yum.repos.d/miktex.repo https://miktex.org/download/fedora/38/miktex.repo

c. Install MiKTeX

sudo dnf update
sudo dnf install miktex

a. Register GPG key

sudo rpm --import https://miktex.org/download/key

b. Register installation source

Rocky Linux 9:
sudo curl -L -o /etc/yum.repos.d/miktex.repo https://miktex.org/download/rockylinux/9/miktex.repo

c. Install MiKTeX

sudo dnf update
sudo dnf install miktex

a. Register GPG key

sudo rpm --import https://miktex.org/download/key

b. Register installation source

openSUSE Leap 15:
sudo curl -L -o /etc/zypp/repos.d/miktex.repo https://miktex.org/download/opensuse/15/miktex.repo

c. Install MiKTeX

sudo zypper update
sudo zypper install miktex

d. Finish the setup

Before you can use MiKTeX, you have to finish the setup. You can use MiKTeX Console or, if you prefer the command line, miktexsetup.

Start MiKTeX Console to finish the setup

Search&click the MiKTeX Console icon to start MiKTeX Console:

Image Text

Now is the time to make a decision:

Do you want to set up a private (for you only) TeX installation, or do you want to set up a shared (system-wide) TeX installation?

You probably want to choose the first option.

The second option makes sense if you are the administrator of a multi-user system. If this is the case and if you expect that some of your users would like to work with MiKTeX, then you should install MiKTeX system-wide.

Click one of the two buttons if you have made your decision.

Run miktexsetup to finish the setup

Run

miktexsetup finish

to finish with a private (for you only) TeX installation. Executables like lualatex will be installed in ~/bin.

Run

sudo miktexsetup --shared=yes finish

to finish with a shafred (system-wide) TeX installation. Executables like lualatex will be installed in /usr/local/bin.

You also may want to enable automatic package installation:

initexmf --set-config-value [MPM]AutoInstall=1

Or, if you have a shared installation:

sudo initexmf --admin --set-config-value [MPM]AutoInstall=1

e. Upgrade

If you have just installed MiKTeX, then you have the option to upgrade your installation to a standard TeX system. Just click the Upgrade button. Please be aware that this starts a ~200MB download.

Alternatively, you can turn on the auto-install feature and let MiKTeX install missing packages on-the-fly. This will help you to keep your TeX installation as minimal as possible (“Just enough TeX”).

See also

FAQ: Is it possible to install MiKTeX and TeX Live side-by-side?

Docker image

The Docker image allows you to run MiKTeX on any computer that supports Docker.

Provided that your main input file is located in the current working directory, you can run pdflatex as follows:

docker run -ti -v miktex:/var/lib/miktex -v `pwd`:/miktex/work -e MIKTEX_UID=`id -u` miktex/miktex:essential pdflatex main.tex

Please read the tutorial, if you want step-by-step guidance.

To install a basic TeX/LaTeX system on Windows, download and run this installer.

Date:
01/28/2024
File name:
basic-miktex-24.1-x64.exe
Size:
138.07 MB
SHA-256:
94ddd75e2b90309b75db6dbda7d8103fcebda4495b579695e925e885d2b92704

This installer allows you download all packages and install a complete TeX/LaTeX system on Windows.

Date:
10/06/2023
File name:
setup-5.6.1+3f4a6a7-x64.exe
Size:
24.53 MB
SHA-256:
038023c7dba0cd5f48f50b21ae8ccff27b5f9d376bbfe162cf9187f2b6212c2e

The MiKTeX Setup Utility is used to download, install and uninstall MiKTeX using the command line. It is suitable for unattended setup tasks and can be regarded as the command line counterpart of the MiKTeX Setup Wizard.

Date:
04/17/2023
File name:
miktexsetup-5.5.0+1763023-x64.zip
Size:
2.6 MB
SHA-256:
0571e90f6d94353089b4f189fd82a532f9fe559a388c7e7f1102b14b3c1ae27d

To set up a TeX/LaTeX system on macOS, download and open this disk image. Then drag the MiKTeX icon onto the Applications folder.

Date:
02/01/2022
File name:
miktex-22.1-darwin-x86_64.dmg
Size:
60.63 MB
SHA-256:
a5b531a60fc51c1f01c1af46bf859863c6974ef8d71213e476642acb788a4e4f

Download MiKTeX source code if you want to incorporate MiKTeX into your own software product.

Date:
04/29/2024
File name:
miktex-24.4.tar.xz
Size:
27.99 MB
SHA-256:
d645b049a546ecd52397db5c883f4140885b201f5bb4ac401885cb2cc5219805