From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 01:44:58 2003 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 13C4B16A4B3 for ; Thu, 2 Oct 2003 01:44:58 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F84443FAF for ; Thu, 2 Oct 2003 01:44:55 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h928ibBB011709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Oct 2003 09:44:43 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id h928iaW5011708; Thu, 2 Oct 2003 09:44:36 +0100 (BST) (envelope-from matthew) Date: Thu, 2 Oct 2003 09:44:36 +0100 From: Matthew Seaman To: Andrew Terekhov Message-ID: <20031002084436.GC10711@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Andrew Terekhov , freebsd-questions@freebsd.org References: <20031002040426.E97F316A4F5@hub.freebsd.org> <3F7BAE36.5040609@comcast.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Md/poaVZ8hnGTzuv" Content-Disposition: inline In-Reply-To: <3F7BAE36.5040609@comcast.net> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Setting fetch URIs for portupgrade 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: Thu, 02 Oct 2003 08:44:58 -0000 --Md/poaVZ8hnGTzuv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 01, 2003 at 09:48:54PM -0700, Andrew Terekhov wrote: > I am running FreeBSD 5.1 Release. I updated all sources, ports and docs= =20 > by cvsup. I am trying to do a binary upgrade of my system by installing= =20 > latest packages. I run: portupgrade -aPPR. fetch phase fails to get=20 > packages because it goes to a wrong site:=20 > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5.1-release/All >=20 > OTOH I can see that the latest packages that portupgrade trying to fetch= =20 > are located here: > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/All packages-stable is for FreeBSD 4.x -- these are not the packages you are looking for -- you should be looking for packages-current, as in: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-current/All which are compile for 5.x =20 > How can I change URIs where fetch is looking for the latest packages?=20 > Setting PKG_SITES environment variable doesn't have any effect. Editing= =20 > /usr/local/etc/pkgtools.conf to set PKG_SITES also doesn't change where= =20 > fetch is going. Handbook, man pages, googling, etc didn't find any=20 > references regarding how to configure fetch URIs. I don't want to=20 > compile everything through ports because life is short. What should I do? setenv PACKAGESITE ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages= -current/All/ pkg_add -r somepackagename-9.99.9.tbz (NB. the trailing slash / on that URL is important. Don't leave it out.) There are equivalents to these settings in pkgtools.conf Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --Md/poaVZ8hnGTzuv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/e+V0dtESqEQa7a0RAlTMAKCVqCm5btp1za+iqeJWMM9Xnhz9mwCgjgW1 bDD4iWOqdP0ijY9fQapr8JA= =n3BV -----END PGP SIGNATURE----- --Md/poaVZ8hnGTzuv--