Cleaning distfiles
Ryan Schmidt
ryandesign at macports.org
Wed Jan 26 07:03:43 PST 2011
On Jan 26, 2011, at 08:57, Daniel J. Luke wrote:
> On Jan 26, 2011, at 4:20 AM, Ryan Schmidt wrote:
>>
>> On Jan 26, 2011, at 01:14, Scott Webster wrote:
>>> I believe Ryan posted a script that deletes all distfiles older than a
>>> certain time at some point.
>>
>> Yeah, that's what I'm still using.
>>
>> http://lists.macosforge.org/pipermail/macports-users/2010-June/020560.html
>
> you can (ab)use port mirror and portmirror to do what you want also:
>
> It's not pretty (see http://trac.macports.org/ticket/21787), but it works:
>
> port mirror --new name_of_some_port_you_have_installed && port mirror installed && portmirror
>
> will leave you of just the distfiles from your installed ports.
I see... If I understand correctly, "port mirror" fetches distfiles and updates a local database, and "portmirror" deletes everything not in that database?
I think I like my script better; it's much clearer, based on its name and contents, what it's doing.
More information about the macports-users
mailing list