I assume DarwinPorts are already installed (
http://darwinports.com/install/). All my examples are done with
lftp a powerful command line ftp client (System: OS X 10.5.3 intel).
Update the darwin ports tree:
sudo port selfupdate
Search for a port. The search facility uses standard regular expression syntax for complex searches:
sudo port search 'lftp'
Check what variations of that port are available to use. Variants provide additional configuration options for a port:
sudo port variants lftp
See what dependencies a port has:
sudo port deps lftp
Find out which ports depends on a already installed port:
port dependents
Install a port:
sudo port install lftp
Delete all the intermediate files that DarwinPorts has created while building the port:
sudo port clean lftp
sudo port clean --all lftp
Getting Information about installed port:
sudo port info lftp
sudo port contents lftp
Show all installed ports:
sudo port installed
Check if lftp is outdated (ports tree should be up to date):
sudo port outdated lftp
Show all outdated ports (ports tree should be up to date):
sudo port outdated
Upgrade lftp port:
sudo port upgrade lftp
This will deactivate the old version and install the new. It also install the latest versions of the dependencies of the lftp port.
Just upgrade a port without the dependencies of this port:
sudo port -n upgrade lftp
Upgrade ALL installed ports (could take ages):
sudo port upgrade installed
Uninstall a port:
sudo port uninstall lftp
Uninstall inactive ports (makes sense after a port upgrade):
sudo port -f uninstall inactive
Brave poeple can use (read:
man port for all options):
sudo port -fvdRnu upgrade outdated
sudo port -fvdR clean --all installed
sudo port -fvdR uninstall inactive
sudo port -fvdR clean --all uninstalled