From owner-freebsd-ports@FreeBSD.ORG Sun Nov 16 23:20:11 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 10063E79 for ; Sun, 16 Nov 2014 23:20:11 +0000 (UTC) Received: from mail-pa0-x231.google.com (mail-pa0-x231.google.com [IPv6:2607:f8b0:400e:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D33C78F5 for ; Sun, 16 Nov 2014 23:20:10 +0000 (UTC) Received: by mail-pa0-f49.google.com with SMTP id lj1so20924482pab.36 for ; Sun, 16 Nov 2014 15:20:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uDwwCC2FGwKsR6c9X5LWKuCnDqVDr2nEhyV6k9XPA4w=; b=vaiYLIwcPh3U17ILUV0DvW6oRR7Rk+OCOgJdAs8VFSDd+K0Oa52c9HM4QsAEDWiFA9 0rI4dWr7JeMcbQCzjkmGjzlXzv/7zKFI17NtvS/DFzlZc7qVgM5jAna33JoLr2Vst+RU DuEuJYsepxmObmaCD03/tbVjM4LuUgEehryhXKw6MEbsVFEkD9YZzKyBAr9//CHHIpOG /oroDmPixCml6gsPvhz5kpS1fRXER1yGlUbjDcaTIZFE1KImFJKGhY3QEOmgJK2TC6C0 TM1tdsvDR1itkkpt3PdUd+jaKqeU7b9nB5iP9VghH9sT3G7YVXeKMAmgnnLFYnyaXaJf 89Zg== MIME-Version: 1.0 X-Received: by 10.70.44.70 with SMTP id c6mr25502203pdm.45.1416180010392; Sun, 16 Nov 2014 15:20:10 -0800 (PST) Received: by 10.70.94.167 with HTTP; Sun, 16 Nov 2014 15:20:10 -0800 (PST) In-Reply-To: <20141116232937.657463ce@kirk.drpetervoigt.private> References: <20141116232937.657463ce@kirk.drpetervoigt.private> Date: Sun, 16 Nov 2014 17:20:10 -0600 Message-ID: Subject: Re: Deleting ports distfiles From: Adam Vande More To: "Dr. Peter Voigt" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2014 23:20:11 -0000 On Sun, Nov 16, 2014 at 4:29 PM, Dr. Peter Voigt wrote: > I have just seen that /usr/ports/distfiles has grown up to 12 GiB. My > hopefully not too stupid question is: Can I safely delete all files > under /usr/ports/distfiles, e.g. > > # rm -rf /usr/ports/distfiles/* > > I strongly suppose so but I am not sure. Thanks for any feedback. > It is not necessarily a safe operation to preform depending on the details. The downloads in that location may be the last known copy of that particular port/version at least as a copy available to you. Deleting those files could prevent you from rebuilding a certain port/version if needed. Nearly all the time this isn't a problem or easily worked around, but not universally so IME. After doing a ports upgrade, and ensuring fully correct operation of the system it's generally safe to run something like "portmaster -t--clean-distfiles" to remove stale distfiles. -- Adam