MiKTeX can be installed via the Homebrew package manager.
If you don't already have Homebrew installed, you can install it by pasting
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
in a Terminal prompt. Please visit the Homebrew homepage for more detailed instructions.
MiKTeX can then be installed by pasting these commands:
brew tap miktex/miktex
brew install miktex
in a Terminal prompt. The first command adds the MiKTeX repository to the list of formulae that Homebrew tracks, updates and installs from. The second command sets up a bare minimum MiKTeX, i.e., only executable files and manual pages.
From time to time, you should run
brew outdated miktex || brew upgrade miktex
This will update the MiKTeX executables, if there is a newer version available.
MiKTeX is pre-configured to install missing files on-the-fly, which allows you to keep your TeX installation reduced to the most necessary.
If you intend to work offline, you can upgrade your TeX installation by runnning
mpm --admin --package-level=basic --upgrade
This will upgrade to a TeX installation which consists of the
most popular packages. If you want to install all available packages,
then you can choose package level
TEXMF root directories:
User configuration data (
Recoverable user data (
Packages installed for the user (
System-wide configuration data (
System-wide recoverable data (
Packages installed for all users (
MiKTeX internal binaries
MiKTeX shared objects
MiKTeX man pages