I installed MacTex 2021, and in /usr/local/texlive, there is only 2021 file. But when I tried to install a package in terminal, it still says " Local TeX Live (2020) is older than remote repository (2021). Cross release updates are only supported with update-tlmgr-latest(.sh/.exe) --update See https://tug.org/texlive/upgrade.html for details." I am wondering how I can fix this problem. Thank you!

  • maxtex? (did you mean mactex?) unless you explicitily removed texlive 2020 installing texlive 2021 will mean that you have both installed, and which is used will depend on yoru PATH. It appears that you are using a texllive 2020 tlmgr May 24 at 20:35
  • yes, that was a typo. I have un installed texlive 2020. but echo $PATH gives me "/Users/aw/opt/anaconda3/bin:/Users/aw/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin"
    – user836844
    May 24 at 20:38
  • I don't have a mac so probably a mactex user should answer but what does which -a tlmgr report and what does tlmgr --version report ? May 24 at 20:49
  • tlmgr --version reports "tlmgr revision 57705 (2021-02-10 23:57:28 +0100) tlmgr using installation: /Users/aw/Library/TinyTeX TeX Live (tug.org/texlive) version 2020"
    – user836844
    May 24 at 20:53
  • which -a tlmgr reports "/usr/local/bin/tlmgr /Library/TeX/texbin/tlmgr"
    – user836844
    May 24 at 20:54

It looks like you have TinyTeX installed.

So there are two options. Either you want to switch to MacTeX (which is a full TeXlive distribution) or you want to upgrade your TinyTeX. The latter is documented on the TinyTeX homepage:

If you see an error message “Remote repository newer than local”, it means it is time for you to upgrade (reinstall) TinyTeX manually:


If you did install a full MacTeX distribution, you should uninstall TinyTeX (which should be just rm -r ~/Library/TinyTeX although I don't see it in your path in your comment).

  • 1
    Thank you. I found uninstall button in R studio.
    – user836844
    Jun 3 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.