[Tex/LaTex] Multiple versions of latex installed on mac

installingmacmacportspdftextexmaker

I seem to have two versions of LaTeX installed on my mac, and it's causing problems because the most up to date version (one that has the right .sty files and packages for Rstudio and Jupyter notebooks), is not the default.

The one that works is installed in: /usr/texbin/

On loading it says "This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015)"

The additional version is installed in: /opt/local/bin/

It says "This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/MacPorts 2015_3)"

How can I uninstall the second version? I'm guessing MacPorts installed it at some point? I'm a bit worried about deleting it and then finding out there were dependencies. My main editor is TeXmaker and I believe it uses the /usr/texbin/ install, but are there things I could (potentially) screw up?

Thanks!

Best Answer

In Applications/TeX/ you can find the TeX Live Utility.app. Open it and go to Configure > Change Default TeX Live Version.

This will open a window similar as: enter image description here

So you can probably change from your MacPorts to the TeXLive version.