From owner-freebsd-stable@FreeBSD.ORG Wed Mar 19 12:46:09 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96A9E106564A for ; Wed, 19 Mar 2008 12:46:09 +0000 (UTC) (envelope-from michael.grant@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.191]) by mx1.freebsd.org (Postfix) with ESMTP id 4DDF28FC32 for ; Wed, 19 Mar 2008 12:46:09 +0000 (UTC) (envelope-from michael.grant@gmail.com) Received: by rn-out-0910.google.com with SMTP id e11so247487rng.7 for ; Wed, 19 Mar 2008 05:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=GYIbfwepPhTuSYukkPlKJV+rMWEN1/VtXxWNMOIxd10=; b=pC9FZsnZ/hbpZZxPgseasLyoLuuQNvXtqzDzBCNMVJpJhROHm7RLgsVdt40qmxVk2AxGkCPXaxafSki39TRMIRhI1hmSs4qMyhp6+4rujqWJCByZVgQA68FrRU0nsW0Ywm21cDJQVoyuhlFLXQhMPToxqW5dqPoMSq/uymO6cdI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=LJdjeltuCMS+opOs2XSDA2IDbq2OQq1Ce5K0Csw7OZ00DQACqGDSysR3ZhkoUHLmB32dxiZTxaLZcwsrtJMZA9Lq86Oqph/eZeKgDJpQdktgA5nKpgGRIAGizvi4MuoKlFvzdF3S8CQBagWDwCLQDy4AfYpGyF6zL8xmY8gczNo= Received: by 10.143.40.18 with SMTP id s18mr116551wfj.156.1205930767987; Wed, 19 Mar 2008 05:46:07 -0700 (PDT) Received: by 10.142.169.6 with HTTP; Wed, 19 Mar 2008 05:46:07 -0700 (PDT) Message-ID: <62b856460803190546t4abfcb9fu7d3410646d81b656@mail.gmail.com> Date: Wed, 19 Mar 2008 13:46:07 +0100 From: "Michael Grant" Sender: michael.grant@gmail.com To: freebsd-stable@freebsd.org In-Reply-To: <200803191047.m2JAl7YL070946@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <867igo3cih.fsf@zid.claresco.hr> <200803191047.m2JAl7YL070946@lurza.secnetix.de> X-Google-Sender-Auth: fbd865767a63c82e Subject: Re: Upgrading to 7.0 - stupid requirements X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 12:46:09 -0000 My server is live and serving customers. I can't afford to take the box down for a whole day while I upgrade ports. Is there any intelligent way to do this? For example, could I do everything on a second disk while running the live system on the first disk? For example using a chroot so it thinks it's For example, might this work? 1) upgrade system in the canonical way: # make buildworld # make buildkernel # make installkernel # reboot # mergemaster -p # make installworld # mergemaster # reboot 2) make sure misc/compat6x is installed 3) on a second disk or in a directory somewhere like /new a) nullfs mount read-only all the things one needs inside a chroot to work except /usr/local b) create a writable /usr/local, /usr/X11R6, /compat/linux and /var/db in the chroot 4) then for each package installed, install it within the chroot 5) when all that's done, drop into single-user mode and move /usr/local, /usr/X11R6, /compat/linux, and /var/db/pkg to the real system (saving the old ones) 6) reboot Warning, I have never tried this. -Mike On Wed, Mar 19, 2008 at 11:47 AM, Oliver Fromme wr= ote: > Hello Marko, > > I'm very sorry that you have trouble updating your FreeBSD > installation, but there are very good technical reasons to > update your packages, as others have already explained in > detail (i.e. library conflicts). > > When I updated my home workstation from FreeBSD 6 to 7, > I used the opportunity to clean up my installed packages, > which was long overdue anyway. > > First I saved the output from "pkg_info" in a file. Then > I edited it and removed everything that I don't need. > There was lots of superfluous crap in it, like ports that > I installed once out of curiosity but never continued to > use them, and ports that were installed as a dependency > once but aren't required anymore because the dependent > software is long gone. > > Then I did "pkg_delete \*", checked for left-overs in > /usr/local because not everything was removed cleanly, > and then installed the ports from my text file again. > I chose to compile from ports instead of installing > precompiled packages because the machine is fairly fast > (if you have a slow machine, installing packages will > be much faster, of course). > > It certainly went a lot quicker than if I had blindly > updated all ports without cleaning up. And now all of > my installed packages are guaranteed to be fresh and > up to date, and I only have the stuff on my harddisk > that I really need. > > Really, such situations where you should update all of > your packages is the best opportunity to clean up the > mess that has accumulated on your disk in a long time. > I recommend that everyone considers doing that, too, > instead of blindly running portupgrade. Of course, > the latter would work, too, but it takes longer and > will rather add to the mess instead of cleaning it. ;-) > > Best regards > Oliver > > -- > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M= . > Handelsregister: Registergericht Muenchen, HRA 74606, Gesch=E4ftsfuehru= ng: > secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M= =FCn- > chen, HRB 125758, Gesch=E4ftsf=FChrer: Maik Bachmann, Olaf Erb, Ralf Ge= bhart > > FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bs= d > > Python is executable pseudocode. Perl is executable line noise. > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org= " > >