# port

> Package manager for macOS.
> More information: <https://www.macports.org>.

- Search for a package:

`port search {{search_term}}`

- Install a package:

`sudo port install {{package}}`

- 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`
