Compilers & Engines
How to Update a Single LaTeX Package
Sometimes you need a newer version of a specific LaTeX package — maybe a bug was fixed, a new feature was added, or a journal template requires a minimum version. Updating your entire TeX distribution is overkill for this. Both TeX Live and MiKTeX let you update individual packages. Bibby AI always uses the latest package versions in its cloud compiler, so this is never an issue if you compile through Bibby AI.
Checking Your Current Package Version
Before updating, check which version you currently have installed:
% Method 1: Check in your LaTeX document
% Add this to your document temporarily:
\listfiles % Put this BEFORE \documentclass
\documentclass{article}
\usepackage{booktabs}
\begin{document}
Check the log file for version info.
\end{document}
% The .log file will show something like:
% *File List*
% article.cls 2023/05/17 v1.4n
% booktabs.sty 2020/01/12 v1.61803398
% ...
% Method 2: Check via tlmgr (TeX Live)
% Terminal:
% tlmgr info booktabs
% Shows: revision 61719, ..., installed: Yes
% Method 3: Check via kpsewhich
% Terminal:
% kpsewhich booktabs.sty
% Then read the version from the file headerUpdating a Single Package in TeX Live
Use tlmgr to update specific packages without touching the rest of your installation:
% Update the package manager itself first:
% sudo tlmgr update --self
% Update a single package:
% sudo tlmgr update booktabs
% Update multiple specific packages:
% sudo tlmgr update booktabs siunitx pgfplots
% Check what would be updated (dry run):
% tlmgr update --list
% Shows all packages with available updates
% If tlmgr is locked to last year's repository:
% Edit the repository URL:
% tlmgr option repository \
% https://mirror.ctan.org/systems/texlive/tlnet
% Verify the update worked:
% tlmgr info booktabs | grep revision
% Rollback if the update breaks something:
% (TeX Live doesn't support rollback natively)
% Reinstall the old version from a backup or
% specific repository snapshot.Updating Packages in MiKTeX
MiKTeX provides both GUI and command-line methods for updating individual packages:
% Method 1: MiKTeX Console (GUI)
% Open MiKTeX Console -> Updates tab
% Select specific packages -> Click Update
% Method 2: Command line
% Check for updates:
% miktex packages check-update
% Update a specific package:
% miktex packages update booktabs
% Update all packages (if desired):
% miktex packages update
% For admin-installed MiKTeX:
% miktex --admin packages update booktabs
% Method 3: Reinstall from CTAN manually
% If the package manager doesn't have the latest:
% 1. Download from https://ctan.org/pkg/booktabs
% 2. Extract to your local texmf directory:
% ~/texmf/tex/latex/booktabs/
% 3. Run: miktex fndb refresh
% (or for TeX Live: texhash ~/texmf)💡 Tips
- •Bibby AI always compiles with the latest CTAN package versions, so version management is automatic.
- •Before updating, check if the new version has breaking changes — read the package changelog on CTAN.
- •If a journal requires a specific (older) version, you can pin it by placing the .sty file directly in your project directory.
- •Run 'tlmgr update --self' before any package updates to ensure the package manager itself is current.
Try This in Bibby AI
Write LaTeX faster with AI auto-complete and instant compilation.
Start Writing Free