From owner-freebsd-questions@FreeBSD.ORG Fri Oct 21 22:42:37 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 1199E16A41F for ; Fri, 21 Oct 2005 22:42:37 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADDF843D78 for ; Fri, 21 Oct 2005 22:42:36 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2) with ESMTP id j9LMgaBn017338; Fri, 21 Oct 2005 18:42:36 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2/Submit) id j9LMgaq2017337; Fri, 21 Oct 2005 18:42:36 -0400 (EDT) From: Jerry McAllister Message-Id: <200510212242.j9LMgaq2017337@clunix.cl.msu.edu> To: ross.penner@gmail.com (ross) Date: Fri, 21 Oct 2005 18:42:36 -0400 (EDT) In-Reply-To: X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: Making ports in alternative areas 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: Fri, 21 Oct 2005 22:42:37 -0000 > > I'm running low on disc space on my /usr partition and I would like to > compile a program from the ports that is rather large. I have enough space > once it's compiled, it's just the work that I don't have enough space for. > how can I get the port to do it's work in a different area on a different > partition? Do you have enough space on another partition to move the whole ports tree over there? That would be nicest. But, the principle is the same even if you only move that directory. Make a directory in the larger partition. If it is for all of ports I might suggest calling it usr.ports Tar up the stuff you want to move. Unroll it in the new roomier space. Create a symlink to the new space. You can tar to a pipe and untar from that pipe, but if there is room I prefer to go to and from a file. It improves my confidence. cd /bigplace mkdir usr.ports cd /usr/ports tar cvf /bigplace/ports.tar * cd /bigplace/usr.ports tar xvf ../ports.tar Look at things and make sure it is OK. Then make links and clean up. cd /usr mv ports ports.old ln -s /bigplace/usr.ports ports rm -rf ports.old rm /bigplace/ports.tar Voila, it is in a new place. You can do essentially the same with a subdirectory of /usr/ports. Just think out carefully what you are moving where and how you want the link to be. ////jerry >