The selfupdate target of the port(1) command, for users who already have.Git clone of the unpackaged sources, if you wish to follow MacPorts development.
Tar.gz one for manual compilation, if you intend to customize your installation Procedure that most users should follow after meeting the requirements listed MacPorts version 2.7.1 is available in various formats for download and installation (note, if you are upgrading to a new major release of macOS, see the migration info page):