# port

> Package manager for macOS.

- Search for a package:

`port search {{search_term}}`

- Install a package:

`sudo port install {{package_name}}`

- List installed packages:

`port installed`

- Update port and fetch the latest list of available packages:

`sudo port selfupdate`

- Upgrade outdated packages:

`sudo port upgrade outdated`

- Remove old versions of installed packages:

`sudo port uninstall inactive`
