From owner-freebsd-questions@FreeBSD.ORG Fri Sep 15 16:05:12 2006 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 BF64E16A415; Fri, 15 Sep 2006 16:05:12 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63E0E43D5C; Fri, 15 Sep 2006 16:05:09 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 400E31A3C1F; Fri, 15 Sep 2006 09:05:09 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id A875F513F0; Fri, 15 Sep 2006 12:05:08 -0400 (EDT) Date: Fri, 15 Sep 2006 12:05:08 -0400 From: Kris Kennaway To: Colin Percival Message-ID: <20060915160508.GA71900@xor.obsecurity.org> References: <450A4F26.3020702@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <450A4F26.3020702@freebsd.org> User-Agent: Mutt/1.4.2.2i Cc: ke han , freebsd-questions@freebsd.org Subject: Re: portsdb -Uu 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: Fri, 15 Sep 2006 16:05:13 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 14, 2006 at 11:58:46PM -0700, Colin Percival wrote: > ke han wrote: > > I am using > > portsnap fetch > > portsnap update > >=20 > > to sync my ports tree on FreeBSd 6.1...it seems it maintains an index > > when I run update. >=20 > Yes. >=20 > > I am used to using: > > portsversion and portsupdate to upgrade ports...in this method I have > > also used > > portsdb -Uu > > to rebuild an index anytime prior to running these commands...yes > > portsdb takes a while and I've always wondered if this is necessary > > prior to running any of these commands.. >=20 > portsdb -Uu does two things: > 1. It rebuilds the ports INDEX. This is done by "portsdb -U" and takes a= long time. > 2. It rebuilds the ports INDEX.db database. This is done by "portsdb -u"= , takes > only a few seconds, and is done automatically when you run portupgrade if= the > database is out of date. >=20 > > So my question is: Is the index being maintained by portsnap the same > > or a replacement to that used by portupgrade? Do I have to maintain > > both sets of indexes in order to use portsupdate?? >=20 > The ports INDEX file generated by "portsdb -U" is the same file as portsn= ap > generates. Since the INDEX.db database is generated automatically, this = means > there is no need to run portsdb between running portsnap and running port= upgrade. >=20 > My standard ports update/upgrade procedure is: > portsnap fetch > portsnap update > pkg_version -vIL=3D # this is equivalent to "portversion -vL=3D" > portupgrade -a When I installed portsnap with 'portsnap fetch extract' and then ran portupgrade -fa (this was during an update from 6.x to 7.x), it replaced the index with the one from 'make fetchindex'. >=20 > Colin Percival > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >=20 --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFCs80Wry0BWjoQKURAsdcAJ4w+yG1gjwiWe5CaP9aI85e2mhaMwCeI1R7 0DAWVCNdmp+hBeXlLsHWANI= =JJsE -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--