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!
MacPorts, formerly called DarwinPorts, is a package management system that simplifies the installation of software on the macOS and Darwin operating systems.
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.
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.
Raim's answer works with ports that have been previously installed. For a more comprehensive list, try:
port echo '*_select' | cut -d_ -f1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With