macports

MacPorts Cheatsheet #

MacPorts is a package manager for macOS that simplifies the installation and management of software.

Package Management #

Command/OptionExampleDescription
port installport install wgetInstall a port/package
port uninstallport uninstall wgetUninstall a port/package
port upgradeport upgrade outdatedUpgrade all installed ports/packages to their latest versions
port listport listList all available ports/packages
port infoport info wgetDisplay information about a port/package

Searching and Ports #

Command/OptionExampleDescription
port searchport search wgetSearch for a port/package
port echoport echo depends:curlList ports that depend on a given port
port installedport installedList all installed ports/packages
port variantsport variants wgetDisplay available variants for a port/package

Configuration and Maintenance #

Command/OptionExampleDescription
port selfupdateport selfupdateUpdate MacPorts itself
port syncport syncSynchronize the port definitions with the MacPorts repository
port cleanport clean --allRemove old build files and unneeded files for all installed ports

Services #

Command/OptionExampleDescription
port loadport load mysql5-serverLoad a MacPorts service
port unloadport unload mysql5-serverUnload a MacPorts service
port restartport restart mysql5-serverRestart a MacPorts service
port statusport status mysql5-serverCheck the status of a MacPorts service

Additional Commands #

Command/OptionExampleDescription
port -dport -d install wgetRun a command in debug mode
port -vport -v info wgetRun a command in verbose mode

This cheatsheet covers the essential MacPorts commands and options for managing packages and services on macOS.

macports

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.