Contents
How to uninstall MacPorts and the port command?
If you want to uninstall MacPorts and the port command is functioning, first uninstall all the installed ports by running this command in the Terminal: All that will be left in your installation prefix now will be files that were not registered to any port.
What are the files left in MacPorts installation?
All that will be left in your installation prefix now will be files that were not registered to any port. This includes configuration files, databases, any files which MacPorts renamed in order to allow a forced installation or upgrade, and the base MacPorts software itself.
Can you delete MacPorts with a different username?
If you configured MacPorts to use a different username, then of course you should specify it instead of macports. Individual ports may create users as well; you can remove them with the same commands, but replacing macports with the username you wish to delete.
How to remove all traces of MacPorts?
Remove the Rest of MacPorts If you want to remove all remaining traces of MacPorts, run the following command in the Terminal.
How to remove unused MacPorts packages [ step by step guide ]?
Some common leaves ( automake, gperf, libtool, pkgconfig) are build-time dependencies of common ports, so you may want to “request” them ( sudo port setrequested port1 port2 port3 …) to avoid uninstalling them just to have to reinstall them later.
How to uninstall ports that depend on a port?
To also recursively uninstall the ports that the given port depends on, use the ‑‑follow‑dependencies flag. This will not uninstall dependencies that are marked as requested or that have other dependents. To recursively uninstall all ports that depend on the given port before uninstalling the port itself, use the ‑‑follow‑dependents flag.
Is there a way to install MacPorts on another OS?
However, if you wish to install multiple copies of MacPorts or install MacPorts on another OS platform, you must install MacPorts from the source code. The macOS package installer automatically installs MacPorts, sets the shell environment, and runs a selfupdate operation to update the ports tree and MacPorts base with the latest release.
Is there a way to uninstall a port?
The uninstall action will uninstall an installed port. To also recursively uninstall the ports that the given port depends on, use the ‑‑follow‑dependencies flag. This will not uninstall dependencies that are marked as requested or that have other dependents.