From owner-freebsd-questions@FreeBSD.ORG Mon Oct 31 01:50:28 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 2C52616A421 for ; Mon, 31 Oct 2005 01:50:28 +0000 (GMT) (envelope-from john.destefano@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39F7E43D4C for ; Mon, 31 Oct 2005 01:50:27 +0000 (GMT) (envelope-from john.destefano@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so430226wra for ; Sun, 30 Oct 2005 17:50:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AvRJZeFdxW0DQccBtVvqKzCCpCbBk+S90mxng7e4tgT9RXYMGCTV1bFdVXq5YixCoFW++2ra6UDBF9GHMGIK7JCdg+PtdioHjZK6wqJFrnGpAGqzv+W/7lPQZVka15ToYEpZhQnpt7LeRBfRn/01FPTSZ+u0hY5S1yAhKQb36XU= Received: by 10.65.75.17 with SMTP id c17mr1140069qbl; Sun, 30 Oct 2005 17:50:26 -0800 (PST) Received: by 10.65.154.4 with HTTP; Sun, 30 Oct 2005 17:50:26 -0800 (PST) Message-ID: Date: Sun, 30 Oct 2005 20:50:26 -0500 From: John DeStefano To: "Andrew P." In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6FB767AE-D4D7-4C38-90C0-726D48AF5654@secure-computing.net> <200510281922.16495.ringworm01@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: portupgrade stale dependencies 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: Mon, 31 Oct 2005 01:50:28 -0000 On 10/29/05, Andrew P. wrote: > On 10/29/05, John DeStefano wrote: > > > > Needless to say, this process wasn't much fun. What can I do to keep > > this from happening again? What can/can't I safely include in cron to > > automate database and index maintenance? > > > > cvsup or portsnap, then portsdb -uUF. Work under > any circumstances, leave you with updated ports > tree and indexes. If I were to continue to use portsnap, which arguments can I safely add to /etc/crontab? I know "portsnap cron" should be safe, but if I want to completely automate the update process (not for installing packages, but for keeping the ports tree, database, and indexes current), should I also add an entry for "portsnap update" and "portsdb -uUF"? > > You can also try portupgrade -aF (prefetches > needed files to speed up manual upgrade at a later > time) and portsclean -DP (removes sources and > packages which become outdated due to ports > tree updates). > Would you also recommend cron entries for these two commands? I used to use a cron job to run cvsup, and I'd like to implement a better, more complete automated solution, so I don't tangle up my system's packages and dependencies again.