Page 3 of 3

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Sun Jun 30, 2019 12:39 am
by pcscote
About packages managers for macOS:

There are several package manager for macOS: Homebrew, Homerrew Cask, Nix, pkgsrc, MacPort, Rudix, Anaconda and Fink among others.
  • Some requires sudo access (MacPort) other do not (Homebrew).
  • Some will install their packages in your home folder (Anaconda is in ~/anaconda3) while other will install them in one of the system folder (Homebrew is in /usr/local/Homebrew & MacPort is in /opt/local/).
  • Some has more packages available than others: MacPort has around 20K packages while Homebrew has around 5K packages.
What is more important for you to control, when you have multiple package manager installed, is which one is to be used first, second, etc.
The way to achieve that goal is to edit your ~/.profile file and setup the package manager order in your PATH variable.
It is also a good idea to keep a record of what application is installed with which package manager.

Sylvain

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Wed Jul 17, 2019 5:16 am
by StatsDoctor
Thanks, cdmackay. I will leave both Brew and MacPorts installed. The only utility that I have installed using Brew is lpc21isp. I have not any installed any other utilities with Brew or MacPorts. I will keep your advice in mind and will not install the same utility with Brew and MacPorts.

Bob

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Wed Jul 17, 2019 5:24 am
by StatsDoctor
Sylvain,

Thanks for all of the info about package managers for macOS. I never knew that there were so many!

I will only use a package manager when I really need to, like when I installed lpc21isp.

Is there a default order that a Mac will use the package managers in, assuming that at least two package managers are installed?

Finally, it sounds like MacPort and Homebrew are the most popular package managers.

Bob

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Wed Jul 17, 2019 6:26 pm
by cdmackay
StatsDoctor wrote:
Wed Jul 17, 2019 5:24 am
Is there a default order that a Mac will use the package managers in, assuming that at least two package managers are installed?

Finally, it sounds like MacPort and Homebrew are the most popular package managers.
The order is under your control, via your PATH environment variable. You set this in one of your shell startup files, in your home directory, e.g: ~/.bash_profile

The PATH variable consists of a colon-separated list of directories, where the shell searches for commands to run. If a command exists in more than one directory, the first in PATH is the one that will be executed.

HomeBrew uses /usr/local/bin

MacPorts uses /opt/local/bin


There is also Fink. I think this uses /sw/bin

PS one should also set MANPATH, in parallel with PATH, with “man” replacing “bin”, so that the man command may find basic documentation for the commands.

PPS the above is all standard UNIX

Re: Firmware Update (v29) on DM 15L using a MacBook Pro

Posted: Thu Jul 18, 2019 2:40 am
by StatsDoctor
Thanks for answering my questions and for all of the helpful info, cdmackay.

Bob