Cleaning distfiles

Scott Webster sewebster at gmail.com
Tue Jan 25 23:14:26 PST 2011


I believe Ryan posted a script that deletes all distfiles older than a
certain time at some point.

If you are patient you can do "port clean --all all" but it will run
through ALL the ports, so it takes a bit.

Scott

On Tue, Jan 25, 2011 at 8:59 PM, Adam Mercer <ram at macports.org> wrote:
> On Tue, Jan 25, 2011 at 22:50, Jason Swails <jason.swails at gmail.com> wrote:
>> {sudo} port clean --all uninstalled
>>
>> Does that do the trick?  You can optionally replace --all with --dist to
>> just get rid of the distfiles.  I don't want to do this to test it since I
>> actually want to hold on to those files.
>
> That'll remove the uninstalled distfiles, but not the old versions of
> installed distfiles. Thanks for reminding me about "uninstalled" I'd
> forgotten about that; it solves half my problem.
>
>> You can also do
>>
>> {sudo} port -u uninstall
>>
>> to clean out all old, inactive versions (you can get the list via "port
>> inactive").
>
> I always upgrade with the -u flag to remove the installed image of
> older versions, but I want to remove the source tarballs for these old
> versions as well. I think I remember this question coming up a while
> ago but can't remember if there was ever a solution plus I can't find
> the original email.
>
> Cheers
>
> Adam
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>


More information about the macports-users mailing list