From owner-freebsd-questions@FreeBSD.ORG Wed Aug 8 10:55:38 2007 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 823DB16A41A for ; Wed, 8 Aug 2007 10:55:38 +0000 (UTC) (envelope-from rakheshster@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id 0CDAD13C459 for ; Wed, 8 Aug 2007 10:55:37 +0000 (UTC) (envelope-from rakheshster@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so33771nfb for ; Wed, 08 Aug 2007 03:55:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:date:x-x-sender:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type:from:sender; b=KF0FtUEht3PEzQzTpisOgWIwdmwwPvLL6vxPf0N213rvGUDFPACOsWbyQpYVB8H1lcy71hGN5SNXxU+khGf+eS4Vb3+RoDUTU14xG4ZaHU9mEoueY4Me7h5vaNY+2PxaQ6s2jsOsSPxITF7KyY6NEC7GV2jPbHvaIr1sCuMfIwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:x-x-sender:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type:from:sender; b=fu7skCeHYBRbee2ChXocyl5a+TaA8PZPxoBDqlOiyr9/zvYL4H24kznWc5Pqxax9uc8W6kDP1m1sCqGrdZBfGqHSTJCzs/9FivkLjgKYklW514r/9gkEAkZ0aCghe9wSGkIpW2lav3trnlrOhLYvVspklq4hUYHUjUk1xnMJKS0= Received: by 10.78.185.15 with SMTP id i15mr473969huf.1186570536582; Wed, 08 Aug 2007 03:55:36 -0700 (PDT) Received: from smtp.home.rakhesh.com ( [82.178.137.21]) by mx.google.com with ESMTPS id 4sm152649hue.2007.08.08.03.55.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Aug 2007 03:55:34 -0700 (PDT) Received: from asterix.home.rakhesh.com (asterix.home.rakhesh.com [192.168.17.23]) by smtp.home.rakhesh.com (Postfix) with ESMTP id 7ADE911420; Wed, 8 Aug 2007 14:55:11 +0400 (GST) Date: Wed, 8 Aug 2007 14:52:46 +0400 (GST) X-X-Sender: rakhesh@asterix.home.rakhesh.com To: Adam J Richardson In-Reply-To: <46B8EA90.1000305@crackmonkey.us> Message-ID: <20070808144355.B56590@asterix.home.rakhesh.com> References: <46B5E0F8.7050405@att.net> <20070806083111.F74284@obelix.home.rakhesh.com> <46B8EA90.1000305@crackmonkey.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Rakhesh Sasidharan Sender: Rakhesh Sasidharan Cc: "Arend P. van der Veen" , freebsd-questions@freebsd.org Subject: Re: portsdb and cvsup 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: Wed, 08 Aug 2007 10:55:38 -0000 Adam J Richardson wrote: > Rakhesh Sasidharan wrote: >> During my first few days with FreeBSD, however, I used to run ''portsdb >> -Fu''. My understanding is that that would fetch the INDEX-6 and update >> INDEX-6.db (since I am on FreeBSD 6.x) but I don't see why I should do this >> coz the INDEX files are updated when I update the ports tree anyways! (If I >> have understood this incorrectly, someone please correct me). > > Hi Rakhesh, > > What you say about the -F and -u flags sounds right. It's my understanding > that "portsdb -Fu" is only required when the ports database gets a little bit > messed up and the system prompts you. It's an easy one to remember, because > as Dru said in that article, you may be thinking something similar at the > time. ;) Heh, that really was a good mnemonic from Dru to remember these switches. BTW, Dru was talking about ''pkgdb -fu''. Different command, and lower-case "f". And that was for when the *packages* database gets messed up. At which point you'll probably have thoughts along that line in your head ... :) After some thought, I think the "-F" switch to ''portsdb'' is useful if you want to just search for what's new etc by downloading the latest copy of the INDEX file and using that instead of downloading the ports tree changes. That way, if you are into the portupgrade tools, you can do a ''portsdb -Fu'' to get the latest INDEX files and update INDEX.db. You can search for ports using ''pkg_glob''. And you can find what's newer compared to the installed software using ''portversion''. No need to update your ports tree to do all this! Regards, Rakhesh