Macports
From wikinotes
Macports is a community driven package manager for MacOS.
Unlike brew, macports manages an entirely separate copy of executables/libraries - less problematic with system updates.
See Also brew.
Documentation
install docs https://www.macports.org/install.php uninstall docs https://guide.macports.org/chunked/installing.macports.uninstalling.html
Locations
/opt/local/var/macports/software
installed software /opt/local/etc/macports/macports.conf
config NOTE:
I'm not sure if macports works like freebsd ports, you might only download makefiles upon user request..
Install
https://www.macports.org/install.php
- Install xcode from the app store
- Install macports version appropriate to your OSX version
Usage
# help man port # Docs port installed # list installed packages# updating sudo port -v selfupdate # update index sudo port upgrade outdated # update all outdated software port outdated port upgrade <package># installing sudo port search # Search for a package sudo port clean <package> # Make Clean sudo port install <package> sudo port -fp uninstall <package># cleanup port installed inactive # show stray dependencies port uninstall inactive # delete stray dependencies# uninstall everything sudo port -fp uninstall installed # remove macports user/group sudo dscl . -delete /Users/macports sudo dscl . -delete /Groups/macports # delete remaining traces of macports sudo rm -rf \ /opt/local \ /Applications/DarwinPorts \ /Applications/MacPorts \ /Library/LaunchDaemons/org.macports.* \ /Library/Receipts/DarwinPorts*.pkg \ /Library/Receipts/MacPorts*.pkg \ /Library/StartupItems/DarwinPortsStartup \ /Library/Tcl/darwinports1.0 \ /Library/Tcl/macports1.0 \ ~/.macports