Linux command
tlmgr 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Update TeX Live
tlmgr update --all
Install package
tlmgr install [package-name]
Remove package
tlmgr remove [package-name]
Search packages
tlmgr search [pattern]
List installed packages
tlmgr list --only-installed
Show package info
tlmgr info [package-name]
Update tlmgr itself
tlmgr update --self
Backup package
tlmgr backup [package-name]
说明
tlmgr (TeX Live Manager) is the package manager for the TeX Live distribution, handling installation, updates, and removal of LaTeX packages and fonts. It automatically resolves dependencies when installing new packages and can update the entire distribution with update --all. The tool provides search and information commands to explore the thousands of available packages by name or description. Packages can be backed up before changes and restored if an update causes problems. The --self flag updates tlmgr itself separately from other packages. Running tlmgr requires a native TeX Live installation rather than a distribution-packaged version, as Linux distribution packages typically manage TeX packages through their own package manager instead.
参数
- install _PKGS_
- Install packages.
- remove _PKGS_
- Remove packages.
- update
- Update packages.
- search _PATTERN_
- Search packages.
- list
- List packages.
- info _PKG_
- Package info.
- --all
- All packages.
- --self
- Update tlmgr.
- --only-installed
- Installed only.
FAQ
What is the tlmgr command used for?
tlmgr (TeX Live Manager) is the package manager for the TeX Live distribution, handling installation, updates, and removal of LaTeX packages and fonts. It automatically resolves dependencies when installing new packages and can update the entire distribution with update --all. The tool provides search and information commands to explore the thousands of available packages by name or description. Packages can be backed up before changes and restored if an update causes problems. The --self flag updates tlmgr itself separately from other packages. Running tlmgr requires a native TeX Live installation rather than a distribution-packaged version, as Linux distribution packages typically manage TeX packages through their own package manager instead.
How do I run a basic tlmgr example?
Run `tlmgr update --all` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does install _PKGS_ do in tlmgr?
Install packages.