From owner-freebsd-questions@FreeBSD.ORG Thu Dec 3 14:11:37 2009 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 6B4FE106566B for ; Thu, 3 Dec 2009 14:11:37 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id 3F7768FC13 for ; Thu, 3 Dec 2009 14:11:36 +0000 (UTC) Received: by pwj15 with SMTP id 15so1186778pwj.3 for ; Thu, 03 Dec 2009 06:11:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=TV311RF7vj+PAEwdMtTOC4Tqq0fQOoZVo9ofDcKJpf8=; b=UCVI7tk6sfKo2BproKne9LzGdtVa/ExVI69Oz1IRh2arcskgXp6u2Cal8xlqTsiMiJ lJOVbX6DdbVhioufdYJnV7KUbrbxuSm6UykwcAAMuUWhV4KeKkzoZZ4eayRFzWSyHVpJ 80I5ooEavoZRJZDt49224ogGZu9gTIBos0plU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Bz5Z5s4YO4pyyjXKpxsU6AudyC9ZBVEjWMyw+du+asnVSSmzTXGlYW6jbpEHYzqvOh ogbTYiwrYSuZi8o5FY7hAzb4wzQqF3z+0l0AbRKJ0+P67lKy/DPWE9bAemyH5xMNRe4s WWEais40/55/cQFPMrZYTukU5yhx+ZqRCeqdI= MIME-Version: 1.0 Received: by 10.143.25.40 with SMTP id c40mr205520wfj.265.1259849496675; Thu, 03 Dec 2009 06:11:36 -0800 (PST) In-Reply-To: <200912031113.39344.macerl@telkomsa.net> References: <200912031113.39344.macerl@telkomsa.net> Date: Thu, 3 Dec 2009 08:11:36 -0600 Message-ID: <6201873e0912030611o3a69982cyd5b8022a1e9b7d11@mail.gmail.com> From: Adam Vande More To: Richard Mace Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Newbie questions (updating, ports, etc.) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 14:11:37 -0000 On Thu, Dec 3, 2009 at 3:13 AM, Richard Mace wrote: > I recently installed FreeBSD 8.0-RELEASE on my home desktop and am > considering > making the switch from Debian GNU/Linux. > > I have a few questions which I am hoping the list can clarify for me. > > 1.) Keeping installed ports/packages up to date. > > As far as I can tell from the docs, perhaps the most convenient method is > to > use something like: > > # portsnap fetch update > # pkgdb -F > # portupgrade --batch -aP (do I need an "R" here?) > > which should first try to find a package from the repositories and failing > that > will fall back to a port. What is the current wisdom here? > > Is it safe to use the --batch switch? As far as I understand, this will use > the configuration defaults and not prompt the user whenever a port requires > some user (options) configuration. Is this interpretation correct? > Otherwise, > is there a way to get portupgrade to use the defaults non-interactively, to > automate the process. > > Related to the above, are the default options that appear in the ncurses > dialogues the same as those used in the building of packages? > You method should work fine except you don't need the pkgdb -F step. Normally i use portmaster -dga to do this which will basically ask on new config entries and allow you to preset them before compiling starts. It's much quicker IME than portupgrade. portupgrade also has a preconfigure flag but I don't remember it offhand. portupgrade also is slower due to it's db backend and ruby parsing but it's still a great utility and I use it when something breaks portmaster. > > 2.) Evolution of ports (and packages) versus evolution of the base system. > > Reading the docs makes it clear that FreeBSD maintains is a rigorous > distinction between the base system and add-on packages (ports). This is > very > appealing. However, as far as I can tell so far, even though my base system > is > 8.0 -RELEASE (and remains fixed between releases?), the ports continuously > evolve (are updated). Is my understanding correct that by tracking a > RELEASE > system I can have "bleeding edge" (or close) versions of ports? Or, do I > need > to track STABLE of CURRENT for that? > Yes, your understanding is correct. that's what portsnap fetch update will do for you. > 3.) Upgrading ports seems to take considerable time (at least with my > experiments on a 5 year old Pentium IV). I am keen to adopt FreeBSD as my > desktop for work (Physics Professor, Research and teaching). Is it > feasible > in a work environment to upgrade ports without getting bogged down in a > compile-a-thon, leaving one with a useless workstation. (My target machine > will be an 8-core HP z600 (Xeon) which leads me to believe that I could do > the > upgrading in the background while I continue to work uninterrupted. I'd > like > to hear others experiences here.) > If you're going to run with ports, you'll be spending more time than simply packages alone. There are things to make it easier though. First and foremost is make a backup of packages you create in case something goes wrong. Then you have a choice of frequent updates of ports tree or intermittent style. If you update all installed ports say on a weekly basis, each update run is generally not too intensive. If you take 10 minutes out you're day to preconfig, read UPDATING, and start the compile you should generally be done. However sometimes things break either during the compile or later in use. Sometimes resolving those eat up time and backup package can be of help there. If you update less frequently eg monthly, be prepared for longer upgrade times, more problems at once and with a longer stable time in between. -- Adam Vande More