Setting fetch URIs for portupgrade

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Oct 2 01:44:58 PDT 2003


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 
> by cvsup. I am trying to do a binary upgrade of my system by installing 
> latest packages. I run: portupgrade -aPPR. fetch phase fails to get 
> packages because it goes to a wrong site: 
> ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5.1-release/All
> 
> OTOH I can see that the latest packages that portupgrade trying to fetch 
> 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
 
> How can I change URIs where fetch is looking for the latest packages? 
> Setting PKG_SITES environment variable doesn't have any effect. Editing 
> /usr/local/etc/pkgtools.conf to set PKG_SITES also doesn't change where 
> fetch is going. Handbook, man pages, googling, etc didn't find any 
> references regarding how to configure fetch URIs. I don't want to 
> 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

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031002/06d99159/attachment.bin


More information about the freebsd-questions mailing list