Skip to content

Instantly share code, notes, and snippets.

@lukmdo
Last active December 11, 2015 01:49
Show Gist options
  • Save lukmdo/4526413 to your computer and use it in GitHub Desktop.
Save lukmdo/4526413 to your computer and use it in GitHub Desktop.
Mac macports comands

MacPorts ACTIONS

✔ search
port search vim
port search --regex 'docbook.*[0-9]+'
✔ info
port info vim +ruby
port info --category --name apache*
port -q info --category --name --version category:java
port info --line --category --name all
port info --pretty --fullname --depends gtk2
port info --index python24
notes
✔ variants
deps
rdeps
✔ dependents
Lists the installed ports that depend on the port portname.
✔ rdependents
Recursively lists the installed ports that depend on the port portname. Instead of only showing each port once, use with --full.
✔ install
✔ uninstall
port -u uninstall  # !CLEANUP! uninstall all inactive ports
port uninstall --follow-dependents python24
✔ select
For a given group, selects a version to be the default by creating appropriate symbolic links.
port select --list python
port select --show gcc
port select --set gcc mp-gcc44
activate
deactivate
installed
location
✔ contents
Lists the files installed by portname.
provides
Determines which port owns a given file
port provides include/tiff.h
sync
outdated
✔ upgrade
rev-upgrade
clean
log
echo
list
version
platform
✔ selfupdate
load
unload
✔ gohome
usage
✔ help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment