Date: Mon, 28 Jan 2013 02:23:22 +0100 From: Ralf Mardorf <ralf.mardorf@rocketmail.com> To: freebsd-questions@freebsd.org Subject: Re: Sharing a mail folder between Linux and FreeBSD Message-ID: <1359336202.2513.30.camel@q> In-Reply-To: <20130127135806.4d19e997.freebsd@edvax.de> References: <op.wrguj103uwjkcr@freebsd> <20130125133346.f1484ed8.freebsd@edvax.de> <op.wrgzatq7uwjkcr@freebsd> <20130125150414.f262d162.freebsd@edvax.de> <op.wrg019couwjkcr@freebsd> <20130125161215.f498f4e4.freebsd@edvax.de> <5102FE7B.4070808@gmail.com> <op.wrj87jhnuwjkcr@freebsd> <20130127153838.15b97613@X220.ovitrap.com> <20130127135806.4d19e997.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <ralf.mardorf@rocketmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1359336202.2513.30.camel>