From owner-freebsd-questions@FreeBSD.ORG Wed May 27 23:50:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5BCC106564A for ; Wed, 27 May 2009 23:50:07 +0000 (UTC) (envelope-from grepkeen@gmail.com) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id 5689D8FC1A for ; Wed, 27 May 2009 23:50:06 +0000 (UTC) (envelope-from grepkeen@gmail.com) Received: by qyk3 with SMTP id 3so7187369qyk.3 for ; Wed, 27 May 2009 16:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=49enzSsJ3Kqkr19QcTTBBPegA4YQj0vbQB/kijdtTW0=; b=h5a660TbMSKDf3GNRD/aTz00iZqsFnPw38zBvqY5zIjL9Xx0xr8Wl4CvzAgyrfrJjv R+4uIIAICHH26YRFDxW+tl4QQkDZtTuhDqWKv1r685684L6aO1zLNFa3bubkIf/HCUDo r/Udw1RXHfjV9q0pJw9aUmfB1Di0vsf644GYg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=IYAHVY3B2ic3zG4TulvwqF1Ey8yZBaC4BJnrjitNZlpCN1hxFa0PuDn0vuWya6zUTw P5hLOaW3xaBLgHOPeYN2WsyUQ0BU+HgxE75WFGH6FxLqGXLR7/IqUQ5Q2EVyxKCk+A6B EDN7kmctg55nivvTP8cV7uVKhUeFNa2oBjKWo= Received: by 10.224.6.79 with SMTP id 15mr747971qay.208.1243466572244; Wed, 27 May 2009 16:22:52 -0700 (PDT) Received: from ?192.168.1.5? (ool-44c5aa97.dyn.optonline.net [68.197.170.151]) by mx.google.com with ESMTPS id 26sm403002qwa.48.2009.05.27.16.22.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 27 May 2009 16:22:51 -0700 (PDT) Message-ID: <4A1DCB4C.4080505@gmail.com> Date: Wed, 27 May 2009 19:22:52 -0400 From: "John D. Gage III" User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Robert Huff References: <20090527224351.1e94029b@bobcat.edu> <18973.42902.732223.265821@jerusalem.litteratus.org> In-Reply-To: <18973.42902.732223.265821@jerusalem.litteratus.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: herbert langhans , freebsd-questions@freebsd.org Subject: Re: removing distfiles? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2009 23:50:07 -0000 Robert Huff wrote: > herbert langhans writes: > > >> I can delete the .tar.gz files from /usr/ports/distfiles - is this correct? >> >> Not that some port tree management goes crazy (dependencies or such).. >> > > If you want to be selective, try "portsclean" which is part of > portupgrade(-*). > > > Robert Huff > I second this notion. "portsclean -DLC" is great for recovering disk space after port installs and/or using "portupgrade -arR". -*D* -*-distclean* Clean out all the distfiles that are not referenced by any port in the ports tree. Specified twice (i.e. -*DD* ), clean out all the distfiles that are not referenced by any port that is currently installed. (cf. / DISTDIR/) -*L* -*-libclean* Clean out old, duplicate and/or orphaned shared libraries. **portsclean** first deletes duplicate shared libraries where appropriate, then puts away old and orphaned shared libaries to /usr/local/lib/compat/pkg updating symlinks properly. To keep binaries working, ldconfig (8) is run after each library deletion or move. **portsclean** is so wise you can safely run it without turning -*i* on. However, if you want to do further cleanup, specify the flag to be asked on possibly unneeded libraries too. You can use the sysutils/libchk port to check which library is linked with which binaries. -*C* -*-workclean* Clean out all the working directories of the ports tree. (cf. / WRKDIRPREFIX/) -John