Mod:Hunt Research Group/MacPorts
Appearance
MacPorts
- installing MacPorts
- find installation information here link
- find general information here link
- download and follow the instructions
- macport installs in /opt/local so add to your path "export PATH=/opt/local/bin:/opt/local/sbin:$PATH"
- see information on next wikipage if gcc is using mac version and not macports
- see information on following wikipage regarding python
- see information on folloing wikipage regarding fortran
- after a major OS upgrade you will need to install a new MacPorts
- using MacPorts basic commands
- you will need to run all commands as sudo
- general commands to update macports
- sudo port version
- sudo port selfupdate
- sudo port outdated
- sudo port upgrade name
- sudo port -u upgrade outdated
- find out what is installed
- sudo port installed
- sudo port select --list name
- sudo port uninstall --follow-dependents name
- sudo port uninstall name
- sudo port clean name
- find out what you could install
- sudo port installed '*name*'
- port search --name --line --glob '*name*'
- activate new install
- sudo port activate name
- sudo port deactivate name
- sudo port select --set python python37 or which ever version you want
- sudo port select --set python none removes the assignment
- things are a bit bloated and you need to clean-up
- sudo port -f clean --all all
- sudo port -f uninstall inactive
- If you want to do more explicitly, but the above should suffice!
- Remove leftover build files (this is done automatically by default):
- sudo rm -rf /opt/local/var/macports/build/*
- Remove download files:
- sudo rm -rf /opt/local/var/macports/distfiles/*
- Remove archives (these aren't created by default):
- sudo rm -rf /opt/local/var/macports/packages/*