<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% !TeX root = ../install-latex-guide-zh-cn.tex

\chapter{ç¦»çº¿å®‰è£…å®åŒ…}

ç”±äºŽä¸€äº›åŽŸå›&nbsp;,
æœ‰äº›ç”µè„‘ä¸èƒ½è”ç½‘,
è¿™å¯¹å‡çº§å®åŒ…ä¸åˆ©.
è¿™é‡Œä»‹ç»ç¦»çº¿å‡çº§æ&nbsp;‡å‡† \TeX{} Live çš„åŒ… (pkg) çš„æ–¹æ³•,
ä¸»è¦æ˜¯ç”¨ \texttt{tlmgr install} çš„ \texttt{--file} å‚æ•°æ¥å®žçŽ°.

é¦–å…ˆåœ¨èƒ½å¤Ÿè”ç½‘çš„ç”µè„‘ä¸Šè®¿é—®
\href{https://ctan.org/tex-archive/systems/texlive/tlnet/archive}{archive}
é¡µé¢, ä¸‹è½½ \texttt{&lt;archivename&gt;.tar.xz} æ–‡ä»¶.
æ–‡ä»¶åˆ—è¡¨å¾ˆé•¿, åŠ&nbsp;è½½éœ€èŠ±è´¹äº›æ—¶é—´.
æ³¨æ„ \texttt{&lt;archivename&gt;} æœªå¿…æ˜¯ \href{https://ctan.org/pkg/}{pkg} ä¸Šçš„ \texttt{&lt;pkgname&gt;},
ä¾‹å¦‚åœ¨ \texttt{pkg} ä¸Šçš„
\href{https://ctan.org/pkg/lshort-zh-cn}{lshort-zh-cn}
å¯¹åº”ç€ \texttt{archive} ä¸Šçš„
\href{http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-chinese.tar.xz}{lshort-chinese.tar.xz}
å’Œ
\href{http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-chinese.doc.tar.xz}{lshort-chinese.doc.tar.xz}.

è¿™é‡Œå¤šè§£é‡Šä¸€ç‚¹ \texttt{&lt;archivename&gt;}.
å‰é¢å·²ç»çœ‹åˆ°ä¸€ä¸ª \texttt{&lt;pkgname&gt;} å¯èƒ½ä¼šå¯¹åº”å¤šä¸ª \texttt{&lt;archivename&gt;},
ä½†åŸºæœ¬ä¸Š \texttt{&lt;archivename&gt;} çš„å‘½åè§„åˆ™æ˜¯ \texttt{&lt;xxx&gt;},
\texttt{&lt;xxx.source&gt;} å’Œ \texttt{&lt;xxx.doc&gt;}.
\texttt{&lt;xxx&gt;} æ˜¯å¿…è£…çš„å®åŒ…æ–‡ä»¶;
\texttt{&lt;xxx.source&gt;} æ˜¯é€‰æ‹©å®‰è£…çš„æºç&nbsp;, å¦‚ \texttt{dtx} æ–‡ä»¶;
\texttt{&lt;xxx.doc&gt;} æ˜¯é€‰æ‹©å®‰è£…çš„æ–‡æ¡£, å¦‚ \texttt{pdf} æ–‡ä»¶ç­‰.
è¿™ä¸‰è€…æœªå¿…åŒæ—¶å­˜åœ¨, ä¾‹å¦‚å‰é¢æåˆ°çš„ \texttt{lshort-chinese}.

å¦å¤–, å¦‚æžœéœ€è¦å®‰è£…çš„æ˜¯ä¸€ä¸ªå¯æ‰§è¡Œæ–‡ä»¶, ä¾‹å¦‚ \texttt{pdftex} æˆ– \texttt{xetex},
é‚£ä¹ˆä¼šæ¶‰åŠåˆ°æ&nbsp;¹æ®æ“ä½œç³»ç»Ÿè¿›è¡Œä¸‹è½½çš„ç›¸å…³åˆ¤æ–­.
å¦‚æžœè¦å‡çº§æœ¬åœ°å·²å®‰è£…çš„å¯æ‰§è¡Œæ–‡ä»¶, å¯ä»¥åœ¨å‘½ä»¤è¡Œè¾“å…¥ä»¥ä¸‹è¯­å¥æŸ¥è¯¢:
\begin{lstlisting}[language=bash, title={\small\sffamily Windows ç³»ç»Ÿ}]
  tlmgr info --only-installed | findstr "pdftex"
\end{lstlisting}
\begin{lstlisting}[language=bash, title={\small\sffamily Ubuntu å’Œ Mac ç³»ç»Ÿ}]
  tlmgr info --only-installed | grep 'pdftex'
\end{lstlisting}
åœ¨è¾“å‡ºç»“æžœä¸­å¯çœ‹åˆ°å¸¦ç³»ç»Ÿä¿¡æ¯çš„åç§°.
å¦‚æžœæ˜¯å‡çº§æœ¬åœ°æœªå®‰è£…çš„å¯æ‰§è¡Œæ–‡ä»¶,
é‚£ä¹ˆç”¨æˆ·å°±éœ€è¦æ&nbsp;¹æ®ç»éªŒè‡ªè¡Œåˆ¤æ–­.

ä¸‹è½½æ­£ç¡®çš„ \texttt{&lt;archivename&gt;.tar.xz} åŽ,
å¯å…ˆæ£€æŸ¥ä¸€ä¸‹è¯¥åŽ‹ç¼©æ–‡ä»¶ä¸­æ˜¯å¦åŒ…å«äº† \texttt{tlpobj} æ–‡ä»¶.
ä¹‹åŽå°†åŽ‹ç¼©æ–‡ä»¶æ‹·è´åˆ°æœªè”ç½‘ç”µè„‘ä¸Š,
åœ¨å‘½ä»¤è¡Œæ‰§è¡Œ
\begin{lstlisting} 
  tlmgr install --file &lt;archivename&gt;.tar.gz 
\end{lstlisting}
ç³»ç»Ÿä¾¿å¯è‡ªè¡Œå®‰è£….</pre></body></html>