From owner-freebsd-questions@FreeBSD.ORG Tue Apr 4 18:32:59 2006 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 3E17F16A401 for ; Tue, 4 Apr 2006 18:32:59 +0000 (UTC) (envelope-from reitz@eecs.cwru.edu) Received: from beta.eecs.cwru.edu (beta.EECS.CWRU.Edu [129.22.150.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAF2443D6E for ; Tue, 4 Apr 2006 18:32:57 +0000 (GMT) (envelope-from reitz@eecs.cwru.edu) Received: from cerne.EECS.CWRU.Edu ([::ffff:129.22.151.43]) (TLS: TLSv1/SSLv3,168bits,DES-CBC3-SHA) by beta.eecs.cwru.edu with esmtp; Tue, 04 Apr 2006 14:32:53 -0400 id 000ABE7B.4432BBD5.00006BF1 Date: Tue, 4 Apr 2006 14:32:53 -0400 (EDT) From: Andy Reitz To: Bryan Curl In-Reply-To: <51257d370604040633x53d09a0dl5ad60b350a688940@mail.gmail.com> Message-ID: References: <51257d370604040633x53d09a0dl5ad60b350a688940@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions Subject: Re: Cvsup src-all and installworld process question 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: Tue, 04 Apr 2006 18:32:59 -0000 On Tue, 4 Apr 2006, Bryan Curl wrote: > Hopefully this is right place for my question and not to redundant a > question. > > I have a new minimalist installation for use as a file server only (FreeBSD > 6.0-RELEASE) with a very small set of ports installed. Basically Samba, > Cvsup,man files, ports, all the source and their dependencies. I am > primarily interested in keeping the system up to date with security patches, > system updates, and of course, the ports I run. I want to optimize the > amount of disk space for the public shares so I don't want to arbitrarily > install a lot of programs I don't need. > > My question is, > 1.) If I CVSUP SRC-ALL, 'make buildworld', 'make installworld' etc, will > that install the entire source tree to my machine and eat up disk space > unnecessarily? In other words do I need to weed out all but the basic > components I want before make installworld? > 2.) What branches of the source tree would I be required to keep up to date > for my minimal installation? > > I realized in testing on an older system that portupgrade will only install > ports I am using but don't know if make installworld will do the same. Hi Bryan, I don't think that bringing down the "src-all" collection via CVSup will use a lot of extraneous disk space. While you could comment-out "src-all" and include only specific collections, I think the specific collections aren't necessarily granular enough that taking one out makes sense. For example, on my machine, the sourcecode in the 'contrib' collection is taking up 200+ Mb of space. However, contrib includes things like gcc, gdb, top, traceroute, telnet, etc... That I wouldn't want to be without on a normal FreeBSD machine. The things that you probably could cut, like 'games' and kerberos, represent less than 10Mb of the 400+ Mb total of my /usr/src directory. So, I would say that if you are sensitive about disk space, be sure to clean up '/usr/obj' after doing a build/install world. That is a pretty low-hanging fruit, in terms of cleanin up disk space. Good luck, -Andy Reitz.