<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% !TeX root = ../tlmgr-intro-zh-cn.tex
\section[æ“ä½œ]{æ“ä½œ (ACTIONS)}

\subsection{\mdseries\ac{info}}\label{subsec:info}

\paragraph{ä½¿ç”¨æ–¹æ³•:}

% \begin{lstlisting}
%         tlmgr info [collections|schemes|+\textit{pkgs}+]
% \end{lstlisting}

\begin{quote}
    \tlmgr{} \ac{info} \oarg{\upshape collections|schemes|\textit{pkgs}}.
\end{quote}

å¦‚æžœä¸å¸¦å‚æ•°, å°†ä¼šåˆ—å‡ºæ‰€æœ‰è½¯ä»¶åŒ…ä»“åº“ä¸­çš„è½¯ä»¶åŒ…, æŠŠå“ªäº›å·²ç»è¢«å®‰è£…çš„è½¯ä»¶åŒ…åŠ&nbsp;ä¸Šå‰ç¼€ \texttt{i}.

å¦‚æžœå¸¦å‚æ•° \texttt{collections} æˆ– \texttt{schemes}, å°†ä¼šåˆ—å‡ºå…¨éƒ¨çš„é›†åˆæˆ–å®‰è£…æ–¹æ¡ˆ, è€Œä¸åˆ—å‡ºè½¯ä»¶åŒ…, åŒæ&nbsp;·åœ°, æŠŠå·²ç»å®‰è£…çš„é›†åˆæˆ–å®‰è£…æ–¹æ¡ˆåŠ&nbsp;ä¸Šå‰ç¼€ \texttt{i}. 

å¦‚æžœå¸¦äº†ä»»æ„å…¶ä»–çš„å‚æ•°, å°†ä¼šä¾æ¬¡åˆ—å‡º \marg{pkgs} ä¸­çš„æ¯ä¸€ä¸ªè½¯ä»¶åŒ…çš„ä¿¡æ¯: åç§° (name), åˆ†ç±» (category), ç®€çŸ­å’Œè¯¦ç»†çš„ä»‹ç» (short and long description), è½¯ä»¶åŒ…å¤§å° (size), å®‰è£…çŠ¶æ€ (status), ä»¥åŠ \tl ä¸­çš„ç‰ˆæœ¬å·. å¦‚æžœè¿™ä¸ªè½¯ä»¶åŒ…æ²¡æœ‰åœ¨æœ¬åœ°å®‰è£…, é‚£ä¹ˆ \tlmgr å°†ä¼šåœ¨è¿œç«¯ä»“åº“åŽ»æŸ¥æ‰¾å®ƒ. 

å¯¹äºŽæ™®é€šçš„è½¯ä»¶åŒ… (é™¤äº†é›†åˆä¸Žå®‰è£…æ–¹æ¡ˆ), è½¯ä»¶åŒ…å¤§å°æ˜¯åˆ† 4 ä¸ªéƒ¨åˆ†æ˜¾ç¤ºçš„ (run/src/doc/bin). å¯¹äºŽé›†åˆ, æ˜¾ç¤ºçš„æ˜¯æ‰€æœ‰ç›´æŽ¥\textbf{ä»Žå±ž} (dependent) äºŽå®ƒçš„è½¯ä»¶åŒ…çš„å¤§å°æ€»å’Œ, ä½†æ˜¯ä¸åŒ…æ‹¬ä»Žå±žçš„é›†åˆ. å¯¹äºŽå®‰è£…æ–¹æ¡ˆ, æ˜¾ç¤ºçš„æ˜¯æ‰€æœ‰ç›´æŽ¥ä»Žå±žäºŽå®ƒçš„é›†åˆä¸Žè½¯ä»¶åŒ…çš„å¤§å°æ€»å’Œ. 

å¦‚æžœåœ¨æœ¬åœ°ä¸Žçº¿ä¸Šéƒ½æ²¡æœ‰å®Œæ•´çš„åŒ¹é…ç»“æžœ, é‚£ä¹ˆ \tlmgr å°†ä¼šä½¿ç”¨ \ac{search} æ“ä½œå¯»æ‰¾åç§°ä¸Žå®ƒç›¸å…³çš„è½¯ä»¶åŒ…, è§ \nameref{subsec:search} å°èŠ‚. 

\ac{info} æ“ä½œä¹Ÿä¼šæ˜¾ç¤ºä»Ž \TeX\,Catalogue èŽ·å–çš„ä¿¡æ¯: è½¯ä»¶åŒ…ç‰ˆæœ¬ (package revision), æ—¥æœŸ (date), ä»¥åŠè®¸å¯è¯ (license). ä¸è¿‡è¿™äº›ä¿¡æ¯, å°¤å…¶æ˜¯è½¯ä»¶åŒ…ç‰ˆæœ¬, èŽ·å¾—çš„ä¿¡æ¯åªèƒ½ç”¨åšå‚è€ƒ, è¿™æ˜¯ç”±äºŽä¸åŒéƒ¨åˆ†çš„æ›´æ–°æœ‰æ—¶é—´å·®. 

æ—§æ“ä½œ \ac{show} ä¸Ž \ac{list} å·²ç»è¢«åˆå¹¶åˆ°äº† \ac{info} æ“ä½œä¸­, ä½†æ˜¯ä¸ºäº†å…¼å®¹æ€§è¿™ä¸¤ä¸ªæ“ä½œä»ç„¶å¯ç”¨. 

\paragraph{{\mdseries\ac{info}} çš„ç‰¹æœ‰é€‰é¡¹:}
\begin{description}
    \item \op{-list}\par
    å¦‚æžœ \op{-list} ä¸Žä¸€ä¸ªè½¯ä»¶åŒ…ä¸€èµ·æŒ‡å®š, é‚£ä¹ˆå°†ä¼šåŒæ—¶åˆ—å‡ºè¿™ä¸ªè½¯ä»¶åŒ…åŒ…å«çš„æ–‡ä»¶, åŒ…æ‹¬é‚£äº›ç‰¹å®šå¹³å°ä¸Šçš„ä»Žå±žåŒ…. å¦‚æžœä¸Ž \texttt{collections} æˆ–è€… \texttt{schemes} ä¸€èµ·æŒ‡å®š, é‚£ä¹ˆ \op{-list} å°†ä¼šä»¥ä¸€ä¸ªç›¸ä¼¼çš„æ–¹å¼è¾“å‡ºä¾èµ–å…³ç³». 
    \item \op{-only-installed}\par
    å¦‚æžœæŒ‡å®šè¿™ä¸ªé€‰é¡¹, é‚£ä¹ˆå°†ä¸ä¼šä½¿ç”¨å®‰è£…æºçš„ä¿¡æ¯, åªä¼šæ˜¾ç¤ºæœ¬åœ°å·²ç»å®‰è£…çš„è½¯ä»¶åŒ…, é›†åˆæˆ–å®‰è£…æ–¹æ¡ˆ.
    \item \op{-only-remote}\par
    åªåˆ—å‡ºè¿œç«¯ä»“åº“ä¸­çš„è½¯ä»¶åŒ…, ä¸‹é¢æ˜¯ä¸€æ¡æµ‹è¯•å“ªäº›è½¯ä»¶åŒ…åœ¨æŸè¿œç«¯ä»“åº“ä¸­å¯ç”¨çš„å‘½ä»¤:
    \begin{quote}
        \tlmgr{} \op{-repo} \marg{url} \op{-only-remote} \ac{info}
    \end{quote}
    æ³¨æ„ \op{-only-installed} ä¸Ž \op{-only-remote} ä¸èƒ½åŒæ—¶ä½¿ç”¨. 
\end{description}

\clearpage

\subsection{\mdseries\ac{search}}\label{subsec:search}

\paragraph{ä½¿ç”¨æ–¹æ³•:}
\begin{quote}
    \tlmgr{} \ac{search} \marg{what}.
\end{quote}

é»˜è®¤çŠ¶æ€ä¸‹, \tlmgr{} ä¼šåœ¨æ‰€æœ‰æœ¬åœ°å®‰è£…çš„è½¯ä»¶åŒ…ä¸­æœç´¢åå­—, çŸ­æè¿°ä¸Žé•¿æè¿°ä¸­æ˜¯å¦å«æœ‰å‚æ•° \marg{what}, å…¶ä¸­ \marg{what} è¢«è§£é‡Šä¸ºä¸€ä¸ª (Perl) æ­£åˆ™è¡¨è¾¾å¼. 

\paragraph{{\mdseries\ac{search}} çš„ç‰¹æœ‰é€‰é¡¹:}
\begin{description}
    \item \op{-file}\par
    åˆ—å‡ºå«æœ‰ \marg{what} çš„æ–‡ä»¶å (å«è·¯å¾„), æ¯”å¦‚ä½¿ç”¨
    \begin{quote}
        \tlmgr{} \ac{search} \op{-file} \texttt{amsmath}
    \end{quote} 
    é‚£ä¹ˆåŒ…å«åœ¨æ–‡ä»¶å¤¹ \texttt{amsmath} ä¸‹çš„æ–‡ä»¶ä¹Ÿä¼šè¢«æ˜¾ç¤º, æ—&nbsp;è®ºå®ƒä»¬çš„æ–‡ä»¶åæ˜¯å¦å«æœ‰ \texttt{amsmath}. 
    \item \op{-global}\par
    åœ¨å®‰è£…ä»‹è´¨ (installation medium) çš„ \tl{} Database ä¸­æœç´¢, è€Œä¸æ˜¯æœ¬åœ°å®‰è£…. 
    \item \op{-word}\par
    ä¸¥æ&nbsp;¼åŒ¹é…è½¯ä»¶åŒ…çš„åå­—ä¸Žæè¿° (å¹¶ä¸æ˜¯æ–‡ä»¶å). æ¯”å¦‚ä½¿ç”¨
    \begin{quote}
        \tlmgr{} \ac{search} \op{-word} \texttt{table}
    \end{quote}
    å°±ä¸ä¼šåŒ¹é…åˆ°å«æœ‰ \texttt{tables} çš„è½¯ä»¶åŒ…, é™¤éžå®ƒåŒæ—¶å«æœ‰ä¸€ä¸ª \texttt{table}.
    \item \op{-all}\par
    åŒ¹é…æ‰€æœ‰çš„é¡¹ç›®: è½¯ä»¶åŒ…å, é•¿çŸ­æè¿°ä¸Žæ–‡ä»¶å (å«è·¯å¾„). 
\end{description}

\clearpage

\subsection{\mdseries\ac{install}}
\paragraph{ä½¿ç”¨æ–¹æ³•:}
\begin{quote}
    \tlmgr{} \ac{install} \marg{pkgs}.
\end{quote}

å®‰è£… \marg{pkgs} ä¸­çš„æ¯ä¸€ä¸ªè½¯ä»¶åŒ…, é™¤éžæŸè½¯ä»¶åŒ…å·²ç»è¢«å®‰è£…è¿‡äº†. é»˜è®¤çŠ¶æ€ä¸‹æ‰€æœ‰æŒ‡å®šçš„çš„è½¯ä»¶åŒ…çš„ä»Žå±žæ–‡ä»¶ä¹Ÿä¼šè¢«åŒæ—¶å®‰è£…. \ac{install} æ“ä½œä¸ä¼šæ›´æ”¹å·²ç»å®‰è£…çš„è½¯ä»¶åŒ…, å¦‚æžœæƒ³ä½¿ç”¨æœ€æ–°ç‰ˆæœ¬çš„è½¯ä»¶åŒ…, å¯ä»¥ä½¿ç”¨ \nameref{subsec:update} å°èŠ‚ä»‹ç»çš„ \ac{update} æ“ä½œ. 

\paragraph{{\mdseries\ac{install}} çš„ç‰¹æœ‰é€‰é¡¹:}
\begin{description}
    \item \op{-dry-run}\par
    åœ¨ç»ˆç«¯æ˜¾ç¤ºå°†è¦æ‰§è¡Œçš„æ“ä½œ, è€Œä¸è¿›è¡Œå®‰è£…. 
    \item \op{-reinstall}\par
    é‡æ–°å®‰è£…ä¸€ä¸ªè½¯ä»¶åŒ… (åŒ…æ‹¬å¯¹é›†åˆçš„ä¾èµ–), å³ä½¿å®ƒçœ‹èµ·æ¥å·²ç»å®‰è£…äº†, æ¯”å¦‚å®ƒå·²ç»å­˜åœ¨äºŽ TLPDB (\tl{} Package Database) ä¸­. è¿™ä¸ªé€‰é¡¹å¯¹äºŽæ¢å¤åœ¨å±‚çº§ä¸­ä¸å°å¿ƒåˆ&nbsp;é™¤çš„è½¯ä»¶åŒ…å¾ˆæœ‰ç”¨. 

    é‡æ–°å®‰è£…æ—¶ï¼Œåªéµå¾ªå¯¹æ™®é€šåŒ…çš„ä¾èµ– (ä¸éµå¾ªç±»åˆ«Schemeæˆ–Collectionçš„ä¾èµ–)%
    \footnote{When re-installing, only dependencies on normal packages are followed (i.e., not those of category Scheme or Collection).}. 
    \item \op{-with-doc}, \op{-with-src}\par
    \texttt{install-tl} ç»™äº†ä¸€ä¸ª ``ä¸å®‰è£…æ–‡æ¡£/æºæ–‡ä»¶'' çš„é€‰é¡¹, ä½†æ˜¯æˆ‘ä»¬ä¸æŽ¨èä½¿ç”¨è¿™ä¸ªé€‰é¡¹. (é»˜è®¤çŠ¶æ€ä¸‹ä¼šå®‰è£…æ‰€æœ‰çš„æ–‡ä»¶). å¦‚æžœç”¨äº†è¿™ä¸ªé€‰é¡¹, é‚£ä¹ˆå½“ç”¨æˆ·æƒ³èŽ·å¾—è½¯ä»¶åŒ…çš„æ–‡æ¡£æˆ–è€…æºæ–‡ä»¶çš„æ—¶å€™, å¯ä»¥ä½¿ç”¨è¿™ä¸¤ä¸ªé€‰é¡¹ä¸Ž \op{--reinstall}, ç”¨ \texttt{fontspec} å®åŒ…ä¸ºä¾‹: 
    \begin{quote}
        \tlmgr{} \ac{install} \op{-reinstall} \op{-with-doc} \op{-with-src} \texttt{fontspec}
    \end{quote}
    \item \op{-no-depends}\par
    ä¸å®‰è£…è½¯ä»¶åŒ…çš„ä»Žå±ž. (é»˜è®¤çŠ¶æ€ä¸‹, å®‰è£…ä¸€ä¸ªè½¯ä»¶åŒ…ä¼šä¿è¯å®ƒåŒ…å«å®ƒæ‰€æœ‰çš„ä»Žå±ž. )
\end{description}

    \textbf{æ³¨æ„}: \ac{install} æ“ä½œå¹¶ä¸ä¼šè‡ªåŠ¨å‘ç³»ç»Ÿç›®å½•ä¸­æ·»åŠ&nbsp;æ–°çš„\textbf{ç¬¦å·é“¾æŽ¥} (symlinks), éœ€è¦è‡ªè¡Œè¿è¡Œ
    \begin{quote}
        \tlmgr{} \ac{path} \key{add}
    \end{quote}
    å¦‚æžœæ‚¨æƒ³ä½¿ç”¨è¿™ä¸ªåŠŸèƒ½å¹¶ä¸”æƒ³æ·»åŠ&nbsp;æ–°çš„ç¬¦å·é“¾æŽ¥, å¯ä»¥é˜…è¯» \href{https://www.tug.org/texlive/doc/tlmgr.html#path}{path} æ“ä½œ. 

\subsection{\mdseries{\ac{update}}}\label{subsec:update}

\paragraph{ä½¿ç”¨æ–¹æ³•:}
\begin{quote}
    \tlmgr{} \ac{update} \marg{\textup{-all|}pkgs}
\end{quote}

æŠŠå‚æ•° \marg{pkgs} ä¸­çš„å®åŒ…å‡çº§åˆ°å®‰è£…æºä¸­æœ€æ–°çš„å¯ç”¨ç‰ˆæœ¬, å¿…é¡»æŒ‡å®š \marg{\textup{-all}} æˆ–è‡³å°‘ä¸€ä¸ªè½¯ä»¶åŒ…. 

\paragraph{{\mdseries\ac{update}} çš„ç‰¹æœ‰é€‰é¡¹:}
\begin{description}
    \item \op{-all}\par
    å‡çº§å…¨éƒ¨çš„è½¯ä»¶åŒ… (é™¤äº† \tlmgr{} æœ¬èº«). å¦‚æžœæŠŠ \tlmgr ä¹Ÿåˆ—å‡ºå®‰è£…èŒƒå›´å°†ä¼šæŠ¥é”™, é™¤éžåŒæ—¶æŒ‡å®šäº† \op{-force} ä¸Ž \op{-self} é€‰é¡¹. (è§ä¸‹)
    
    é™¤äº†å¯¹å·²å®‰è£…çš„è½¯ä»¶åŒ…è¿›è¡Œå‡çº§ä¹‹å¤–, å¯¹æœ¬åœ°å®‰è£…çš„é›†åˆçš„å‡çº§ (é»˜è®¤æ˜¯) å°†å®ƒä¸ŽæœåŠ¡å™¨ä¸Šçš„é›†åˆè¿›è¡ŒåŒæ­¥, æ—&nbsp;è®ºæ˜¯æ–°å¢žè¿˜æ˜¯ç§»é™¤. 

    ç±»ä¼¼åœ°, å¦‚æžœæœåŠ¡å™¨ä¸Šçš„ä¸€ä¸ªæœ¬åœ°å·²ç»å®‰è£…çš„é›†åˆæ–°å¢žäº†ä¸€ä¸ªè½¯ä»¶åŒ…, é‚£ä¹ˆå®ƒå°†ä¼šè¢«åŠ&nbsp;å…¥æœ¬åœ°å®‰è£…, è¿™è¢«ç§°ä½œ ``auto-install'', åŒæ—¶ä¼šåœ¨ä½¿ç”¨é€‰é¡¹ \op{-list} çš„æ—¶å€™è¢«æ˜¾ç¤º. 

    åœ¨é›†åˆä»Žå±žè½¯ä»¶åŒ…çš„æ£€æŸ¥ä¸­, å¦‚æžœæœ‰ä¸€äº›è¢«ç”¨æˆ·å¼ºåˆ¶åˆ&nbsp;é™¤ (forcibly removed), ä¹Ÿå°±æ˜¯ç”¨æˆ·ä½¿ç”¨å¯¹å®ƒä»¬ä½¿ç”¨äº† \tlmgr{} \ac{remove} \op{-force} å‘½ä»¤ (è§ \nameref{subsec:remove} å°èŠ‚). å¦‚æžœæƒ³é‡æ–°å®‰è£…ä»»ä½•ä¸€ä¸ªè¢«å¼ºåˆ¶åˆ&nbsp;é™¤çš„è½¯ä»¶åŒ…, è¦ä½¿ç”¨ \hyperlink{op:-reinstall-forcibly-removed}{\op{-reinstall-forcibly-removed}} é€‰é¡¹. 

    é‡ç”³ä¸€é: è‡ªåŠ¨æ–°å¢žä¸Žç§»é™¤æ˜¯å®Œå…¨é€šè¿‡é›†åˆä¹‹é—´çš„æ¯”è¾ƒå®Œæˆçš„. å›&nbsp;æ­¤, å¦‚æžœç”¨æˆ·æ‰‹åŠ¨å®‰è£…äº†ä¸€ä¸ªç¨åŽå°†è¢«æœåŠ¡å™¨ç§»é™¤çš„è½¯ä»¶åŒ…, \tlmgr{} ä¸ä¼šæ³¨æ„åˆ°å®ƒ, ä¹Ÿä¸ä¼šåœ¨æœ¬åœ°ç§»é™¤å®ƒ. (å°½é‡ä¸è¦ä¸»åŠ¨è¿›è¡Œæž¶æž„é‡ç»„ï¼Œå›&nbsp;ä¸º TLPDB ä¸è®°å½•è½¯ä»¶åŒ…çš„æ¥æºä»“åº“\footnote{It has to be this way, without major rearchitecture work, because the tlpdb does not record the repository from which packages come from.})

    å¦‚æžœç”¨æˆ·æƒ³åœ¨æœ€è¿‘çš„æ›´æ–°ä¸­å¿½ç•¥æŸäº›è½¯ä»¶åŒ…, å¯ä»¥ä½¿ç”¨ä¸‹é¢çš„ \hyperlink{op:exclude}{\op{-exclude}} é€‰é¡¹. 
    \item \op{-self}\par
    å¦‚æžœæœ‰æ›´æ–°çš„ \tlmgr ç‰ˆæœ¬å­˜åœ¨, é‚£ä¹ˆå‡çº§ \tlmgr{} æœ¬èº«, å³ \tlmgr çš„åŸºç¡€æž¶æž„. åœ¨ Windows è®¾å¤‡ä¸Šè¿™ä¸ªé€‰é¡¹ä¹Ÿä¼šå‡çº§ \tl è‡ªå¸¦çš„ Perl è§£é‡Šå™¨. 

    å¦‚æžœè¿™ä¸ªé€‰é¡¹ä¸Ž \op{-all} ä¸€èµ·è¢«æŒ‡å®š, é‚£ä¹ˆ \tlmgr å°†ä¼šå…ˆå‡çº§è‡ªèº«, å¦‚æžœæˆåŠŸäº†, \tlmgr å°†ä¼šè‡ªåŠ¨é‡å¯å¹¶æ‰§è¡ŒæŽ¥ä¸‹æ¥çš„å‡çº§. 

    è¡¨ \ref{tab:update} å±•ç¤ºäº† \ac{update} ä¸­ \op{-self} ä¸Ž \op{-all} çš„å…³ç³». 
    \begin{table}
        \caption{\ac{update}çš„å‡&nbsp;ç§å…³ç³»}\label{tab:update}
        \begin{center}
            \begin{tabularx}{35em}{&gt;{\raggedright}p{14em}@{\texttt{\#}\ }&gt;{\raggedright\arraybackslash\ttfamily}X}\toprule
                \tlmgr{} \ac{update} \op{-self} &amp; ä»…å‡çº§ \tlmgr æœ¬èº«\\
                \tlmgr{} \ac{update} \op{-self} \op{-all} &amp; å‡çº§ \tlmgr æœ¬èº«å’Œå…¨éƒ¨å¯å‡çº§è½¯ä»¶åŒ…\\
                \tlmgr{} \ac{upadte} \op{-force} \op{-all} &amp; å‡çº§å…¨éƒ¨è½¯ä»¶åŒ…ä½†æ˜¯\textbf{ä¸}å‡çº§ \tlmgr\\
                &amp; æœ€åŽä¸€ä¸ªæœ‰é£Žé™©, ä¸å»ºè®®ä½¿ç”¨!\\\bottomrule
            \end{tabularx}
        \end{center}
    \end{table}
    \item \op{-dry-run}\par
    åœ¨ç»ˆç«¯æ˜¾ç¤ºå°†è¦æ‰§è¡Œçš„æ“ä½œ, è€Œä¸è¿›è¡Œå®‰è£…. è¿™ä¸ªé€‰é¡¹æœ‰æ¯” \op{-list} æ›´è¯¦ç»†çš„æ˜¾ç¤ºå†…å®¹. 
    \item \op{-list} \oarg{pkgs}\par
    ç®€ç•¥åœ°åˆ—å‡ºå³å°†è¢«æ›´æ–°, æ–°å¢žæˆ–ç§»é™¤çš„è½¯ä»¶åŒ…, ä½†ä¸åšå®žè´¨çš„æ›´æ”¹. å¦‚æžœåŒæ—¶æŒ‡å®šäº† \op{-all}, é‚£ä¹ˆå°†åˆ—å‡ºæ‰€æœ‰å¯ç”¨çš„æ›´æ–°. å¦‚æžœåŒæ—¶æŒ‡å®šäº† \op{-self} ä½†æ˜¯ä¸æŒ‡å®š \op{-all}, é‚£ä¹ˆåªä¼šåˆ—å‡ºå¯æ›´æ–°çš„æ&nbsp;¸å¿ƒè½¯ä»¶åŒ… (\tlmgr, \tl çš„æ&nbsp;¸å¿ƒæž¶æž„, Windows ä¸Šçš„ Perl ç­‰ç­‰). 

    å¦‚æžœä¸æŒ‡å®š \op{-all} æˆ– \op{-self}, ä½†æ˜¯ç»™å‡ºäº†å…·ä½“çš„è½¯ä»¶åŒ… \oarg{pkgs}, é‚£ä¹ˆå°†æ£€æŸ¥ \oarg{pkgs} ä¸­çš„å¯æ›´æ–°è½¯ä»¶åŒ…å¹¶åˆ—å‡º. 

    å¦‚æžœä¸æŒ‡å®š \op{-all} æˆ– \op{-self}, åŒæ—¶ä¹Ÿæ²¡æœ‰ç»™å‡º \oarg{pkg}, é‚£ä¹ˆ \tlmgr å°±ä¼šå‡å®šä½¿ç”¨äº† \op{-all}, ä¹Ÿå°±æ˜¯è¯´ \tlmgr{} \ac{update} \op{-\op{list}} ä¸Ž \tlmgr{} \ac{update} \op{-list} \op{-all} æ˜¯ä¸€æ&nbsp;·çš„. 
    \item \hypertarget{op:exclude}{\op{-exclude} \marg{pkg}} \par
    åœ¨æ›´æ–°ç¨‹åºä¸­æŽ’é™¤è½¯ä»¶åŒ… \marg{pkg} æœ¬èº«ä»¥åŠæ‰€æœ‰å¹³å°ç‰¹å®šçš„è½¯ä»¶åŒ…, æ¯”å¦‚
    \begin{quote}
        \tlmgr{} \ac{update} \op{-all} \op{-exclude} \texttt{a2ping} 
    \end{quote}
    å°†ä¸ä¼šå‡çº§ \texttt{a2ping}, \texttt{a2ping.i386-linux}, ä»¥åŠä»»ä½•å…¶å®ƒçš„ \texttt{a2ping.xxx} è½¯ä»¶åŒ…. 

    å¦‚æžœè¿™ä¸ªé€‰é¡¹æŒ‡å®šäº†ä¸€ä¸ªå®åŒ…, ç¨‹åºå°†ä¼šåœ¨ä»¥ä¸‹æƒ…å†µæŠ¥é”™å¹¶é€€å‡º: \marg{pkg} å°†è¢«è‡ªåŠ¨å®‰è£…, \marg{pkg} å°†è¢«è‡ªåŠ¨ç§»é™¤, æˆ–è€… \marg{pkg} æ˜¯è¢«æ‰‹åŠ¨åˆ&nbsp;é™¤å¹¶éœ€è¦è¢«é‡æ–°å®‰è£…\footnote{reinstallation of a forcibly removed package.}çš„æ—¶å€™. \op{-exclude} é€‰é¡¹ä¸æ”¯æŒè¿™äº›æƒ…å†µ. 
    \item \op{-no-dependent}\par
    å¦‚æžœç”¨æˆ·å‡çº§ä¸€ä¸ªè½¯ä»¶åŒ…, æ­£å¸¸æƒ…å†µä¸‹æ‰€æœ‰ä¾èµ–çš„è½¯ä»¶åŒ…åœ¨å¿…è¦çš„æƒ…å†µä¸‹éƒ½ä¼šè¢«å‡çº§. è¿™ä¸ªé€‰é¡¹ä¼šæŠ‘è‡´è¿™ä¸ªè¡Œä¸º. 
    \item \hypertarget{op:-reinstall-forcibly-removed}{\op{-reinstall-forcibly-removed}}\par
    åœ¨é€šå¸¸æƒ…å†µä¸‹ \tlmgr ä¸ä¼šè‡ªåŠ¨å®‰è£…é‚£äº›è¢«ç”¨æˆ·å¼ºåˆ¶åˆ&nbsp;é™¤çš„è½¯ä»¶åŒ…, æ¯”å¦‚è¢« \ac{remove} \op{-force} åˆ&nbsp;é™¤, åœ¨ä¹‹å‰çš„å‡çº§ä¸­è¢«é€‰é¡¹ \op{-no-auto-install} ç¦æ­¢å®‰è£…, æˆ–è€…åœ¨å‡çº§æ“ä½œä¸­æ„å¤–ç»ˆæ­¢æ—¶æ­£åœ¨å‡çº§çš„è½¯ä»¶åŒ…. 
    \item \op{-no-auto-remove} \oarg{pkgs}\par
    é»˜è®¤çŠ¶æ€ä¸‹, \tlmgr å°†ä¼šå°è¯•åˆ&nbsp;é™¤å­˜åœ¨äºŽé›†åˆä¸­ä½†æ˜¯åœ¨æœåŠ¡å™¨ä¸­å·²ç»è¢«åˆ&nbsp;é™¤çš„è½¯ä»¶åŒ…. è¿™ä¸ªé€‰é¡¹ä¼šé˜»æ­¢è¿™äº›åˆ&nbsp;é™¤æ“ä½œ, å¦‚æžœåŒæ—¶æŒ‡å®š \op{-all} åˆ™èŒƒå›´ä¸ºå…¨éƒ¨è½¯ä»¶åŒ…, å¦‚æžœæŒ‡å®š \oarg{pkgs}, åˆ™èŒƒå›´ä¸ºç»™å®šçš„è½¯ä»¶åŒ…. è¿™å¯èƒ½å¯¼è‡´ \TeX å®‰è£…çš„ä¸ä¸€è‡´, å›&nbsp;ä¸ºè½¯ä»¶åŒ…çš„ä½œè€…å¯èƒ½é‡å‘½åè½¯ä»¶åŒ…æˆ–è€…æ”¹å˜è½¯ä»¶åŒ…çš„ä½ç½®, æ‰€ä»¥è¿™ä¸ªé€‰é¡¹ä¸æŽ¨èä½¿ç”¨\footnote{This can lead to an inconsistent TeX installation, since packages are not infrequently renamed or replaced by their authors. Therefore this is not recommended.}.
    \item \op{-no-auto-install} \oarg{pkgs}\par
    é»˜è®¤çŠ¶æ€ä¸‹, \tlmgr ä¼šè‡ªåŠ¨å®‰è£…æœåŠ¡å™¨ä¸Šçš„æ–°è½¯ä»¶åŒ…, ä¸ŽæŒ‡å®šé€‰é¡¹ \op{-all} çš„æ•ˆæžœç›¸åŒ. è¿™ä¸ªé€‰é¡¹é˜»æ­¢äº†æ‰€æœ‰çš„è‡ªåŠ¨å®‰è£…, å¦‚æžœåŒæ—¶æŒ‡å®š \op{-all} åˆ™èŒƒå›´ä¸ºå…¨éƒ¨è½¯ä»¶åŒ…, å¦‚æžœæŒ‡å®š \oarg{pkgs}, åˆ™èŒƒå›´ä¸ºç»™å®šçš„è½¯ä»¶åŒ….

    æ­¤å¤–, åœ¨ \op{-no-auto-install} é€‰é¡¹ä¸‹å®Œæˆå‡çº§ä¹‹åŽ, é‚£äº›åº”è¯¥è¢«è‡ªåŠ¨å®‰è£…çš„è½¯ä»¶åŒ…ä¼šè¢«è®¤ä¸ºæˆ\textbf{è¢«ç”¨æˆ·å¼ºåˆ¶åˆ&nbsp;é™¤çš„}. æ‰€ä»¥, å¦‚æžœ \texttt{foobar} æ˜¯å”¯ä¸€ä¸€ä¸ªæœåŠ¡å™¨ä¸Šæ–°å¢žçš„è½¯ä»¶åŒ…, é‚£ä¹ˆ
    \begin{quote}
        \tlmgr{} \ac{update} \op{-all} \op{-no-auto-install}
    \end{quote}
    ç­‰ä»·äºŽ
    \begin{quote}
        \tlmgr{} \ac{upadte} \op{-all}\\
        \tlmgr{} \ac{remove} \op{-force} \texttt{foobar}
    \end{quote}
    åŒæ&nbsp;·åœ°, å›&nbsp;ä¸ºè½¯ä»¶åŒ…çš„ä½œè€…å¯èƒ½é‡å‘½åè½¯ä»¶åŒ…æˆ–è€…æ”¹å˜è½¯ä»¶åŒ…çš„ä½ç½®, æ‰€ä»¥è¿™ä¸ªé€‰é¡¹ä¸æŽ¨èä½¿ç”¨. 
    \item \hypertarget{op:backup}{\op{-backup}, \op{-backupdir} \marg{dir}}\par
    è¿™ä¸¤ä¸ªé€‰é¡¹ä¼šåœ¨\textbf{å‡çº§ä¹‹å‰}åˆ›å»ºè½¯ä»¶åŒ…çš„å¤‡ä»½, ä¹Ÿå°±æ˜¯è¯´ä¼šå¤‡ä»½å‡çº§ä¹‹å‰æœ€æ–°çš„è½¯ä»¶åŒ…, å¦‚æžœä¸æŒ‡å®šè¿™ä¸¤ä¸ªé€‰é¡¹, é‚£ä¹ˆå°†ä¸ä¼šåˆ›å»ºå¤‡ä»½. å¦‚æžœæŒ‡å®šäº† \op{-backupdir} åŒæ—¶ \marg{dir} æ˜¯ä¸€ä¸ªå¯å†™ä¸”æœ‰è¶³å¤Ÿç©ºé—´çš„è·¯å¾„, é‚£ä¹ˆ \tlmgr å°†ä¼šåœ¨è¿™ä¸ªè·¯å¾„ä¸‹åˆ›å»ºå¤‡ä»½æ–‡ä»¶. å¦‚æžœä»…æŒ‡å®šäº† \op{-backup}, é‚£ä¹ˆå¤‡ä»½å°†ä¼šè¢«åˆ›å»ºåœ¨ \nameref{subsec:option} å°èŠ‚ä¸­è®¾ç½®çš„ä½ç½®, é»˜è®¤åœ¨ \tl æ&nbsp;¹ç›®å½•ä¸‹çš„ \texttt{texlive/&lt;year&gt;/tlpkg/backups} ä¸­.  

    \textbf{æ³¨}: \href{https://www.tug.org/texlive/doc/tlmgr.html#update-option...-pkg}{tlmgr æ–‡æ¡£} åŽŸæ–‡ä¸º: If neither option is given, no backup will made. ä½†æ˜¯ \tlmgr åœ¨ \tl{}2010 ä»¥åŽå°†è‡ªåŠ¨å¤‡ä»½å…³é”®è¯ \key{autobackup} é»˜è®¤è®¾ç½®ä¸º 1, ä¹Ÿå°±æ˜¯è¯´, å³ä½¿ä¸ä½¿ç”¨ \op{-backup} é€‰é¡¹, ä¹Ÿä¼šè‡ªåŠ¨å°†è½¯ä»¶åŒ…å¤‡ä»½åœ¨é»˜è®¤ä½ç½®, æ–¹ä¾¿ç”¨æˆ·ä½¿ç”¨ \nameref{subsec:restore} æ“ä½œå›žæ»š. æ›´æ–°æ—¥å¿—è§ \href{https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-780009.1.7}{texlive-en}

    \item \op{-force}\par
    å¼ºåˆ¶å‡çº§æ‰€æœ‰è½¯ä»¶åŒ…, ä¸åŒ…æ‹¬ \tlmgr æœ¬èº«, é™¤éžåŒæ—¶æŒ‡å®šäº† \op{-self} é€‰é¡¹. ä¸æŽ¨è. 

    åŒæ&nbsp;·åœ°, \ac{update} \op{-list} å°†ä¼šæ—&nbsp;è§†è¿™ä¸ªé€‰é¡¹æŒ‰å®ƒæœ¬èº«è¯¥æœ‰çš„æ&nbsp;·å­æ˜¾ç¤º. 
\end{description}

\textbf{æ³¨æ„}: å¦‚æžœæœ¬åœ°å®‰è£…çš„è½¯ä»¶åŒ…çš„ç‰ˆæœ¬é«˜äºŽæœåŠ¡å™¨ç«¯çš„æ—¶å€™ (æ¯”å¦‚è®¾ç½®çš„é•œåƒç«™è¿‡æ—¶äº†), \tlmgr ä¼šå¿½ç•¥è¿™ä¸ªè½¯ä»¶åŒ…è€Œä¸è¿›è¡Œé™çº§. 

\clearpage

\subsection{\mdseries{\ac{restore}}}\label{subsec:restore}

\paragraph{ä½¿ç”¨æ–¹æ³•:}

\begin{quote}
    \ac{restore} \oarg{pkg} \oarg{revision} \\
    \ac{restore} \marg{\upshape -all}
\end{quote}

è¿™ä¸ªæ“ä½œå°†ä»Žä¹‹å‰çš„å¤‡ä»½ä¸­å›žæ»šè½¯ä»¶åŒ…ç‰ˆæœ¬. 

å¦‚æžœæŒ‡å®šäº† \marg{\upshape -all}, é‚£ä¹ˆå°†ä¼šä»Žå¯æ‰¾åˆ°çš„å¤‡ä»½ä¸­å›žæ»šæ‰€æœ‰çš„è½¯ä»¶åŒ…ç‰ˆæœ¬. 

å¦‚æžœä¸æŒ‡å®š \oarg{pkg} ä¸Ž \oarg{revision}, é‚£ä¹ˆå°†åˆ—å‡ºæ‰€æœ‰è½¯ä»¶åŒ…çš„å¯ç”¨å¤‡ä»½çš„ç‰ˆæœ¬. 

å¦‚æžœæŒ‡å®šäº† \oarg{pkg} ä½†æ˜¯æ²¡æœ‰æŒ‡å®š \oarg{revision}, é‚£ä¹ˆå°±åˆ—å‡ºè½¯ä»¶åŒ… \oarg{pkg} çš„æ‰€æœ‰å¯ç”¨çš„å¤‡ä»½ç‰ˆæœ¬, æ¯”å¦‚ä½¿ç”¨ \tlmgr{} \ac{restore} \texttt{fancyhdr}, é‚£ä¹ˆå°†ä¼šå¾—åˆ°å¦‚ä¸‹å½¢å¼çš„è¾“å‡º
\begin{verbatim}
    Available backups for fancyhdr: xxxxx (yyyy-MM-dd HH:mm)
\end{verbatim}
å…¶ä¸­ \texttt{xxxxx} ä¸º \texttt{fancyhdr} å¯ç”¨å¤‡ä»½çš„ç‰ˆæœ¬å·.

å½“ä¸”ä»…å½“åŒæ—¶æŒ‡å®š \oarg{pkg} ä¸Žä¸€ä¸ªå¯ç”¨çš„ç‰ˆæœ¬å· \oarg{revision} æ—¶, \tlmgr ä¼šä»Žå¤‡ä»½ä¸­å°† \oarg{pkg} å›žæ»šåˆ°ç‰ˆæœ¬ \oarg{revision}.

\paragraph{\textmd{\ac{restore}}çš„ç‰¹æœ‰é€‰é¡¹:}
\begin{description}
    \item \op{-all}\par
    å°è¯•ä»Žä»Žå¯æ‰¾åˆ°çš„å¤‡ä»½ä¸­å›žæ»šæ‰€æœ‰çš„è½¯ä»¶åŒ…ç‰ˆæœ¬. å…¶ä»–çš„éžé€‰é¡¹ (non-option) çš„å‚æ•°, å¦‚ \oarg{pkg} å°†ä¸å¯ç”¨.
    \item \op{-backupdir} \marg{dir}\par
    æŒ‡å®šä¸€ä¸ªä¾› \tlmgr èŽ·å–å¤‡ä»½çš„è·¯å¾„, å¦‚æžœä¸ä½¿ç”¨è¿™ä¸ªé€‰é¡¹, é‚£ä¹ˆ \tlmgr å°±ä¼šä½¿ç”¨ä»Ž TLPDB çš„é…ç½®æ–‡ä»¶. 
    \item \op{-dry-run}\par
    åœ¨ç»ˆç«¯æ˜¾ç¤ºå°†è¦æ‰§è¡Œçš„æ“ä½œ, è€Œä¸è¿›è¡Œå›žæ»š.
    \item \op{-force}\par
    å¼ºåˆ¶è¿›è¡Œå›žæ»š\footnote{åŽŸæ–‡ä¸º: Don't ask questions.}.
    \item \op{-json}\par
    å°†è¾“å‡ºæ‰“å°ä¸º JSON æ&nbsp;·å¼. 
\end{description}

\clearpage

\subsection{\mdseries{\ac{remove}}}\label{subsec:remove}

\paragraph{ä½¿ç”¨æ–¹æ³•:}

\begin{quote}
    \tlmgr{} \ac{remove} \marg{pkgs}
\end{quote}

ç§»é™¤ \marg{pkgs} ä¸­ç»™å‡ºçš„è½¯ä»¶åŒ…. å¦‚æžœè¦ç§»é™¤ä¸€ä¸ªé›†åˆ, é‚£ä¹ˆå°†ç§»é™¤è¿™ä¸ªé›†åˆä¸‹çš„æ‰€æœ‰è½¯ä»¶åŒ…. é™¤éžæŒ‡å®šäº† \op{-no-depends}, å…¥å¸‚ä¸ç§»é™¤è¿™ä¸ªé›†åˆä¸‹çš„ä»»ä½•é›†åˆ. ç„¶è€Œ, å½“ç§»é™¤ä¸€ä¸ªè½¯ä»¶åŒ…çš„æ—¶å€™, å®ƒçš„ä»Žå±žæ°¸è¿œä¸ä¼šè¢«ç§»é™¤. 

\paragraph{\textmd{\ac{remove}}çš„ç‰¹æœ‰é€‰é¡¹:}
\begin{description}
    \item \op{-dry-run}\par
    åœ¨ç»ˆç«¯æ˜¾ç¤ºå°†è¦æ‰§è¡Œçš„æ“ä½œ, è€Œä¸è¿›è¡Œå®žè´¨çš„åˆ&nbsp;é™¤.
    \item \op{-no-depends}\par
    ä¸ç§»é™¤ä»Žå±žè½¯ä»¶åŒ….
    \item \op{-all}\par
    å¸è½½æ•´ä¸ª \tl, ä¼šè¯¢é—®ç”¨æˆ·æ˜¯å¦åˆ&nbsp;é™¤, é™¤éžæŒ‡å®šäº† \op{-force} é€‰é¡¹. è¯¥å‘½ä»¤å¯ä»¥åœ¨ Linux ä¸‹æ­£å¸¸å·¥ä½œ. åœ¨ Windows ä¸‹, \tlmgr{} \ac{remove} \op{-all} ä¼šè¿”å›ž
    \begin{quote}
        \ttfamily Please use "Add/Remove Programs" from the Control Panel to removing TeX Live!
    \end{quote}
    å¦‚æžœåœ¨ Windows ä¸‹å¸è½½ \tl. å¯ä»¥åœ¨å‘½ä»¤è¡Œä¸­è¿è¡Œ
    \begin{quote}
        \texttt kpsewhich -var-value TEXMFROOT
    \end{quote}
    æŸ¥çœ‹ \verb|$TEXMFROOT| çš„è·¯å¾„, ç„¶åŽè¿è¡Œ \verb|$TEXMFROOT\tlpkg\installer\uninst.bat| æ¥è¿›è¡Œå¸è½½. 
    \item \op{-force}\par
    é»˜è®¤çŠ¶æ€ä¸‹, ç§»é™¤ä¸€ä¸ªè½¯ä»¶åŒ…æˆ–è€…ä¸€ä¸ªé›†åˆçš„ä»Žå±žé›†åˆæ˜¯ä¸å…è®¸çš„. ä½¿ç”¨è¿™ä¸ªé€‰é¡¹å¯ä»¥æ—&nbsp;æ¡ä»¶åœ°è½¶è½¯ä»¶åŒ…, è¦è°¨æ…Žä½¿ç”¨. 

    å¦‚æžœä½¿ç”¨ \tlmgr{} \ac{remove} \op{-force} ç§»é™¤äº†ä¸€ä¸ªè½¯ä»¶åŒ…, é‚£å®ƒåœ¨ \tlmgr{} \ac{update} \op{-list} ä¸­è¢«è®¤ä¸ºæ˜¯ \texttt{forcibly removed}. 
\end{description}

\clearpage

\subsection{\mdseries{\ac{option}}}\label{subsec:option}
\paragraph{ä½¿ç”¨æ–¹æ³•:}

\begin{quote}
    \tlmgr{} \ac{option} \\
    \tlmgr{} \ac{option} \texttt{help} \\
    \tlmgr{} \ac{option} \marg{key} \\
    \tlmgr{} \ac{option} \marg{key} \oarg{value}
\end{quote}

\begin{enumerate}[(1)]
    \item ç¬¬ä¸€ç§å½¢å¼åˆ—å‡ºå½“å‰çš„å…¨å±€ \tl è®¾ç½®, å¸¦æœ‰ä¸€ä¸ªç®€çŸ­çš„ä»‹ç», æ¯ä¸€ç§è®¾ç½®é‡Œæ‹¬å·ä¸­çš„è¯å°±æ˜¯ä¿®æ”¹è¿™ä¸ªè®¾ç½®éœ€è¦çš„ \key{key}, æ¯”å¦‚è¦ä¿®æ”¹å¤‡ä»½æ–‡ä»¶çš„è·¯å¾„ å¯ä»¥ä½¿ç”¨ \tlmgr{} \ac{option} \key{backupdir} \oarg{dir}. 
    \begin{quote}
        \ttfamily Directory for backups (\textbf{backupdir}): tlpkg/backups
    \end{quote}
    \item ç¬¬äºŒç§å½¢å¼ä¸Žç¬¬ä¸€ç§å¾ˆåƒ, å®ƒä¼šåœ¨ \tlmgr{} \ac{option} çš„åŸºç¡€ä¸Šåˆ—å‡ºå¯ä»¥è¢«è®¾ç½®ä½†æ˜¯å½“å‰æ²¡æœ‰å€¼çš„é€‰é¡¹,
    \item ç¬¬ä¸‰ç§å½¢å¼æ˜¯åˆ—å‡º \marg{key} å¯¹åº”çš„å€¼,
    \item ç¬¬å››ç§å½¢å¼å°† \marg{key} çš„å€¼è®¾ç½®ä¸º \oarg{value}
\end{enumerate}

è¡¨ \ref{tab:option} ä¸­æ˜¯ä¸€äº›å¯ç”¨çš„ \marg{key} å€¼. ä½¿ç”¨ \tlmgr{} \ac{option} \key{help} æ¥èŽ·å¾—æ›´è¯¦ç»†çš„åˆ—è¡¨ 

\begin{table}[!hpb]
    \caption{\tlmgr{} \ac{option} çš„éƒ¨åˆ†å¯ç”¨é€‰é¡¹}\label{tab:option}
    \begin{center}
        \begin{small}
        \begin{tabular}{&gt;{\ttfamily}ll}
            autobackup &amp; å‡çº§æ“ä½œæ˜¯å¦å¤‡ä»½,\\
            backupdir &amp; å¤‡ä»½æ–‡ä»¶çš„ä½ç½®,\\
            repository &amp; é»˜è®¤çš„è½¯ä»¶åŒ…ä»“åº“,\\
            docfiles &amp; å®‰è£…æ–‡æ¡£æ–‡ä»¶,\\
            srcfiles &amp; å®‰è£…æºæ–‡ä»¶,\\
            sys\_bin &amp;  é€šè¿‡ \texttt{path} æ“ä½œé“¾æŽ¥åˆ°çš„å¯æ‰§è¡Œæ–‡ä»¶çš„ç›®å½•\\
            sys\_man &amp;  é€šè¿‡ \texttt{path} æ“ä½œé“¾æŽ¥åˆ°çš„æ‰‹å†Œæ–‡ä»¶çš„ç›®å½•\\
            sys\_info&amp;  é€šè¿‡ \texttt{path} åŠ¨ä½œé“¾æŽ¥åˆ°çš„ä¿¡æ¯æ–‡ä»¶çš„ç›®å½•\\
            desktop\_integration &amp; ä»… Windows: åˆ›å»ºå¼€å§‹èœå•çš„å¿«æ·æ–¹å¼\\
            fileassocs&amp;  ä»… Windows: æ”¹å˜æ–‡ä»¶å…³è”\\
            multiuser &amp; ä»… Windows: ä¸ºæ‰€æœ‰ç”¨æˆ·å®‰è£…\\
        \end{tabular}
        \end{small}
    \end{center}
\end{table}


ä¸€ä¸ªå¸¸è§ \ac{option} çš„ç”¨æ³•æ˜¯å®ƒå¯ä»¥åœ¨ä»Ž DVD å®‰è£…ä»¥åŽ, æ°¸ä¹…åœ°æ”¹å˜å®‰è£…çš„è®¾ç½®æ¥é€šè¿‡äº’è”ç½‘èŽ·å¾—æ›´æ–°. æ¯”å¦‚, ç”¨æˆ·å¯ä»¥ä½¿ç”¨
\begin{quote}
    \tlmgr{} \ac{option} \key{repository} \val{ctan}
\end{quote}
æ¥ä»Žä¸€ä¸ªé™„è¿‘çš„ CTAN é•œåƒæ¥èŽ·å¾—æ›´æ–°. 

ä½†æ˜¯ä¸­å›½å¤§é™†ç”¨æˆ·å¯èƒ½æ—&nbsp;æ³•èŽ·å–åˆ°å®žé™…``é™„è¿‘''çš„é•œåƒç«™, å¾ˆå¤šæ—¶å€™éœ€è¦ç”¨æˆ·æ‰‹åŠ¨æŒ‡å®šå¤§é™†åœ°åŒºçš„æº. è¯¦ç»†ä¿¡æ¯è§ \nameref{app:mirror} ä¸€èŠ‚. 

\key{docfiles} ä¸Ž \key{srcfiles} åˆ†åˆ«æŽ§åˆ¶ç€æ¯ä¸ªè½¯ä»¶åŒ…çš„æ–‡ä»¶ç»„ (æ–‡æ¡£, æºæ–‡ä»¶)\footnote{The \texttt{\scriptsize docfiles} and \texttt{\scriptsize srcfiles} keys control the installation of their respective file groups documentation, sources; grouping is approximate) per package.} è¿™ä¸¤ä¸ª \marg{key} çš„é»˜è®¤å€¼éƒ½æ˜¯ \texttt{1}, å¦‚æžœç”¨æˆ·çš„ç¡¬ç›˜ç©ºé—´ä¸è¶³, æˆ–è€…åªæ˜¯æƒ³åšä¸€ä¸ªæœ€å°çš„å®‰è£…æµ‹è¯•, é‚£ä¹ˆæ¯ä¸€ä¸ªéƒ½å¯ä»¥è¢«ä¿®æ”¹æˆ \texttt{0}, è¿™æ&nbsp;·å°±ä¸ä¼šå†ä¸‹è½½è¿™äº›ç›¸å…³çš„æ–‡ä»¶äº†. 

\key{sys\_bin}, \key{sys\_man}, \key{sys\_info} é€‰é¡¹æ˜¯åœ¨ Unix ç³»ç»Ÿä¸Šä½¿ç”¨çš„, æŽ§åˆ¶ç€å¯¹äºŽå¯æ‰§è¡Œæ–‡ä»¶, ä¿¡æ¯æ–‡ä»¶, æ‰‹å†Œé¡µé¢é“¾æŽ¥çš„ç”Ÿæˆ. è¯¦ç»†ä¿¡æ¯è§ \href{https://www.tug.org/texlive/doc/tlmgr.html#path}{path} æ“ä½œ

å…¶ä½™çš„é€‰é¡¹æŽ§åˆ¶ç€ Windows å®‰è£…çš„è¡¨çŽ°. 
\begin{itemize}
    \item å¦‚æžœè®¾ç½®äº† \key{desktop\_integration}, é‚£ä¹ˆä¸€äº›è½¯ä»¶åŒ…å°†ä¼šæŠŠæ–‡ä»¶å®‰è£…åœ¨å¼€å§‹èœå•çš„ \tlmgr{} \ac{gui} ä¸­, æ¯”å¦‚æ–‡æ¡£ç­‰ç­‰. 
    \item å¦‚æžœè®¾ç½®äº† \key{fileassocs}, å°†ä¼šå»ºç«‹ Windows ä¸‹çš„æ–‡ä»¶å…³è”. è§ \href{https://www.tug.org/texlive/doc/tlmgr.html#postaction}{\ac{postaction}} æ“ä½œ. 
    \item å¦‚æžœè®¾ç½®äº† \key{multiuser}, é‚£ä¹ˆå¯¹æ³¨å†Œè¡¨å’Œèœå•çš„è°ƒæ•´å°†é’ˆå¯¹ç³»ç»Ÿä¸Šçš„æ‰€æœ‰ç”¨æˆ·, è€Œä¸ä»…ä»…æ˜¯å½“å‰ç”¨æˆ·. 
\end{itemize}
è¿™ä¸‰ä¸ªé€‰é¡¹é»˜è®¤éƒ½æ˜¯å¼€å¯çš„. 

\clearpage

\subsection{\mdseries{\ac{backup}}}\label{subsec:backup}
\paragraph{ä½¿ç”¨æ–¹æ³•:}

\begin{quote}
    \tlmgr{} \ac{backup} \marg{pkgs\textup{|-all}}
\end{quote}

å¦‚æžœæ²¡æœ‰æŒ‡å®š \op{-clean} é€‰é¡¹, é‚£ä¹ˆè¿™ä¸ªæ“ä½œä¼šåœ¨é»˜è®¤ä½ç½®, ä¸º \marg{pkgs} ä¸­çš„æ¯ä¸€ä¸ªè½¯ä»¶åŒ…åˆ›å»ºä¸€ä¸ªå¤‡ä»½æ–‡ä»¶, å¦‚æžœä½¿ç”¨äº† \texttt{-all} é€‰é¡¹, é‚£ä¹ˆå°†åˆ›å»ºå…¨éƒ¨è½¯ä»¶åŒ…çš„å¤‡ä»½. 

å¤‡ä»½æ–‡ä»¶çš„ä½ç½®ç”± \op{-backupdir} \marg{dir} æŒ‡å®š, å‰ææ˜¯ \marg{dir} å­˜åœ¨ä¸”å¯å†™. å¦‚æžœæ²¡æœ‰æŒ‡å®š \op{-backupdir}, é‚£ä¹ˆå°±ä¼šä½¿ç”¨ TLPDB è®¾ç½®ä¸­çš„ \key{backupdir} è·¯å¾„. å¦‚æžœäºŒè€…çš†ç©º, é‚£ä¹ˆå°±ä¸ä¼šåˆ›å»ºå¤‡ä»½. å…³äºŽ \op{backupdir} çš„ä¿¡æ¯å¯ä»¥å‚è€ƒ \ac{update} æ“ä½œçš„ \hyperlink{op:backup}{\op{-backupdir}} é€‰é¡¹. 

å¦‚æžœæŒ‡å®šäº† \op{-clean} é€‰é¡¹, é‚£ä¹ˆå°†ä¼šåˆ&nbsp;é™¤å¤‡ä»½æ–‡ä»¶, è€Œä¸æ˜¯åˆ›å»ºå¤‡ä»½. è¿™ä¸ªé€‰é¡¹æœ‰ä¸€ä¸ªå¯é€‰çš„æ•´æ•°å€¼ \texttt{N} æ¥æŒ‡å®šæ¸…ç†æ—¶ä¿ç•™çš„å¤‡ä»½æ•°é‡. å¦‚æžœæ²¡æœ‰æŒ‡å®š \texttt{N}, é‚£ä¹ˆå°†ä¼šä½¿ç”¨ \key{autobackup} çš„å€¼, å®ƒåœ¨ TLPDB ä¸­çš„é»˜è®¤å€¼ä¸º \texttt{1}, å¦‚æžœäºŒè€…çš†ç©º, é‚£ä¹ˆå°†ä¼šæŠ¥é”™. 

\paragraph{\textmd{\ac{backup}}çš„ç‰¹æœ‰é€‰é¡¹:}
\begin{description}
    \item \op{-backupdir} \marg{dir}\par
    ä¸´æ—¶ç›– TLPDB ä¸­ \key{backupdir} çš„å€¼, å‚æ•° \marg{dir} å¿…é¡»æŒ‡å®š, è¿™æ˜¯å¤‡ä»½æ–‡ä»¶å­˜æ”¾çš„è·¯å¾„, å®ƒå¿…é¡»è¦å­˜åœ¨ä¸”å¯å†™. 
    \item \op{-all}\par
    å¦‚æžœæ²¡æœ‰æŒ‡å®š \op{-clean} é€‰é¡¹, é‚£ä¹ˆåˆ›å»ºä¸€ä¸ª \tl å®‰è£…è¿‡çš„æ‰€æœ‰è½¯ä»¶åŒ…çš„å¤‡ä»½, è¿™ä¼šæ¶ˆè€—å¤§é‡çš„å­˜å‚¨ç©ºé—´ä¸Žæ—¶é—´, å¦‚æžœæŒ‡å®šäº† \op{-clean} é€‰é¡¹, æ‰€æœ‰çš„å¤‡ä»½å°†è¢«åˆ&nbsp;é™¤. 
    \item \op{-clean[=N]}\par
    åˆ&nbsp;é™¤å¤‡ä»½ç›®å½• \key{backupdir} ä¸­çš„æ—§å¤‡ä»½, è€Œä¸åˆ›å»ºå¤‡ä»½. å¯é€‰æ•´æ•°å‚æ•° \texttt{N} ä¼šä¸´æ—¶è¦†ç›– TLPDB ä¸­çš„ \key{autobackup} çš„å€¼, å¦‚æžœä½¿ç”¨è¿™ä¸ªé€‰é¡¹, é‚£ä¹ˆå¿…é¡»è¦æŒ‡å®š \op{-all} æˆ–è€…ä¸€åˆ—è½¯ä»¶åŒ…. 
    \item \op{-dry-run}\par
    åœ¨ç»ˆç«¯æ˜¾ç¤ºå°†è¦æ‰§è¡Œçš„æ“ä½œ, è€Œä¸è¿›è¡Œå¤‡ä»½. 
\end{description} 

</pre></body></html>