From owner-freebsd-questions@FreeBSD.ORG Thu Dec 3 15:38:21 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 6C6F8106568B for ; Thu, 3 Dec 2009 15:38:21 +0000 (UTC) (envelope-from s4mmael@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id 034B48FC1E for ; Thu, 3 Dec 2009 15:38:20 +0000 (UTC) Received: by fxm10 with SMTP id 10so1483027fxm.34 for ; Thu, 03 Dec 2009 07:38:20 -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 :content-transfer-encoding; bh=LEorATwY5B7J9PD+Vh9JLPInTcpTDjqyGaLOSrOb7pU=; b=Id5aYM33iZbaUVCbWp4UfUb8iNnVgslVOkxyKSOAL4Q5NOjZNP9g404zVbk4B0vW+Q PcZ+fY+ys4mxSzH6LgPoV8C/7HZpFd34wyVtdBjHGUCYlKvXS2/DI+rNGMueo/uoJXJM rn0AKL4C5kAYJXo9eRQma8agoTZTciXaArnI8= 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:content-transfer-encoding; b=FrdgBx19jGfBlgcwuJNTW3X3JnsTLpy9n7gc8dKVaPiNwuHO23NtVNNLKmubrqI7vF kElFnnsjOA3eL6Wa1IMBaGPRh00OLcOGibfyxxjv6dMTQe1PRzAzjJlyUrankrxR/TQz ApDLvJg46kjGyRgCTCwgVnv2VVB6bUW6u/jvU= MIME-Version: 1.0 Received: by 10.223.127.195 with SMTP id h3mr256609fas.57.1259854699853; Thu, 03 Dec 2009 07:38:19 -0800 (PST) In-Reply-To: <200912031113.39344.macerl@telkomsa.net> References: <200912031113.39344.macerl@telkomsa.net> Date: Thu, 3 Dec 2009 18:38:19 +0300 Message-ID: <6e38aed80912030738x255c241fo1095a299c410475e@mail.gmail.com> From: S4mmael To: Richard Mace Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 15:38:21 -0000 2009/12/3 Richard Mace : > 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 =A0 =A0 (do I need an "R" here?) > I don't see any reason to upgrade all installed ports on daily or weekly basis. In most cases you'll get nothing as the result of updating some port version 2.16.134 to new version 2.16.135 but lost time. > which should first try to find a package from the repositories and failin= g that > will fall back to a port. What is the current wisdom here? Yes, it's right. > Is it safe to use the --batch switch? As far as I understand, this will u= se > the configuration defaults and not prompt the user whenever a port requir= es > some user (options) configuration. Is this interpretation correct? If the package is in use, there will no prompt. While building a port, configuration in which this port was built last time is used. If there is no such configuration, then port builds with default options. > Related to the above, are the default options that appear in the ncurses > dialogues the same as those used in the building of packages? It's really intresting. > 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 =A0(Physics Professor, Research and teaching). Is it fea= sible > in a work environment to upgrade ports without getting bogged down in a > compile-a-thon, leaving one with a useless workstation. (My target machin= e > will be an 8-core HP z600 (Xeon) which leads me to believe that I could d= o the > upgrading in the background while I continue to work uninterrupted. I'd l= ike > to hear others experiences here.) Try to use something like "nice portupgrade -a". Read "man nice".