# How to update LaTeX using tlmgr?

I'm having a lot of trouble updating LaTeX on my Mac. I have never done this, but I do have the 2016 version of LaTeX, so I think I only need to update the packages. I read that the tlmgr package using "tlmgr update --all" would be the update I need. However, LaTeX keeps asking me for a file.

What I wrote is LaTeX is:

\documentclass{article}
\usepackage{tlmgr}

\begin{document}

tlmgr update --all

\end{document}


Thank you!

• tlmgr is a command not a latex package, you need to type the command on the commandline (terminal) not put it in a latex file. But I thought theat mactex had some kind of gui front end – David Carlisle May 3 '17 at 15:49
• If you have the application "TeX Live Utility.app", you can use this to update – user36296 May 3 '17 at 15:53
• the premise of this question is oddly amusing – thymaro Apr 23 '18 at 7:22

tlmgr is not a tex package — it’s a program, distributed with TeXLive. So to run it, you don’t load it in a TeX document. Instead, open the Terminal (on Mac OS, go to the Applications folder, and then inside that the Utilities folder, and the Terminal should be in there); and then in the Terminal’s window, type the tlmgr command you want, e.g.
tlmgr update --all
• On Mac you need to run tlmgr using sudo as latex is owned by root. It also a good idea to use the --self option, then tlmgr will also be updated if there are any updates for it. – daleif May 3 '17 at 15:56
You have the MacOS version: TeX Live Utility, a graphical interface which can be put in the dock.