Contents
- 1 Installation
- 2 Selfupdate
- 3 Upgrade installed packages
- 4 Uninstall package
- 5 Using variants
Installation
Selfupdate
The selfupdate option should be used regularly to sync the local ports tree with the global MacPorts ports repository so you will have the latest port versions. It also checks for new revisions of the MacPorts infrastructure, called MacPorts base, and upgrades it when necessary.
sudo port selfupdate
The sync option performs a subset of selfupdate actions. It synchronizes the ports tree, as does selfupdate, but it does not check for upgrades to MacPorts base. On Mac OS X, unless there is a special reason not to do so, you should run selfupdate.
sudo port sync
Upgrade installed packages
sudo port upgrade outdated
Uninstall package
sudo port uninstall wireshark
Using variants
sudo port variants wireshark wireshark has the variants: adns gnutls libgcrypt ipv6 lua net_snmp pcre rtp: add rtp support with portaudio no_ssl no_x11: Disable support for X11
sudo port install wireshark +gnutls +pcre +rtp