#48087: sudo port -fp uninstall installed Error: No ports matched the given expression ------------------------+-------------------------------- Reporter: fcsmark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: | ------------------------+-------------------------------- Comment (by ryandesign@…): Replying to [comment:2 fcsmark@…]:
Replying to [comment:1 ryandesign@…]:
According to the error message, MacPorts believes you do not have any ports installed. Is that true? I have just run {{{ Last login: Wed Jun 17 09:29:44 on ttys000 Mac-0c4de9b8358f:~ mac$ port outdated No ports are installed. Mac-0c4de9b8358f:~ mac$ }}}
Again, that message indicates that MacPorts thinks you have not installed any ports. Is that true? If so, then you can proceed to the next step of uninstallation (removing MacPorts itself).
`port list` does have an extensive list. The output would be several pages.
That is normal. "`port list`" shows you all ports that exist in the MacPorts ecosystem—all ports that are available to install, should you wish to do so. On the other hand, "`port installed`" shows you which ports are installed, and based on what I've seen so far, this too will tell you you have no ports installed.
Below however may give you enough information to help me.
{{{ Mac-0c4de9b8358f:~ mac$ sudo port clean --all Password: Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /Users/mac"). }}}
and as you can see, this (from my point of view ) is odd.
This is normal. You asked MacPorts to clean the port in the current directory (your home directory). There is no port in your home directory, so MacPorts printed an error meant to tell you that. If you instead wanted to clean the work directory of all ports, the correct command is "`sudo port clean all`". If you wanted to clean all aspects of all ports, including deleting their distfiles, the command would be "`sudo port clean --all all`".
I am still wishing to uninstall at this point, but as the `sudo port -fp uninstall installed` function still fails, I can not see a way to remove macports from the system?
Continue following the [https://guide.macports.org/chunked/installing.macports.uninstalling.html uninstallation instructions]. The first step is to uninstall any installed ports. Based on everything I've read in this ticket, you do not have any ports installed, so you can skip this step and move on to the next one. -- Ticket URL: <https://trac.macports.org/ticket/48087#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X