Contents
Is there a way to remove MacPorts from Mac?
Individual ports may create users and groups as well; you can remove them with the same commands, but replacing macports with the user or group name you wish to delete. 2.4.3.
How to remove users and groups from MacPorts?
Remove Users and Groups. When MacPorts is installed, a macports macOS user and group are created for privilege separation. If you want to remove them, you can use these commands from an account that has admin privileges: $ sudo dscl . -delete /Users/macports $ sudo dscl . -delete /Groups/macports.
How to uninstall the port command on Mac?
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: $ sudo port -fp uninstall installed 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.
Can you use MacPorts on any other OS?
MacPorts is developed on macOS, though it is designed to be portable so it can work on other Unix-like systems, especially those descended from the Berkeley Software Distribution (BSD). In practice, installing ports only works on macOS.
How to uninstall unused ports in Mac ports?
This may reveal a few more leaves (i.e. ports that are dependencies of ports that are installed, but inactive): There are several sections in the MacPorts Guide that also describe the process of using leaves to uninstall unneeded ports. The uninstall action will uninstall an installed port.
How to remove unneeded dependencies from MacPorts?
Dependencies are exactly that—dependencies—and different apps can (will) require the same dependencies. There’s also a script in MacPorts’ contrib directory called port_cutleaves you can run to remove unneeded dependencies: http://trac.macports.org/browser/contrib/.