From owner-freebsd-questions@FreeBSD.ORG Sun Jul 27 14:55:59 2008 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 63C77106564A for ; Sun, 27 Jul 2008 14:55:58 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 009398FC08 for ; Sun, 27 Jul 2008 14:55:57 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-84-80.dynamic.qsc.de [92.195.84.80]) by mx02.qsc.de (Postfix) with ESMTP id 3F89716C0052 for ; Sun, 27 Jul 2008 16:55:55 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id m6REttB1001628 for ; Sun, 27 Jul 2008 16:55:55 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 27 Jul 2008 16:55:55 +0200 From: Polytropon To: freebsd-questions@freebsd.org Message-Id: <20080727165555.5a5836f7.freebsd@edvax.de> In-Reply-To: <20080727131744.GA71110@ozzmosis.com> References: <0956648E-F93F-40EC-A565-17875757531F@todoo.biz> <20080727131744.GA71110@ozzmosis.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Deinstalling X and all dependencies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2008 14:55:59 -0000 On Sun, 27 Jul 2008 23:17:44 +1000, andrew clarke wrote: > On Sun 2008-07-27 12:52:56 UTC+0200, bsd (bsd@todoo.biz) wrote: > > > I have just received a new system that's planned to be a large scale DNS > > server. > > I have asked the guy who has setup the hardware not to install X? > > > > This has been useless!! > > > > I am now ending up with 250 apps in the port tree!! "In" or "from"? If they are in the ports tree but not installed, don't mind. If they are installed, deinstall them as recommended, using pkg_delete for example. > > I can also remove all apps in the port tree and recompile only the one > > needed? > > > > What's best what do you suggest. > > FreeBSD provides a "base system" with software such as a SSH daemon, > Sendmail, BIND, etc. You can uninstall all the packages on your > system, but the FreeBSD base system will still remain. This allows > FreeBSD to boot normally without any packages installed. Very well you mentioned this - this difference between "base OS" and "installable packages" is one of the most important features of FreeBSD to me. Having said this, all the additional software (from ports or from packages) reside within /usr/local; everything outside /usr/local belongs to the OS. This means you can # rm -rf /usr/local # mtree -f /etc/mtree/BSD.local.dist and then start installing the software you want. The base system won't be affected at all. # cd /usr/ports// # make install package clean or # pkg_add -r So you end up only with the things you intendedly install (including the needed dependencies). This is the way I did setup a 5.X system many years ago which died this month due to a problem killing various inodes... :-( > I recommend you uninstall all packages (with 'pkg_delete -a', or > 'pkg_delete -av' if you want to watch all the files being deleted), > then install only what you need from the Ports tree. You can, of course, just deinstall the packages you know you won't need, but as you said, if there are more than 250 of them installed (related to X, maybe Gnome or KDE, too), it's easier to invest some time and build from scratch, just as you need. > Your DNS server should probably not require any packages to be > installed, as DNS server software (BIND) is provided with the FreeBSD > base system. See? Everything there from the base install. :-) > But that really depends what your requirements are. Exactly. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0