clean old ports

Ryan Schmidt ryandesign at macports.org
Sat Jun 20 14:05:01 PDT 2009


On Jun 18, 2009, at 19:28, Thomas De Contes wrote:

> is there a way to do so that all ports which are not curently  
> installed are as clean as they never were installed ?
>
> i think there is a command to really clean a port, but i don't want  
> to apply to those which are still installed

"sudo port clean --all PORTNAME" will clean the work area, distfiles  
and archives of a port. You can use this on any port, installed or  
not. It will not uninstall an installed port.

"sudo port uninstall PORTNAME" will of course uninstall the port and  
all its registered files.

There may still be unregistered files associated with a port. For  
example, some ports copy their default configuration files for you;  
these copies will be left behind. You must manually locate and remove  
them if you want them gone.



More information about the macports-users mailing list