From owner-freebsd-questions Thu Mar 13 19:50:15 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7204737B401 for ; Thu, 13 Mar 2003 19:50:13 -0800 (PST) Received: from ra.dweebsoft.com (ra.dweebsoft.com [209.237.40.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A15E43F85 for ; Thu, 13 Mar 2003 19:50:12 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: from ra.dweebsoft.com (localhost [127.0.0.1]) by ra.dweebsoft.com (8.12.6/8.12.6) with ESMTP id h2E3oCdo080250; Thu, 13 Mar 2003 19:50:12 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: (from http@localhost) by ra.dweebsoft.com (8.12.6/8.12.3/Submit) id h2E3oC4u080249; Thu, 13 Mar 2003 19:50:12 -0800 (PST) X-Authentication-Warning: ra.dweebsoft.com: http set sender to daxbert_news@dweebsoft.com using -f Received: from 64.81.58.36 ( [64.81.58.36]) as user daxbert@localhost by ra.dweebsoft.com with HTTP; Thu, 13 Mar 2003 19:50:11 -0800 Message-ID: <1047613811.3e715173c05c0@ra.dweebsoft.com> Date: Thu, 13 Mar 2003 19:50:11 -0800 From: Daxbert To: Cliff Sarginson Cc: "" Subject: Re: portupgrade mess MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 64.81.58.36 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Quoting Cliff Sarginson : > > BTW, any idea how I could reduce the size of the /usr/ports slice - it's > > max is about 2Gb and there is about 1.7 in use. It seems a bit bloated and > > > I certainly don't need all the stuff that is in there... > > > Delete everything in "/usr/ports/distfiles". > And before you go to bed one night do a "make clean" from "/usr/ports". > It takes .... some time... > > Another option is to add the following to your make.conf ( 5.x: /etc/make.conf 4.x: /etc/defaults/make.conf ) WRKDIRPREFIX= /usr/obj This will cause all of your port builds to be directed to /usr/obj. You can then nuke /usr/obj/usr/ports and only remove the work, not the ports tree. To take care of the distfiles problem... # mkdir -o /usr/obj/usr/ports/distfiles # mv /usr/ports/distfiles/* /usr/obj/usr/ports/distfiles # <--(optional) # rm -rf /usr/ports/distfiles # ln -s /usr/obj/usr/ports/distfiles /usr/ports/distfiles This will get your distfile downloads out of /usr/ports as well. However, there's probably a cleaner way to do this via a make.conf setting. I do all of this because my ports tree is NFS mounted read-only as needed. --daxbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message