<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 1/3/14 6:54 PM, Adam Dershowitz
Ph.D., P.E. wrote:<br>
</div>
<blockquote
cite="mid:F2946D0A-049B-475E-9729-3B5E43F4014C@alum.mit.edu"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
It seems that when I upgrade ports, whether I uninstall the old
version or not, that the distribution files remain. I have
installed with the “-u” and have also just unstalled the inactive
ports, after an upgrade. Yet, I see all my old distribution files
remaining in <font face="Menlo"><span style="font-size: 11px;">/opt/local/var/macports/distfiles/.
</span></font>
<div apple-content-edited="true">
<div>Is this expected behavior? I don’t recall noticing this
from prior to 10.9 and 2.2.1. </div>
<div>Is there a way to get rid of the distribution files for
ports that are no longer the installed versions? For example
I tried to do a clean like this:</div>
<div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">sudo
port clean --dist inactive</div>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">But
these remain:</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">
<div style="margin: 0px;">ls
/opt/local//var/macports/distfiles/sqlite3</div>
<div style="margin: 0px;">sqlite-autoconf-3071600.tar.gz<span
class="Apple-tab-span" style="white-space:pre"> </span>sqlite-autoconf-3071602.tar.gz<span
class="Apple-tab-span" style="white-space:pre"> </span>sqlite-autoconf-3080000.tar.gz<span
class="Apple-tab-span" style="white-space:pre"> </span>sqlite-autoconf-3080100.tar.gz</div>
<div style="margin: 0px;">sqlite-autoconf-3071601.tar.gz<span
class="Apple-tab-span" style="white-space:pre"> </span>sqlite-autoconf-3071700.tar.gz<span
class="Apple-tab-span" style="white-space:pre"> </span>sqlite-autoconf-3080002.tar.gz</div>
</div>
<div><br>
</div>
<div>I believe that the reason that the clean like that didn’t
work is because I had removed my old versions of sqlite3, so
they are not inactive. </div>
<div><br>
</div>
<div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">port
installed sqlite3</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">The
following ports are currently installed:</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">
sqlite3 @3.8.2_0+universal (active)</div>
</div>
<div><br>
</div>
<div>So, I would like to be able to clean the distributions for
all things that are not installed, but leave the distributions
for anything that I have either active or inactive. Is there
a way to do that?</div>
<div><br>
</div>
<div><br>
</div>
<div>--Adam</div>
<div><br class="khtml-block-placeholder">
</div>
</div>
</blockquote>
How about<br>
<br>
sudo port clean --dist not installed<br>
<br>
<br>
if that doesn't work you may have to just remove them manually.<br>
<br>
Dave<br>
<br>
<br>
<br>
</body>
</html>