Publicizing MacPorts [installation]

Marius Schamschula lists at schamschula.com
Sun May 23 18:35:43 UTC 2021


A script that’ll download the installer pkg and then run the installer cli command

i.e. something like

cd ~/Downloads
curl -OL /url/of/installer.pkg
sudo installer -pkg installer.pkg -target /


> On May 23, 2021, at 12:58 PM, Joshua Root <jmr at macports.org <mailto:jmr at macports.org>> wrote:
> 
> On 2021-5-23 20:40 , Artem Loenko via macports-dev wrote:
>> If you ask me, `curl | sh` is a better option than `sudo make install`.
>> Even if we compare them both as anti-patterns.
> 
> If you haven't done any verification of the integrity of what you're installing, 'make install' is certainly also a bad idea. But at least you had the opportunity to verify the gpg signature or whatever of the tarball you downloaded before running that. (And sure, a lot of people don't, hence the preference of the pkg installer for general use, which will refuse to install if the signature can't be verified.)
> 
>> Plus, `make` requires a few dependencies. But when you install a package,
>> all the logic/doctor checks can be implemented on the `ports` binary level.
>> Install CLT, Xcode, check the environment, etc. Simple is better.
> 
> Sure.
> 
> - Josh



Marius
--
Marius Schamschula




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20210523/9e521e05/attachment.htm>


More information about the macports-dev mailing list