Screenshot of the port command running in Terminal
2.6.2 / 20 October 2019
|Written in||Tcl and C|
|Operating system||macOS, Darwin|
|Platform||IA-32, x86-64, PowerPC|
|Type||Package management system|
MacPorts, formerly called DarwinPorts, is a package management system that simplifies the installation of software on the macOS and Darwin operating systems. It is an open-source software project to simplify installation of other open source software. Similar in aim and function to Fink and the BSD ports collections, DarwinPorts was started in 2002 as part of the OpenDarwin project, with the involvement of a number of Apple Inc. employees including Landon Fuller, Kevin Van Vechten, and Jordan Hubbard.
MacPorts allows the installation of a number of packages by entering the command
sudo port install packagename in the Terminal, which will then download, compile if necessary, and install the requested software, while also installing any required dependencies automatically. Installed packages can be updated with the command
sudo port upgrade outdated. An official GUI application called Pallet is also available.
Version 1.0 was released on April 28, 2005. In December 2005 the project reached a milestone, surpassing 3000 ports. At that time, package installation involved the source code being downloaded and compiled on the end user's machine. Version 2.0, released in 2011, introduced support for prebuilt binary archives; by default ports are installed using the prebuilt binary archive if available, and are built from source otherwise. As of August 2019[update], MacPorts has over 21,600 ports.
MacPorts was hosted on Mac OS Forge, an open source hosting service created and maintained by Apple Inc. for third-party projects not supported by Apple. When Apple closed Mac OS Forge in 2016, the project moved to GitHub. Best-effort support can be sourced from the community.
MacPorts supports universal binaries for both PowerPC and Intel-based versions of Mac OS X, but migrating from a PowerPC installation of MacPorts to a version on an Intel Mac requires reinstalling all installed ports.
- "Releases · macports/macports-base · GitHub".
- Mark Weinem, ed. (2007-10-17). "Jordan K. Hubbard: The invention of the FreeBSD Ports system, its drawbacks and the merits of MacPorts". 10 years of pkgsrc — pkgsrc and the concepts of package management 1997-2007 (part 1). NetBSD. Retrieved 2019-08-07.
- "DarwinPorts project announces New Hosting and New Name". darwinports.opendarwin.org (archived). August 7, 2006. Retrieved 2007-03-05.
- "MacPorts". www.macports.org. January 5, 2011. Archived from the original on September 26, 2010. Retrieved 2010-10-15.
- Markus Weissmann (April 28, 2005). "DarwinPorts v1.0". darwinports.opendarwin.org (archived). Archived from the original on 2006-06-29. Retrieved 2007-03-05.
- "3000 ports landmark". darwinports.opendarwin.org (archived). December 17, 2005. Archived from the original on 2006-06-29. Retrieved 2007-03-05.
- Joshua Root (2011-07-22). "MacPorts 2.0.0 has been released". MacPorts-announce (Mailing list). Retrieved 2019-08-17.
- Joshua Root (2012-05-11). "Prebuilt archives available for Lion". MacPorts-announce (Mailing list). Retrieved 2019-03-01.
- "The MacPorts Project -- Home". Retrieved 2019-08-17.
- "Archived copy". Archived from the original on 2010-08-20. Retrieved 2010-08-17.CS1 maint: archived copy as title (link)
- "Migrating a MacPorts install to a new major OS version or CPU architecture". MacPorts. Retrieved 2013-05-27.