From owner-freebsd-questions@FreeBSD.ORG Fri Jan 18 15:51:29 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CF8A5787 for ; Fri, 18 Jan 2013 15:51:29 +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 93258191 for ; Fri, 18 Jan 2013 15:51:29 +0000 (UTC) Received: from r56.edvax.de (port-92-195-45-17.dynamic.qsc.de [92.195.45.17]) by mx02.qsc.de (Postfix) with ESMTP id AD01924D64; Fri, 18 Jan 2013 16:51:27 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r0IFpUlp005312; Fri, 18 Jan 2013 16:51:30 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 18 Jan 2013 16:51:30 +0100 From: Polytropon To: "Ralf Mardorf" Subject: Re: Dependencies after port tree update Message-Id: <20130118165130.73cea17d.freebsd@edvax.de> In-Reply-To: References: <20130118055051.3dd2a12a.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD quest X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2013 15:51:29 -0000 On Fri, 18 Jan 2013 16:37:43 +0100, Ralf Mardorf wrote: > Do the following directories have to be "more" empty? > > root@freebsd:/root # ls -hAl /usr/local/bin > total 0 > root@freebsd:/root # ls -hAl /usr/local/sbin > total 0 > root@freebsd:/root # ls -hAl /usr/local/lib > total 12 > drwxr-xr-x 4 root wheel 512B Jan 18 16:17 X11 > -r--r--r-- 1 root wheel 2.2k Jan 14 19:30 charset.alias > drwxr-xr-x 2 root wheel 3.0k Jan 18 16:19 compat > drwxr-xr-x 2 root wheel 1.0k Jan 18 16:10 dssi > root@freebsd:/root # ls -hAl /usr/local/lib/dssi > total 0 > root@freebsd:/root # ls -hAl /usr/local/lib/compat > total 0 > root@freebsd:/root # ls -hAl /usr/local/lib/X11 > total 4 > drwxr-xr-x 2 root wheel 512B Jan 18 16:14 app-defaults > drwxr-xr-x 4 root wheel 512B Jan 18 16:14 fonts > root@freebsd:/root # ls -hAl /var/db/pkg > total 9424 > -rw-r--r-- 1 root wheel 9.2M Dec 23 22:42 pkgdb.db If you have copied everything you might need from /usr/local (e. g. config files in /usr/local/etc) you can remove the whole directory subtree and recreate it using mtree (from the /etc/mtree/BSD.local.dist description). > I wonder how to set a variable to automatically "answer" ok. > In this case it might be interesting to check all configurations. There is an option for this: portmaster --force-config lets you visit all configuration screens prior to starting any builds (so they will run without any disturbing interaction), and portmaster -G to prevent the "make config" step; there are also the -y and -n options to answer yes or no respectively; with --no-confirm you can accept the list of ports to process without confirmation. > If I finished this step, will then automatically everything be recompiled > and reinstalled? I think so. The example in the manual seems to work on most conditions, and personally I didn't have trouble with using it. In some cases, deleting the installed applications isn't even needed: portmaster can fix things as it processes only those parts that need to be compiled (for example due to a newer or missing library dependency); the "portmaster -arf" command should do this, if I remember correctly. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...