'\" t .TH "PORT\-SELECT" "1" "2015\-04\-12" "MacPorts 2\&.3\&.99" "MacPorts Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" port-select \- Switch between different implementations of a tool .SH "SYNOPSIS" .sp .nf \fBport\fR [\fB\-dv\fR] \fBselect\fR \-\-summary .fi .sp .nf \fBport\fR [\fB\-dv\fR] \fBselect\fR \-\-show \fIgroup\fR .fi .sp .nf \fBport\fR [\fB\-dv\fR] \fBselect\fR [\-\-list] \fIgroup\fR .fi .sp .nf \fBport\fR [\fB\-dv\fR] \fBselect\fR [\-\-set] \fIgroup\fR \fIoption\fR .fi .SH "DESCRIPTION" .sp \fBport select\fR provides a mechanism to choose from different implementations of a common tool or port\&. Selecting one of the options makes it the primary version or implementation, e\&.g\&. the one to be run by default when you do not explicitly select a version or implementation on the command line\&. .sp Note that \fBport select\fR is only for your convenience as user\&. It does not, for example, affect which compiler MacPorts uses when it compiles software, or against which copy of MySQL a port builds\&. If there is a user\-visible choice, it is usually offered as a variant on the port\&. If the \fBport select\fR mechanism affects how a port builds, that should be considered a bug\&. .sp One example is the set of MySQL and forks of MySQL, where there are mysql51, mysql55, mysql56, mariadb, mariadb\-10\&.0, mariadb\-11\&.0, percona, possibly among others\&. \fBport select\fR lets you choose which of these becomes the version run, when you simply run \fImysql\fR or other commands from the MySQL suite\&. .sp \fBport select\fR has multiple modes of operation: It can display a summary, show the current primary implementation and list all available implementations given a group name, and change the primary implementation\&. See \fBOPTIONS\fR below for details\&. .SH "OPTIONS" .PP \fB\-\-summary\fR .RS 4 Display a summary of all available selection groups, their current primary implementation and a list of all available choices\&. .RE .PP \fB\-\-show\fR \fIgroup\fR .RS 4 Print the current primary implementation for the given group\&. .RE .PP \fB\-\-list\fR \fIgroup\fR .RS 4 Print a list of all currently available choices for the given group\&. This is the default when \fBport select\fR is called with one argument\&. .RE .PP \fB\-\-set\fR \fIgroup\fR \fIoption\fR .RS 4 Make \fIoption\fR the primary selection for the \fIgroup\fR group\&. This is the default when \fBport select\fR is called with two arguments\&. .RE .SH "GLOBAL OPTIONS" .sp Please see the section \fBGLOBAL OPTIONS\fR in the \fBport\fR(1) man page for a description of global port options\&. .SH "EXAMPLES" .sp If you have both the mysql56 and the percona port installed, you can switch your implementation of the \fImysql\fR command by running .sp .if n \{\ .RS 4 .\} .nf $> sudo port select \-\-set mysql $option .fi .if n \{\ .RE .\} .sp where \fI$option\fR is \fImysql56\fR if you want the version from MySQL, or \fIpercona\fR, if you want the version from Percona\&. .SH "SEE ALSO" .sp \fBport\fR(1) .SH "AUTHORS" .sp .if n \{\ .RS 4 .\} .nf (C) 2015 The MacPorts Project Clemens Lang .fi .if n \{\ .RE .\}