M(iKTeX) P(ackage) M(anager) for Unix-alikes
From Peter-Jan Randewijk
Using the M(iKTeX) P(ackage) M(anager) for Unix-alikes
On openSUSE 10.3 install:
- libidn-devel - Include Files and Libraries mandatory for Development.
- libcurl-devel - Header Files and Libraries for cURL Development
- libopenssl-devel - Include Files and Libraries mandatory for Development
- zlib-devel - Include Files and Libraries mandatory for Development
- libmspack - a library for Microsoft compression formats (http://www.kyz.uklinux.net/libmspack/)
using YaST:
Download the latest MiKTeX Tools, e.g. miktex-tools-2.5.2719-beta-15.tar.gz from SourceForge
I couldn't get the latest distribution, miktex-tools-2.5.2719-beta-15.tar.gz, to work, and are still using miktex-tools-2.5.2398-beta-14.tar.gz, which can be downloaded here.
Become a superuser, using su
copy to /usr/src/packages/SOURCES (for e.g.)
in /usr/src/packages/SOURCES, run
tar xvzf miktex-tools-2.5.2398-beta-14.tar.gz cd miktex-tools-2.5.2398-beta-14 ./configure make make install
find the MiKTeX repository under your local CTAN mirror, usually located at: <ftp-mirror>/CTAN/systems/win32/miktex/tm/packages or use ftp://ctan.org/ctan/systems/win32/miktex/tm/packages
and create/update your local MikTeX database in your local <somewhere>/texmf tree
mpm --repository=ftp://ftp.sun.ac.za/CTAN/systems/win32/miktex/tm/packages \ --update-db
create a file with all the available MiKTeX packages, e.g.
mpm --list > miktex.list
edit this file (with Kate using block mode, CTRL+SHIFT+B) so that only a list of packages names remain that you are interested in
To install ALL these packages, run
mpm --repository=ftp://ftp.sun.ac.za/CTAN/systems/win32/miktex/tm/packages \ --install-some=miktex.list
or to only install a specific package, run
mpm --repository=ftp://ftp.sun.ac.za/CTAN/systems/win32/miktex/tm/packages \ --install=<specific_LaTeX_package>
then run
texhash
to update the local TeXLive search database
and
updmap
to update the local font map-file
The local texmf tree is usually located at /usr/local/share/texmf, alternatively you can specify where your texmf tree is located using the mpm commandline switch,
mpm --install-root=<your_local_texmf_root>
The default value is:
mpm --install-root=/usr/local/share/texmf
Setting,
mpm --install-root=/usr/share/texmf
is usually not recommended, as it over writes the default TeXLive packages.
The /usr/local directories have precedence over /usr/ directories which implies that if a newer LaTeX package is installed in /usr/local/share/texmf, it will be used instead of using the older package in /usr/share/texmf. This convention allow the user to quickly see what customisation to the default texmf tree is/was required when migrating to a different computer, or when upgrading to a newer version of (say) openSUSE.
To update ALL your MiKTeX packages, run
mpm --repository=ftp://archive.sun.ac.za/CTAN/systems/win32/miktex/tm/packages \ --update-some=miktex.list
as often as required, followed by
texhash
or only for a specific package, run
mpm --repository=ftp://archive.sun.ac.za/CTAN/systems/win32/miktex/tm/packages \ --update=<specific_package_name>