From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Screenshot of the port command running in Terminal
Screenshot of the port command running in Terminal
Initial release2002 (2002)[1]
Stable release
2.5.4 / 3 October 2018; 41 days ago (2018-10-03)[2]
Written inTcl and C
Operating systemmacOS, Darwin
PlatformIA-32, x86-64, PowerPC
TypePackage management system

MacPorts, formerly called DarwinPorts,[3] 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 BSDs' 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.

It 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.[4]

On April 28, 2005, the project released version 1.0 of their software.[5] In December 2005, the project reached a milestone, passing 3000 ports.[6] In August 2010, MacPorts version 1.9.1 surpassed 7000 ports. As of March 2013, MacPorts version 2.1.3 has over 16,500 ports.[7]

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.[8] When Apple closed Mac OS Forge in 2016, the project moved to GitHub. [9] Best-effort support can be sourced from the community.[10]

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.[11]

The official MacPorts GUI application is called Pallet and began as a Google Summer of Code project in 2009.[12]

MacPorts is notably different from FreeBSD Ports, OpenBSD ports and pkgsrc in that the installation is always done from the source code by the end user, as no binary packages are provided by the upstream. Alternative solutions for macOS include using pkgsrc with the binary packages provided by Joyent,[13] which also provides the binary packages for Enterprise Linux and SmartOS as well, on a regular basis since 2014, making it possible to use the same packages and package-management tools both locally on macOS, as well as in the cloud on Linux or SmartOS, simplifying the development environment.

See also[edit]


  1. ^ "MacPortsHistory".
  2. ^ "Releases · macports/macports-base · GitHub".
  3. ^ "DarwinPorts project announces New Hosting and New Name". (archived). August 7, 2006. Retrieved 2007-03-05.
  4. ^ "MacPorts". January 5, 2011. Retrieved 2010-10-15.
  5. ^ Markus Weissmann (April 28, 2005). "DarwinPorts v1.0". (archived). Archived from the original on 2006-06-29. Retrieved 2007-03-05.
  6. ^ "3000 ports landmark". (archived). December 17, 2005. Archived from the original on 2006-06-29. Retrieved 2007-03-05.
  7. ^ "The MacPorts Project -- Home". Retrieved 2012-03-23.
  8. ^ "Archived copy". Archived from the original on 2010-08-20. Retrieved 2010-08-17.
  9. ^
  10. ^
  11. ^ "Migrating a MacPorts install to a new major OS version or CPU architecture". MacPorts. Retrieved 2013-05-27.
  12. ^
  13. ^ "Joyent Packages Documentation - Install On macOS". Joyent. Retrieved 2018-10-10.

External links[edit]