Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Macports Port Select Commands

What are the new commands & or equivalents of:

python_select -L (shows available python versions)

python_select -s (sets the default version of your choice of python).

I know they have changed to --list, --set, --show but there doesn't seem to be an example of how to properly use each one. For example, if I use port select --set I get the following:

Error: port select [--list |--set |--show] [].

like image 921
demet8 Avatar asked Jul 07 '11 14:07

demet8


People also ask

How do you update ports on a Mac?

MacPorts base upgrades are performed automatically (when a newer release is available) during a selfupdate operation. To upgrade a copy of MacPorts that was installed from source to the newer release of the source code, simply repeat the source install with the newer version of the MacPorts source code.

What does MacPorts do?

A MacPorts port is a set of specifications contained in a Portfile that defines an application, its characteristics, and any files or special instructions required to install it. This allows you to use a single command to tell MacPorts to automatically download, compile, and install applications and libraries.

What is port install?

Insertion of a port catheter is a minor surgery and requires a skin incision about an inch in length. This port incision is made with local anesthetic below the clavicle. The catheter is connected to the port, placed under the skin and then into the neck vein, and the port is placed beneath the skin.

What is MacPorts user Mac?

Macports is a tool for installing applications and command line tools on your Mac, with a huge library of “ports” (the Macports term for something that can be installed).


1 Answers

To list:

port select --list python

To show:

port select --show python

To select:

sudo port select --set python <the python version>
like image 191
juanchopanza Avatar answered Oct 15 '22 13:10

juanchopanza