From owner-freebsd-questions@FreeBSD.ORG Sat Aug 7 23:43:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96D9316A4CE for ; Sat, 7 Aug 2004 23:43:55 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9B9843D2F for ; Sat, 7 Aug 2004 23:43:54 +0000 (GMT) (envelope-from itetcu@apropo.ro) Received: (qmail 6905 invoked by uid 89); 7 Aug 2004 23:43:52 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 7 Aug 2004 23:43:52 -0000 Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with SMTP id BBBAF132; Sun, 8 Aug 2004 02:43:47 +0300 (EEST) Date: Sun, 8 Aug 2004 02:43:45 +0300 From: Ion-Mihai Tetcu To: "Noah" Message-Id: <20040808024345.6c388b39@it.buh.tecnik93.com> In-Reply-To: <20040807224127.M18276@enabled.com> References: <20040807224127.M18276@enabled.com> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: updating pkg and ports database X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 23:43:55 -0000 On Sat, 7 Aug 2004 14:43:27 -0800 "Noah" wrote: > > > Hi there, > > I have a cron job that auto-cvs-updates the /usr/ports directories. > > I want to update the portsdb and pkgdb as soon as cvsup has completed its > work. I am using the following two commands to do this. am I doing the right > thing? Yes, but you could optimize it by using sysutils/portindex instead of portsdb -U and run portsdb -u after it finishes. Except on the first run you will see a *big* speed improvement. > > ---- snip --- > > /usr/local/sbin/portsdb -uU > /usr/local/sbin/pkgdb -Fa > > --- snip --- -- IOnut Unregistered ;) FreeBSD "user"