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.

Install on Windows

Installer

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: 5/19/2020
File name: basic-miktex-2.9.7442-x64.exe
Size: 235.42 MB
SHA-256: e31e54504550187b9259aa95f92157458690030d0059473238b8b587854a238b
Download

Portable Edition

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 seperate installer. Just download the standard installer and rename it to miktex-portable.exe.

Command-line installer

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: 5/19/2020
File name: miktexsetup-2.9.7442-x64.zip
Size: 2.44 MB
SHA-256: 6e5996544cbd517b4c661f7642a9f6aae68cf85c92e56a7e1bb81ed33df1d153
Download

Install on macOS

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: 5/24/2020
File name: miktex-2.9.7445-1-darwin-x86_64.dmg
Size: 53.3 MB
SHA-256: 8b8e19486ca519a1594de5248d6d3269bfd3b13505079924b6c601e189e272db
Download

Install on Linux

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

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889

b. Register installation source

Ubuntu 20.04 LTS (Focal Fossa):
echo "deb http://miktex.org/download/ubuntu focal universe" | sudo tee /etc/apt/sources.list.d/miktex.list
Ubuntu 18.04 LTS (Bionic Beaver):
echo "deb http://miktex.org/download/ubuntu bionic universe" | sudo tee /etc/apt/sources.list.d/miktex.list
Ubuntu 16.04 LTS (Xenial Xerus):
echo "deb http://miktex.org/download/ubuntu xenial 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 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889

b. Register installation source

Linux Mint 20:
echo "deb http://miktex.org/download/ubuntu focal universe" | sudo tee /etc/apt/sources.list.d/miktex.list
Linux Mint 19:
echo "deb http://miktex.org/download/ubuntu bionic universe" | sudo tee /etc/apt/sources.list.d/miktex.list
Linux Mint 18:
echo "deb http://miktex.org/download/ubuntu xenial 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 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889

b. Register installation source

Debian 9 (Stretch):
echo "deb http://miktex.org/download/debian stretch 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://keyserver.ubuntu.com/pks/lookup?op=get&search=0xD6BC243565B2087BC3F897C9277A7293F59E4889"

b. Register installation source

Fedora 32:
sudo curl -L -o /etc/yum.repos.d/miktex.repo https://miktex.org/download/fedora/32/miktex.repo
Fedora 30:
sudo curl -L -o /etc/yum.repos.d/miktex.repo https://miktex.org/download/fedora/30/miktex.repo
Fedora 28:
sudo curl -L -o /etc/yum.repos.d/miktex.repo https://miktex.org/download/fedora/28/miktex.repo

c. Install MiKTeX

sudo dnf update
sudo dnf install miktex

a. Register GPG key

sudo rpm --import "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xD6BC243565B2087BC3F897C9277A7293F59E4889"

b. Register installation source

CentOS 8:
sudo curl -L -o /etc/yum.repos.d/miktex.repo https://miktex.org/download/centos/8/miktex.repo

c. Install MiKTeX

sudo dnf update
sudo dnf install miktex

a. Register GPG key

sudo rpm --import "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xD6BC243565B2087BC3F897C9277A7293F59E4889"

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. You can obtain the image from Docker hub:

docker pull miktex/miktex

Create a volume:

docker volume create --name miktex

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

docker run -ti \
  -v miktex:/miktex/.miktex \
  -v `pwd`:/miktex/work \
  miktex/miktex \
  pdflatex main.tex

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

Please beware that the Docker image is still in an experimental stage.

All downloads

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

Date: 5/19/2020
File name: basic-miktex-2.9.7442-x64.exe
Size: 235.42 MB
SHA-256: e31e54504550187b9259aa95f92157458690030d0059473238b8b587854a238b
Download

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

Date: 5/19/2020
File name: basic-miktex-2.9.7442.exe
Size: 227.15 MB
SHA-256: 358d58b8df64e7e610a26fac4b6be805da486b5dea5d7d44cb2f1cbd465f0ddb
Download

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

Date: 5/19/2020
File name: setup-2.9.7442-x64.exe
Size: 23.91 MB
SHA-256: 0918da38ee698d615f6f9988ff433e279fd8c6407760a4e28d2ec66f0fd3abf7
Download

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

Date: 5/19/2020
File name: setup-2.9.7442.exe
Size: 18.97 MB
SHA-256: 7f745b79acd269229e3f8a03042b7a937e94d0916db0b8a4a65fe3bbc06b99f1
Download

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: 5/19/2020
File name: miktexsetup-2.9.7442-x64.zip
Size: 2.44 MB
SHA-256: 6e5996544cbd517b4c661f7642a9f6aae68cf85c92e56a7e1bb81ed33df1d153
Download

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: 5/19/2020
File name: miktexsetup-2.9.7442.zip
Size: 2.09 MB
SHA-256: 55c1e1b6ecff7afc734452ff9931b3a9dcc46b1aad8b32281dd85001749b8adf
Download

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: 5/24/2020
File name: miktex-2.9.7445-1-darwin-x86_64.dmg
Size: 53.3 MB
SHA-256: 8b8e19486ca519a1594de5248d6d3269bfd3b13505079924b6c601e189e272db
Download

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

Date: 5/19/2020
File name: miktex-2.9.7440.tar.xz
Size: 25.2 MB
SHA-256: c2b4ea16a3ab4ff73ac489bfb69232dae6fd43f59554203cf04f94395e12136f
Download