Jason
Jason

Reputation: 15355

See what has been installed via MacPorts

Is there a way to see all I have installed via MacPorts?

I know I have installed Apache and php 5.3.8, but I'd like to see what else I have installed.

Upvotes: 131

Views: 59997

Answers (2)

ChrisH
ChrisH

Reputation: 76

In case you no longer have MacPorts installed (and therefore port installed requested as suggested by the main answer will not work), you can directly query the MacPorts database, which will remain if you previously uninstalled MacPorts.

1. Optionally, first verify database exists:

ls /opt/local/var/macports/registry/registry.db

2. Query the Database

sqlite3 /opt/local/var/macports/registry/registry.db "SELECT name, version FROM ports;"

Upvotes: 5

Tg.
Tg.

Reputation: 5794

Use port installed to list all of your ports.

Upvotes: 178

Related Questions