MiKTeX update script (bash/cygwin)
With this script
(v1.4) you can hold an existing MiKTeX installation
up-to-date. Therefore the script syncronizes a local
repository with CTAN or connect to a MiKTeX online
repository and updates the installed packages
afterwards. After that new packages are installed. In
the end you have a complete up-to-date MiKTeX
installation.
Example output of a miktex_update call
The script offers the following options:
Correct calls would be:
Example output of a miktex_update call
The script offers the following options:
| -h | --help | will print a help statement |
| -V | --version | will print the version number of miktex_update |
| -a | --admin | will run mpm in administrative mode (MiKTeX v2.8+) |
| -b | --broadband | will optimize the text output in LOCAL mode for broadband download. Support for partial package download will be switched off! |
| -v | --verbose | will lead to a more verbose text output in the process of updating and installing new packages |
| -n | --nolist | will not print the list of updatable and/or installable packages |
| -I | --interactive | the script will ask, if you want to update and/or install packages (-n.--nolist will be switched off) |
| -s | --searchonly | will only list packages, but not update or install them |
| -u | --update | will only update already installed packages |
| -i | --install | will only install new respectively uninstalled packages |
| -l | --local | will set the update mode to LOCAL and syncronize the local repository (default or specified with option -r) with CTAN |
| -o | --online | will set the update mode to ONLINE. You can specify an online repository with option -r. Without doing so, a repository from the MiKTeX server network will be picked by random |
| -r | --repository | specifies the local or online repository for updating and installing new packages |
| -R | --rsync | specifies the rsync server, if you don't want to use the default server (rsync://tug.ctan.org/CTAN/) |
Correct calls would be:
miktex_update -lvb
|
miktex_update -lvI -r E:/MiKTeXRepo -R rsync://dante.ctan.org/CTAN/
|
miktex_update -o --verbose
|
miktex_update -o -r
http://ftp.nara.wide.ad.jp/pub/TeX/CTAN/
systems/win32/miktex/tm/packages/
|
![[deutsch]](defahne.gif)
![[englisch]](ukfahne.gif)