Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

on macports, what ports are supported by 'port select'?

Tags:

rvm

macports

I know 'port select' works with gcc and python --> is there a way to get a full list of all the ports that are switchable by 'port select'?

(I want to make a generic 'select' util that delegates to rvm, port select, etc. and quickly let's me switch entire toolset chains)

thanks!

like image 438
lilinjn Avatar asked Nov 04 '11 23:11

lilinjn


People also ask

What are MacPorts?

MacPorts, formerly called DarwinPorts, is a package management system that simplifies the installation of software on the macOS and Darwin operating systems.

Does MacPorts build from source?

If no archive is available, MacPorts will fall back to building from source. This can happen for a number of reasons: Each port is only prebuilt with its default set of variants. So if you specify different variants when installing, the port will be built from source.


2 Answers

There is no way to ask the port select tool itself for a list, but just check the directory /opt/local/etc/select. Each selectable group has a directory there.

like image 171
raimue Avatar answered Oct 05 '22 01:10

raimue


Raim's answer works with ports that have been previously installed. For a more comprehensive list, try:

port echo '*_select' | cut -d_ -f1
like image 30
Miles Avatar answered Oct 05 '22 02:10

Miles