Miktex: enable installing packages on the fly from command line

1.6k views Asked by At

Is it possible to enable the option install packages on the fly from the command line, i.e. without interacting with the npm gui?

This would be useful for setting up miktex on CI services such as appveyor.

1

There are 1 answers

0
Christian Schenk On BEST ANSWER

You can achieve this by setting the [MPM]AutoInstall value:

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

1 means: install without asking the user. Other possiblie values are:

  • 0: turn off automatic installation
  • 2: ask the user