Date: Fri, 12 May 2006 08:08:41 -0400 From: Jonathan Noack <noackjr@alumni.rice.edu> To: gareth <bsd@lordcow.org> Cc: stable@freebsd.org Subject: Re: portsdb Message-ID: <44647AC9.100@alumni.rice.edu> In-Reply-To: <20060512115655.GA4628@lordcow.org> References: <20060510073107.GA19897@lordcow.org> <20060510102222.GA25464@lordcow.org> <446206DF.7020607@alumni.rice.edu> <20060512072021.GA22237@lordcow.org> <446471FF.30001@alumni.rice.edu> <20060512115655.GA4628@lordcow.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4077E84E23F166349FCBC55D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 05/12/06 07:56, gareth wrote: > On Fri 2006-05-12 (07:31), Jonathan Noack wrote: >> Ah, I made a mistake in my explanation. Replace INDEX-5.db with >> INDEX-5. Sorry for the confusion... >> >> "make fetchindex" downloads the INDEX-x file (where 'x' is the major >> release number of the version of FreeBSD you are using -- in this case= >> '5'). When this file is newer than INDEX-x.db, the portupgrade tools >> will automatically build an updated version of INDEX-x.db. As such, i= t >> is not necessary to do anything further than "make fetchindex". >> Building INDEX-x takes forever (and may be overheating your machine >> causing freezes/reboots), but building INDEX-x.db is quite fast. >> >> If you want to make sure everything is updated with a single command, >> replace the '-U' with '-F' for "portsdb -Fu" (hehe -- I love it when >> arguments work out like that...). That will 1) download the INDEX-x >> file instead of building it from scratch, and then 2) build an updated= >> INDEX-x.db. >> >> Correction: portsnap automatically builds an up-to-date INDEX-x, not >> INDEX-5.db. "portversion" is building the INDEX-x.db file from INDEX-= x. >=20 > ah ok, thanx that's much clearer now. >=20 > so for interest's sake: >=20 > 'portsdb -F' is the same as 'make fetchindex', and Yes. > 'portsdb -u' is the same as the first part of 'portversion' Yes, but using '-u' is not necessary. From the portsdb(1) man page description of the '-u' option: "Note: the ports database file is automatically updated if it is not up-to-date when looked up, so manual updating is not mandatory." I use '-u' only when I share /usr/ports between machines via NFS. Because I don't want them fighting over updating the INDEX-x.db file, I run "portsdb -Fu" when I update /usr/ports so that all machines have a fresh version. -Jonathan --=20 Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enig4077E84E23F166349FCBC55D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEZHrOUFz01pkdgZURAtd6AKCrYsukwHEKheTt5lfqfIovcW2PQACgl5Be ICgjutnr1CW1lbIprSlzapc= =lqE2 -----END PGP SIGNATURE----- --------------enig4077E84E23F166349FCBC55D--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44647AC9.100>