From owner-freebsd-questions@FreeBSD.ORG Mon Jan 28 01:23:30 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EDF8ECBF for ; Mon, 28 Jan 2013 01:23:30 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm25-vm7.bullet.mail.ird.yahoo.com (nm25-vm7.bullet.mail.ird.yahoo.com [212.82.109.208]) by mx1.freebsd.org (Postfix) with SMTP id 4C6FDFA0 for ; Mon, 28 Jan 2013 01:23:29 +0000 (UTC) Received: from [77.238.189.230] by nm25.bullet.mail.ird.yahoo.com with NNFMP; 28 Jan 2013 01:23:23 -0000 Received: from [217.146.188.74] by tm11.bullet.mail.ird.yahoo.com with NNFMP; 28 Jan 2013 01:23:23 -0000 Received: from [127.0.0.1] by smtp102.mail.ird.yahoo.com with NNFMP; 28 Jan 2013 01:23:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s1024; t=1359336203; bh=5EuruW1n0AHzGnkxRV4wx66RBcAtcpLy4eoBViiGNF4=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Subject:From:To:Date:In-Reply-To:References:Content-Type:X-Mailer:Mime-Version:Content-Transfer-Encoding; b=cFewYtK/rnmmCHDEx6/BA5U4OmQCiXQJPNgjeZaeP/UP2NKcgeunaer8pg05yXI9KmUOL4XXtwxCSeSDKxKBtrtVZg1Bia3CJKEW0dD03vxaUq+XNU43wkAZJhBEg5N3IYzuOLNj9cpxQYmqC7Cv5JDQ/WyOZjCkuJyVVojbG2A= X-Yahoo-Newman-Id: 646963.90086.bm@smtp102.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Pm5zCG0VM1mFqqA_z1pqNRm8X7YP3To6rbwo7JmhGBnBmzY 6RssUrE_mOzv5pyVhmKAHM62EO9NKDzOP.f0zcsy4jnpuJFy75oAQ7Pp7ED. 9NoK32jHKgqYDZ.gUBYnJ_zGRTPg2qcPmbZ5EUtltpKwXyzYkYrvaUCWNpo2 BN8qVap9HIMV0eGGcAY92LnX6XrS_5t_Ewc5oZYSqhOKVdrXrHqqsTpiFrkB GnxbroyE8zjNdwveggBd2xaiEgSwXGEZCrPTkSyL2zfFB4AFb.9piq3_RYZY CB_AWY8wjdikMN6NbonlmlZkI5s7Tn3YdM0wKip1QX1Seg7mYhyx_gORxs16 fi1G2ErZvUMOlGFD95X9KkzYgEtCy7LdTt1T7tz4Jsb2AsNlUqQ2EG5Zxl9u ds6pzcy8lWTkXC9g80SEPJF5Utvr34s3rxh_iDmMiX3S7IAwAj0DKOhLfB3b bw_WXx.0whl1Lac0Ow0ueOZRnIwFI6ZkXwmyKH13izBbTxSDenU0r9wDzaet 4ZQDsoC_3vQ_5PkC3brVhPJpn X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- Received: from [78.50.22.55] (ralf.mardorf@78.50.22.55 with login) by smtp102.mail.ird.yahoo.com with SMTP; 27 Jan 2013 17:23:23 -0800 PST Message-ID: <1359336202.2513.30.camel@q> Subject: Re: Sharing a mail folder between Linux and FreeBSD From: Ralf Mardorf To: freebsd-questions@freebsd.org Date: Mon, 28 Jan 2013 02:23:22 +0100 In-Reply-To: <20130127135806.4d19e997.freebsd@edvax.de> References: <20130125133346.f1484ed8.freebsd@edvax.de> <20130125150414.f262d162.freebsd@edvax.de> <20130125161215.f498f4e4.freebsd@edvax.de> <5102FE7B.4070808@gmail.com> <20130127153838.15b97613@X220.ovitrap.com> <20130127135806.4d19e997.freebsd@edvax.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.0-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 01:23:31 -0000 On Sun, 2013-01-27 at 13:58 +0100, Polytropon wrote: > On Sun, 27 Jan 2013 15:38:38 +0700, Erich Dollansky wrote: > > Hi, > > > > On Sun, 27 Jan 2013 09:15:09 +0100 > > "Ralf Mardorf" wrote: > > > Is there a command to deinstall and reinstall all ports or an idea > > > for a script to do it? > > > > > Check portupgrade or one of other utilities to handle ports. There is > > one option to force an upgrade even if it would be a downgrade. > > With tools like portmaster, this task can easily be automated. > If you only will have to handle a few ports, using the "bare > ports method" (make) is probably the easiest way (in case > everything else stays definitely consistent). *?* This is how I updated my ports, after I updated FreeBSD: root@freebsd:/root # portmaster --list-origins > ~/installed-port-list root@freebsd:/root # portsnap fetch update root@freebsd:/root # portmaster -ty --clean-distfiles root@freebsd:/root # portmaster --check-port-dbdir delete? always y root@freebsd:/root # portmaster -Faf root@freebsd:/root # pkg_delete -a root@freebsd:/root # rm -rf /usr/local/lib/compat/pkg No backup of files in /usr/local, such as configuration files in /usr/local/etc needed. 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 root@freebsd:/root # cd /usr/ports/ports-mgmt/portmaster && make deinstall install clean root@freebsd:/usr/ports/ports-mgmt/portmaster # portmaster `cat ~/installed-port-list` I still had to manually answer yes a million times, when I was asked if something should be deleted or not. I stopped by Ctrl + C, add --no-confirm to the command and run it again. I guess I need to add --force-config -G -y -no-confirm ? Compiling > 400, from > 800 packages needed > 2 day. How do I reinstall all ports [1]? Is recompiling everything needed? Isn't it possible to reinstall everything? Isn't there a cache with all the binaries? Resp. the binaries are already installed ;) and could be copied to a cache, tmp. [1] *?* http://howtounix.info/man/FreeBSD/man8/portmaster.8 *?* Regards, Ralf